Skip to main content
GET
List Call Sessions

Authorizations

string
required
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

integer
The page number to return. Page numbering starts at 1.
integer
The number of records to return per page.
string
The unique ID of the agent that should own, handle, or be assigned to this resource. Use the id returned by the Agent API.
string
Filters or sets the current status of the resource. Use one of the status values supported by the endpoint.
string
Filters calls by channel. Common values include voice, web, and sip.
string
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.
string
The field to sort results by. Use one of the fields supported by the endpoint.
string
The sort direction. Use asc for ascending order or desc for descending order.
string
Filters calls that started after this ISO 8601 timestamp.
string
Filters calls that started before this ISO 8601 timestamp.

Response

boolean
Whether the request succeeded.
string
Human-readable status message.
object
Returned data.

Authorizations

X-Api-Key
string
header
required

Query Parameters

page
integer
default:1

Page number

page_size
integer
default:20

Results per page

agent_id
string

Filter by agent ID

status
string

Filter by status

channel
string

Filter by channel

caller_number
string

Filter by caller number

Search term

sort_by
string

Sort field

sort_order
string

Sort order (asc/desc)

started_after
string

Filter after (ISO 8601)

started_before
string

Filter before (ISO 8601)

Response

200 - application/json

Successful response

success
boolean
message
string
data
object
Example: