Get user events
Updated
Retrieves Signaling user login and logout events.
https://api.agora.io/dev/v2/project/{appid}/rtm/vendor/user_eventsThis method retrieves user events from the Agora Signaling server. Events you acquire using this API are removed from the server and cannot be retrieved again.
The Signaling backend stores a maximum of 2,000 events, with the latest event replacing the oldest when this limit is exceeded. The backend returns a maximum of 1,000 events per request, and the number of requests for each app ID must not exceed 10 per second.
Note
Events acquired using this API are removed from the server and cannot be retrieved again. The Signaling backend stores a maximum of 2,000 events, replaces the oldest event when this limit is exceeded, returns at most 1,000 events per request, and allows up to 10 requests per second for each App ID.
Caution
Agora does not guarantee event time sequence across geographical regions. Events pulled from different regions may contain duplicates since synchronization only occurs within regions, not across them.
Path Parameters
The App ID of your Agora project.
Request
This endpoint does not require any query parameters or a request body.
Response
- If the returned status code is
200, the request was successful. The response body contains the result of the request. - If the returned status code is not
200, the request failed. The response body includes the error code and description. Refer to status codes to understand the possible reasons for failure.
Response Body
application/json
Response schema
200application/jsonThe request was successful. The response body contains the result of the request.
defaultapplication/jsonThe request failed. The response body includes the error code and description.
Request examples
curl -X GET 'https://api.agora.io/dev/v2/project/876922cbca0098dff4323566daa89675/rtm/vendor/user_events' \ -H 'Authorization: Basic <your_base64_encoded_credentials>'Response example
{ "result": "success", "request_id": "10116762670167749259", "events": [ { "user_id": "rtmtest_RTM_4852_4857w7%", "type": "Login", "ms": 1578027420761 } ]}