Calls

Call logs, history, stats, and trends

List calls or get stats/trends

get

Retrieves paginated call logs, aggregated stats, or trends based on action parameter.

  • No action: Returns paginated call list

  • action=stats: Returns call status breakdown

  • action=trends: Returns daily call counts over time

Authorizations
AuthorizationstringRequired

API key in format kros_live_xxxx for production or kros_test_xxxx for testing. Also accepts JWT tokens from Supabase Auth for dashboard sessions.

Alternative: You can also use the x-api-key header instead of Authorization Bearer.

Query parameters
pageinteger · min: 1Optional

Page number for pagination (1-indexed)

Default: 1
limitinteger · min: 1 · max: 100Optional

Number of items per page

Default: 20
actionstring · enumOptional

Action type (stats or trends)

Possible values:
statusstring · enumOptional

Filter by call status

Possible values:
directionstring · enumOptional

Filter by call direction

Possible values:
phone_number_idstring · uuidOptional

Filter by phone number ID

start_datestring · dateOptional

Filter calls from this date (for trends)

end_datestring · dateOptional

Filter calls until this date (for trends)

Header parameters
x-organization-idstring · uuidOptional

Organization UUID for multi-tenant context. Falls back to user's first organization if not provided.

Responses
chevron-right
200

Calls data, stats, or trends

application/json
or
or
get
/calls

Get call details

get

Retrieves detailed call information including events and recording

Authorizations
AuthorizationstringRequired

API key in format kros_live_xxxx for production or kros_test_xxxx for testing. Also accepts JWT tokens from Supabase Auth for dashboard sessions.

Alternative: You can also use the x-api-key header instead of Authorization Bearer.

Path parameters
idstring · uuidRequired

Call UUID

Header parameters
x-organization-idstring · uuidOptional

Organization UUID for multi-tenant context. Falls back to user's first organization if not provided.

Responses
chevron-right
200

Call details

application/json
idstring · uuidOptional
from_numberstringOptionalExample: +14155551234
to_numberstringOptionalExample: +14155555678
directionstring · enumOptionalPossible values:
statusstring · enumOptionalPossible values:
durationintegerOptional

Call duration in seconds

Example: 120
costnumber · floatOptional

Call cost in cents

Example: 2.4
latency_msintegerOptional

Connection latency in milliseconds

Example: 45
phone_number_idstring · uuidOptional
endpoint_idstring · uuid · nullableOptional
recording_urlstring · uri · nullableOptional
hangup_causestring · nullableOptionalExample: NORMAL_CLEARING
organization_idstring · uuidOptional
created_atstring · date-timeOptional
answered_atstring · date-time · nullableOptional
completed_atstring · date-time · nullableOptional
transcriptstring · nullableOptional
get
/calls/{id}

Delete call record

delete

Deletes the call record and associated events

Authorizations
AuthorizationstringRequired

API key in format kros_live_xxxx for production or kros_test_xxxx for testing. Also accepts JWT tokens from Supabase Auth for dashboard sessions.

Alternative: You can also use the x-api-key header instead of Authorization Bearer.

Path parameters
idstring · uuidRequired

Call UUID

Header parameters
x-organization-idstring · uuidOptional

Organization UUID for multi-tenant context. Falls back to user's first organization if not provided.

Responses
delete
/calls/{id}

No content

Last updated