OpenIM Server APIs
đ REST APIâ
OpenIM Server offers REST APIs for business systems to enhance their functionalities, such as:
- đ Creating groups
- đŦ Pushing messages
For more functionalities, refer to the API documentation provided later.
â ī¸ Note: To call the REST APIs, you need to act as an APP Administrator, which is provided over port
10002
. An APP Administrator refers to a user with super privileges. OpenIM Server comes with a built-in APP Administrator whose userID is imAdmin.
Before starting to call APIs, it is necessary first to obtain an admin token using the secret through the get admin token API. For the import user interface, secret verification is also required.
đ Webhooksâ
OpenIM Server also provides powerful callback functionalities to meet more business needs. A callback is defined as a request sent by OpenIM Server to the business server before or after certain events occur, such as:
- đ¤ Callback before sending a message
- đĨ Callback after sending a message