Queries callback records.
Operation description
Maximum query span: 7 days.
Minimum query granularity: 1 minute.
Maximum query range: data from the last 7 days.
QPS limit
The single-user QPS limit for this operation is 50 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation appropriately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:ListEventSubEvent |
list |
*Rtc
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The ID of the subscribed application. |
9qb1**** |
| SubscribeId |
string |
No |
The subscribe ID. You can obtain the subscribe ID from the response parameters of the CreateEventSub operation by using a parameter query. |
ad53276431c**** |
| StartTime |
integer |
Yes |
The start time, expressed as a UNIX timestamp. Unit: seconds. |
1698195600 |
| EndTime |
integer |
Yes |
The end time, expressed as a UNIX timestamp. Unit: seconds. |
1698201013 |
| PageSize |
integer |
Yes |
The number of records per page. Valid values: 1 to 100. |
10 |
| PageNo |
integer |
Yes |
The page number. Valid values: 1 and greater. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
CC8CB656-A7BA-1811-9D6B-4CC187E988BD |
| Count |
integer |
The total number of callback records returned on the current page. |
1 |
| HasMore |
boolean |
Indicates whether there is a next page. |
false |
| Logs |
array<object> |
The callback records. |
|
|
object |
The callback records. |
||
| AppId |
string |
The ID of the subscribed application. |
9qb1**** |
| SubId |
string |
The subscription event ID. |
ad53276431c**** |
| MessageId |
string |
The callback record ID. |
875d5266cbabb1834cc84a105cf6**** |
| Data |
string |
The callback content details. |
{\"MsgId\":\"875d5266cbabb1834cc84a105cf68454\",\"MsgTimestamp\":1697545591,\"SubscribeId\":\"09be0d2254cb5a89f4cbd86403ec5343\",\"AppId\":\"xxx\",\"ChannelId\":\"9099\",\"Contents\":[{\"Event\":\"UserEvent\",\"UserEvent\":{\"UserId\":\"linux_test\",\"EventTag\":\"Leave\",\"SessionId\":\"je7y2sBZJZQ0VBJZrh4LnBkxvGH2WyVs\",\"Timestamp\":1697545591,\"ChannelProfile\":\"interactive_live\",\"US\":5068748604047364,\"Reason\":1,\"Role\":1,\"TerminalType\":6,\"UserType\":2}}]} |
| Cost |
integer |
The callback duration. Unit: milliseconds. |
22 |
| Time |
string |
The time when the callback record was generated. The time is in the UTC+8 time zone. Format: yyyy-MM-dd hh:mm:ss.SSS. |
2023-10-17 20:26:31.988 |
| Url |
string |
The callback URL. |
http://****.com/callback |
| Code |
integer |
The error code. A value of 200 indicates a successful callback. |
200 |
Examples
Success response
JSON format
{
"RequestId": "CC8CB656-A7BA-1811-9D6B-4CC187E988BD",
"Count": 1,
"HasMore": false,
"Logs": [
{
"AppId": "9qb1****",
"SubId": "ad53276431c****",
"MessageId": "875d5266cbabb1834cc84a105cf6****",
"Data": "{\\\"MsgId\\\":\\\"875d5266cbabb1834cc84a105cf68454\\\",\\\"MsgTimestamp\\\":1697545591,\\\"SubscribeId\\\":\\\"09be0d2254cb5a89f4cbd86403ec5343\\\",\\\"AppId\\\":\\\"xxx\\\",\\\"ChannelId\\\":\\\"9099\\\",\\\"Contents\\\":[{\\\"Event\\\":\\\"UserEvent\\\",\\\"UserEvent\\\":{\\\"UserId\\\":\\\"linux_test\\\",\\\"EventTag\\\":\\\"Leave\\\",\\\"SessionId\\\":\\\"je7y2sBZJZQ0VBJZrh4LnBkxvGH2WyVs\\\",\\\"Timestamp\\\":1697545591,\\\"ChannelProfile\\\":\\\"interactive_live\\\",\\\"US\\\":5068748604047364,\\\"Reason\\\":1,\\\"Role\\\":1,\\\"TerminalType\\\":6,\\\"UserType\\\":2}}]}",
"Cost": 22,
"Time": "2023-10-17 20:26:31.988",
"Url": "http://****.com/callback",
"Code": 200
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InputInvalid | %s. | Illegal input parameters |
| 500 | ServerError | %s. | Unknown error, please try again later or submit a ticket for consultation. |
| 403 | NoAuth | %s. | No permission |
| 404 | ResourceNotExist | %s. | The requested resource does not exist, please check and try again |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.