Skip to content
Calls

GEThttps://core-api.heysadie.ai/calls/live

success data calls id callId assistantId assistantName customerNumber callSource status startedAt durationSeconds monitorSupported monitorUnsupportedReason monitorCount total metadata timestamp version path error code message details field

List calls live

Try it in the API Explorer

Example request

Terminal
curl "https://core-api.heysadie.ai/calls/live" \
  -H "Authorization: ApiKey YOUR_API_KEY"

Authentication

Authenticate with an API key in the Authorization header using the ApiKey scheme. See Authentication for how keys work and where to get them.

Authorizationstringrequired

API key in the ApiKey scheme: ApiKey YOUR_API_KEY. Tenant keys authorize their own tenant; organization keys can act on any tenant in the organization.

X-Tenant-Idstring (uuid)optional

Required when authenticating with an organization key: it selects the tenant the request acts on. Omit with tenant keys.

Responses

200
successbooleanrequired

true on every 2xx

dataobjectoptional

The result

Show 2 child properties
callsobject[]required

Calls currently in progress

Show 12 item properties
idstringrequired

`calls.id`: the internal id every other call endpoint addresses a call by, and the one to put in the monitor-session path.

callIdstringrequired

`calls.call_id`: the agent-minted id that appears in agent logs. Carried so an operator can correlate a support ticket.

assistantIdstring | nullrequired
assistantNamestring | nullrequired
customerNumberstring | nullrequired

The caller's number, E.164.

callSourcestringrequired

`pstn`, `webrtc` or `whatsapp`. Monitoring is scoped to phone calls, so anything but `pstn` reports `monitorSupported: false`.

statusstring | nullrequired
startedAtstringrequired

When the call row was created, which is when the call started. `calls.started_at` stays null for the whole of a live call.

durationSecondsnumberrequired

How long the call has been running, derived server-side so a client with a skewed clock still renders a sane number.

monitorSupportedbooleanrequired

Whether a monitor session can be minted for this call. False for a call served by an agent build that predates live monitoring, for a call that has already reported, and for anything that is not a phone call.

monitorUnsupportedReasonenum | nullrequired

Null when the call can be monitored. `agent_build_unsupported` when the row carries no room name or no control secret: an agent build predating live monitoring, or a call that has already reported. `not_phone_call` for a browser or WhatsApp call; monitoring is scoped to phone calls in v1. Present so a greyed-out button has a tooltip.

Allowed values:"agent_build_unsupported""not_phone_call"
monitorCountnumberrequired

How many monitor sessions currently count against the call: the same number the mint endpoint enforces its cap with.

totalnumberrequired

Number of calls returned

metadataobjectoptional

Request metadata

Show 3 child properties
timestampstringrequired

When the server answered, ISO 8601 UTC

versionstringrequired

API version

pathstringoptional

The URL that was requested

400The request is invalid. `details` lists each field that failed
successbooleanrequired

false on every error

errorobjectoptional

What went wrong: a stable `code` to branch on and a human-readable `message`

Show 3 child properties
codeenumrequired

A parameter or body field broke a rule

Allowed values:"VALIDATION_ERROR"
messagestringrequired

Human-readable explanation. Do not parse it; branch on `code`

detailsobject[]optional

One entry per field that failed

Show 2 item properties
fieldstringrequired

The offending field

messagestringrequired

The rule it broke

metadataobjectoptional

Request metadata

Show 3 child properties
timestampstringrequired

When the server answered, ISO 8601 UTC

versionstringrequired

API version

pathstringoptional

The URL that was requested

401Missing or invalid credentials
successbooleanrequired

false on every error

errorobjectoptional

What went wrong: a stable `code` to branch on and a human-readable `message`

Show 2 child properties
codeenumrequired

No valid credentials

Allowed values:"UNAUTHORIZED"
messagestringrequired

Human-readable explanation. Do not parse it; branch on `code`

metadataobjectoptional

Request metadata

Show 3 child properties
timestampstringrequired

When the server answered, ISO 8601 UTC

versionstringrequired

API version

pathstringoptional

The URL that was requested

403The credentials are valid but may not use this route
successbooleanrequired

false on every error

errorobjectoptional

What went wrong: a stable `code` to branch on and a human-readable `message`

Show 2 child properties
codeenumrequired

The credentials may not use this route

Allowed values:"FORBIDDEN"
messagestringrequired

Human-readable explanation. Do not parse it; branch on `code`

metadataobjectoptional

Request metadata

Show 3 child properties
timestampstringrequired

When the server answered, ISO 8601 UTC

versionstringrequired

API version

pathstringoptional

The URL that was requested

404Not found, or outside the caller's scope
successbooleanrequired

false on every error

errorobjectoptional

What went wrong: a stable `code` to branch on and a human-readable `message`

Show 2 child properties
codeenumrequired

An id names nothing the caller can see

Allowed values:"RESOURCE_NOT_FOUND"
messagestringrequired

Human-readable explanation. Do not parse it; branch on `code`

metadataobjectoptional

Request metadata

Show 3 child properties
timestampstringrequired

When the server answered, ISO 8601 UTC

versionstringrequired

API version

pathstringoptional

The URL that was requested

500An unexpected server error
successbooleanrequired

false on every error

errorobjectoptional

What went wrong: a stable `code` to branch on and a human-readable `message`

Show 2 child properties
codeenumrequired

An unexpected server failure

Allowed values:"INTERNAL_SERVER_ERROR"
messagestringrequired

Human-readable explanation. Do not parse it; branch on `code`

metadataobjectoptional

Request metadata

Show 3 child properties
timestampstringrequired

When the server answered, ISO 8601 UTC

versionstringrequired

API version

pathstringoptional

The URL that was requested