List Call Sessions
Calling API
List Call Sessions
List Call Sessions.
GET
List Call Sessions
Authorizations
Your Agni API key used to authenticate the request. Pass it in the
X-Api-Key header. Find or rotate it from your Ravan AI account settings.Query Parameters
The page number to return. Page numbering starts at
1.The number of records to return per page.
The unique ID of the agent that should own, handle, or be assigned to this resource. Use the
id returned by the Agent API.Filters or sets the current status of the resource. Use one of the status values supported by the endpoint.
Filters calls by channel. Common values include
voice, web, and sip.Filters results by the caller phone number in E.164 format. Example:
+14157774444.A search string used to filter matching records by supported text fields.
The field to sort results by. Use one of the fields supported by the endpoint.
The sort direction. Use
asc for ascending order or desc for descending order.Filters calls that started after this ISO 8601 timestamp.
Filters calls that started before this ISO 8601 timestamp.
Response
Whether the request succeeded.
Human-readable status message.
Returned data.
Authorizations
Query Parameters
Page number
Results per page
Filter by agent ID
Filter by status
Filter by channel
Filter by caller number
Search term
Sort field
Sort order (asc/desc)
Filter after (ISO 8601)
Filter before (ISO 8601)
Response
200 - application/json
Successful response
Example:
{
"callSessions": [
{
"id": "<string>",
"agentId": "<string>",
"organizationId": "<string>",
"roomId": "<string>",
"callerNumber": "<string>",
"calleeNumber": "<string>",
"callerName": "<string>",
"callerEmail": "<string>",
"channel": "<string>",
"status": "<string>",
"summary": "<string>",
"metadata": {},
"errorMessage": "<string>",
"disconnectReason": "<string>",
"promptDynamicVariables": {},
"extractDynamicVariables": null,
"callLatencyMs": 0,
"startedAt": "<string>",
"endedAt": "<string>",
"durationSec": 0,
"createdAt": "<string>",
"recordingUrl": "<string>",
"costTotal": "<string>",
"agentName": "<string>",
"postCallAnalysisResult": {},
"creditBreakdown": {
"channel": "<string>",
"duration_sec": 0,
"model_credits": 0,
"provider_credits": 0,
"provider_managed": true,
"telephony_type": "<string>",
"total_credits": 0
}
}
]
}
