Retrieve call records
Retrieve call records
https://api.agora.io/api/conversational-ai-agent/v2/projects/{appid}/callUse this endpoint to query historical call records for a specified appid based on the filter criteria.
Request
Path parameters
The App ID of the project.
Query parameters
Filter by phone number. Can be either the calling number or the called number.
Default: 60 days ago
Query list start timestamp (in seconds).
Default: Current time
Query list end timestamp (in seconds).
Possible values: inbound, outbound
Call type filter:
inbound: Inbound call.outbound: Outbound call.
If not specified, all call types are returned.
Default: 20
Maximum number of items returned in a single page.
Pagination cursor. Use the agent_id from the previous page as the cursor for the next page.
Response
-
If the returned status code is
200, the request was successful. The response body contains the result of the request.Response Body
- data object
Call data object.
Show propertiesHide properties
- count integer
The number of calls returned in this response.
- list array
A list of calls that meet the criteria.
Show propertiesHide properties
- to_number string
The number called.
- from_number string
Caller ID.
- pipeline_id string
The unique ID of a published project in AI Studio. Can be obtained in AI Studio - Project - Release Management.
- type string
Possible values:
inbound,outboundCall type:
inbound: Inbound call.outbound: Outbound call.
- agent_id string
A unique identifier for the call session.
- channel string
RTC channel name.
- create_ts integer
Call creation timestamp (in seconds).
- state string
Possible values:
answered,hangupCall status:
answered: The call was answered.hangup: The call was disconnected.
- stop_ts integer
Call end timestamp (in seconds). Returns
0ornullif the call has not ended.
- meta object
Metadata about the list.
Show propertiesHide properties
- cursor string
Pagination cursor for the next page.
- total integer
The total number of calls that meet the query criteria.
- status string
Request status.
-
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.Error Response
- error_type string
The type of error that occurred.
- description string
A detailed description of the error.