Skip to Content
Calls

List non-eval calls

Permissioncalls:readAuthentication
GET
/calls

Returns a cursor page of call metadata. Eval-backed sessions and purged calls are excluded by default. Query parameters are closed and singleton except ef (up to 20), agent_ids (up to 120), and channel_not (up to six). Unknown or duplicate singleton parameters return 400 instead of being ignored. next_cursor is bound to the selected sort and direction.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Query Parameters

cursor?string

Opaque keyset cursor returned as next_cursor. It is bound to this endpoint's sort and direction.

limit?integer

Number of calls to return.

Range1 <= value <= 200
Default50
agent_id?string
Formatuuid
agent_ids?array<>

Repeatable agent UUID scope. Matches any listed agent; ANDed with agent_id, agent_name and other filters. At most 120 values.

Items1 <= items <= 120
agent_name?string
Length1 <= length <= 200
campaign_id?string

Restrict to calls placed by one campaign.

Formatuuid
flow_id?string

Restrict to calls that ran inside one flow.

Formatuuid
group_id?string

Restrict to calls routed through one group (any member).

Formatuuid
status?string
Value in"live""completed"
call_id?string

Call-ID needle matched case-insensitively against the call UUID. call_id_match picks the mode and defaults to starts_with, so the 8-character short ID shown in the dashboard finds its call while a full UUID still matches.

Length1 <= length <= 64
call_id_match?string

Match mode for call_id. Defaults to starts_with. Only read when call_id is present.

Value in"contains""is""starts_with"
caller_number?string

Customer phone-number needle. caller_match picks the mode and defaults to a case-insensitive contains, so trailing digits still find the call. Only calls with a stored caller number match; purged and older calls have none.

Length1 <= length <= 64
caller_match?string

Match mode for caller_number. Defaults to contains; is is an exact match. Only read when caller_number is present.

Value in"contains""is""starts_with"
lifecycle_status?string
Value in"ringing""in_progress""ended""failed"
outcome?string
Length1 <= length <= 160
direction?string
Value in"inbound""outbound"
handled_by?string

Restrict to AI-handled or ingested human-handled calls. Distinct from the session's channel, which records how the call reached the platform.

Value in"ai""human"
started_from?string

Inclusive RFC3339 start time.

Formatdate-time
started_to?string

Exclusive RFC3339 end time; must be after started_from.

Formatdate-time
duration_min?number
Range0 <= value
duration_max?number
Range0 <= value
total_duration_min?number
Range0 <= value
total_duration_max?number
Range0 <= value
turns_min?integer
Range0 <= value <= 2147483647
turns_max?integer
Range0 <= value <= 2147483647
has_recording?boolean
legal_hold?boolean
purged?boolean

true returns only purged tombstones; false returns only unpurged calls.

include_purged?boolean

Include purged tombstones when purged is omitted.

sort?string
Default"started_at"
Value in"started_at""duration""total_duration""segment_count""outcome"
dir?string
Default"desc"
Value in"asc""desc"
ef?array<>

Repeatable base64url-encoded extraction-field filter object. Each encoded value is at most 4096 bytes; a request may contain at most 20. See CallExtractionFilter.

Itemsitems <= 20
campaign_name?string

Exact-match campaign name (analysis-board drill-down). Matches every campaign with that display name.

Length1 <= length <= 200
channel?string

How the call reached the platform. Null for rows predating the column's backfill, which therefore match no value.

Value in"sip_inbound""sip_outbound""web_sdk""web_test""eval""transfer_brief"
channel_not?array<>

Repeatable channel exclusion. Every exclusion is ANDed with other filters, including channel. Null channels do not match, consistent with analysis neq filters. At most six values.

Items1 <= items <= 6
failure_code?string

Exact-match failure code (analysis-board drill-down).

Length1 <= length <= 120
human_agent?string

Exact-match human-agent label. Null for AI-handled calls.

Length1 <= length <= 200
platform_number?string

Exact-match platform (our end) phone number.

Length1 <= length <= 64
guardrail_name?string

Calls with a guardrail trigger of this name. Combined with the other guardrail_* parameters into a single existence test, so all of them must describe the SAME trigger.

Length1 <= length <= 200
guardrail_id?string

Calls with a guardrail trigger of this id. See guardrail_name.

Length1 <= length <= 200
guardrail_severity?string

Calls with a guardrail trigger of this severity. See guardrail_name.

Length1 <= length <= 200
guardrail_set_slug?string

Calls with a guardrail trigger from this set. See guardrail_name.

Length1 <= length <= 200
tool_slug?string

Calls that invoked this tool. Combined with the other tool_* parameters into a single existence test, so all of them must describe the SAME invocation.

Length1 <= length <= 200
tool_name?string

Calls that invoked a tool with this display name. See tool_slug.

Length1 <= length <= 200
tool_kind?string

Calls that invoked a tool of this kind. See tool_slug.

Value in"catalog""builtin""mcp"
tool_ok?boolean

Calls with a succeeding (true) or failing (false) tool invocation. See tool_slug.

tool_error_kind?string

Calls with a tool invocation that failed this way. See tool_slug.

Value in"network""timeout""http_4xx""http_5xx""parse""auth""config""other"

Response Body

Call page.

application/json
  1. response
data*array<>
next_cursor*string|null
Example Request
curl -X GET 'https://api.kejue.co/v1/calls'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "room_name": "string",      "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",      "agent_slug": "string",      "agent_name": "string",      "agent_version_id": "1c2a713c-7248-4a56-a9eb-0bdcb3a41741",      "agent_version": 0,      "agent_version_is_draft": true,      "channel": "sip_inbound",      "direction": "inbound",      "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2",      "flow_slug": "string",      "flow_name": "string",      "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f",      "group_member_id": "03c46fef-cbe7-4bba-8c49-d666090d0932",      "group_name": "string",      "group_member_label": "string",      "started_at": "2019-08-24T14:15:22Z",      "answered_at": "2019-08-24T14:15:22Z",      "ended_at": "2019-08-24T14:15:22Z",      "duration_sec": 0,      "ring_duration_sec": 0,      "talk_duration_sec": 0,      "total_duration_sec": 0,      "outcome": "string",      "status": "live",      "lifecycle_status": "ringing",      "display_status": "ringing",      "failure_code": "string",      "failure_reason": "string",      "ended_reason": "string",      "segment_count": 0,      "metadata": {},      "legal_hold": true,      "purged_at": "2019-08-24T14:15:22Z",      "purge_kind": "manual",      "caller_number": "string",      "platform_number": "string",      "handled_by": "ai",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string"}