Entry points
Entry points are used to categorize the streams. You can configure functions such as recording, transcoding, and snapshot capturing for one entry point, and these configurations apply to all the streams under this entry point.
Agora provides a default entry point live
for your direct use.
The entry point management function is in the beta stage. Contact sales@agora.io before using it.
Add entry points
Add an entry point.
When adding an entry point, you need to specify the App ID of your Agora project.
HTTP request
Path parameter
appid
: String type, required. The App ID provided by Agora for each developer. You can get an App ID after creating a project in the Agora Console. The App ID is the only identification of a project.
Query parameters
id
: String type, required. The name of the entry point to be added.
HTTP response
If the returned HTTP status code is 201, it means the request is successful.
If the returned HTTP status code is not 201, the request fails. You can refer to the HTTP status code for possible reasons.
Example
Request line
Response line
Delete entry points
Delete an entry point. The default entry point live
cannot be deleted.
HTTP request
Path parameter
Parameter | Type | Description |
---|---|---|
appid | String | Required. The App ID corresponding to the entry point being deleted. |
entry_point | String | Required. The name of the entry point being deleted. |
HTTP response
If the returned HTTP status code is 200, the request is successful.
If the returned HTTP status code is not 200, the request fails. You can refer to the HTTP status code for possible reasons.
Example
Request line
Response line
Get the entry point list
Get the list of all entry points under one Agora project.
HTTP request
Path parameter
appid
: String type, required. The App ID of your Agora project
HTTP response
If the returned HTTP status code is 200, the request is successful, and the response body contains the following fields:
entryPointList
: JSON Array type, the list of entry points. One entry point corresponds to a JSON Object, and contains the following fields:
Field | Type | Description |
---|---|---|
name | String | The entry point name. |
If the returned HTTP status code is not 200, the request fails. You can refer to the HTTP status code for possible reasons.
Example
Request line
Response line
Request body
HTTP status code
Status code | Description |
---|---|
200 | The request succeeds. |
400 | The parameter is invalid, for example the appid or the entry_point is empty, or the region parameter value is invalid. |
401 | Unauthorized (the customer ID and the customer secret do not match). |
404 | The server cannot find the resource according to the request, which means the requested entry point does not exist or the requested URI path is invalid. |
500 | An internal error occurs in the server, so the server is not able to complete the request. |
504 | An internal error occurs in the server. The gateway or the proxy server did not receive a timely request from the remote server. |