Overview
In addition to the SDK that you integrate into the app client, Agora provides a set of simple, secure, and reliable server-side RESTful APIs to manage real-time audio and video channels.
This page provides detailed documentation for the Agora Channel Management RESTful APIs.
Key features and scenarios
Key features | Description | Typical application scenarios |
---|---|---|
Manage user privileges | Includes removing specified users from channels and preventing them from sending audio and video streams. |
|
Query channel information | Query the list of online channels, users in a channel, and the status of a specified user. | In a scenario where the number of concurrent channels is not large, directly query the channel list to sync the channel status. In a scenario where real-time sync performance is not required, query and sync the user list and status in the channel. |
Authorization
The Content-Type
field in all HTTP request headers is application/json
. All requests and responses are in JSON format. All request URLs and request bodies are case-sensitive.
The Agora Channel Management RESTful APIs only support HTTPS. Before sending HTTP requests, you must generate a Base64-encoded credential with the Customer ID and Customer Secret provided by Agora, and pass the credential to the Authorization
field in the HTTP request header. See RESTful authentication for details.
Domain
All requests are sent to the following domain name: api.agora.io
. For example, after implementing basic HTTP authentication, add the following code to send a simple request to obtain the total number of channels and the number of users in each channel:
Use the channel management RESTful API along with the Notifications service for reliable and effective channel management and status synchronization.
Call frequency limit
For each Agora account (not each App ID), the maximum call frequency of every online channel statistics query API is 20 queries per second. The maximum call frequency of every other API is 10 queries per second. If you are frequency limited when calling the APIs, see How can I avoid being frequency limited when calling Agora Server RESTful APIs to optimize API call frequency.
Response status codes
For a description of the response status codes, refer to Response status codes.