OpenIM Server APIs
đ REST APIâ
OpenIM Server offers a REST API for integration with business systems to enhance functionality. Examples include:
- đ Creating groups
- đŦ Sending messages
For more details, refer to the API documentation.
â ī¸ Note: In the request URL,
{API_ADDRESS}
refers to the host address where OpenIM Server is deployed, e.g.,http://IP:10002
.To call the REST API, you need to use an APP Administrator account. This service is accessible via port
10002
. An APP Administrator is a user with super admin privileges. OpenIM Server includes a built-in APP Administrator with the userIDimAdmin
.All
array
parameters in theAPI
request have a maximum length limit of1000
.API Authentication Process:
- Use the
user_token API
to retrieve the admin token.- Use the admin token to call other APIs.
All
array
parameters in theAPI
request have a maximum length limit of1000
.
đ Webhooksâ
OpenIM Server also offers powerful callback functionality to accommodate various business needs. A webhook triggers an outbound request to the business server when certain events occur, either before or after processing. Examples include:
- đ¤ Pre-message send callback
- đĨ Post-message send callback
In the request URL,
{WEBHOOK_ADDRESS}
refers to the host address wherewebhook
is deployed.