AurionAI Docs

Calls & Recordings

Access voice call data, transcripts, and recording metadata via the Aurion API.

Calls & Recordings

The Calls API provides access to voice call sessions, transcripts, and recording metadata. Every AI voice conversation — whether from phone, mobile app, or web widget — is tracked as a call record.

List Calls

cURL
curl "https://apps.aurionai.net/api/v1/calls?limit=10&start_date=2026-03-01T00:00:00Z&end_date=2026-03-31T23:59:59Z" \
  -H "X-API-Key: itsm_sk_live_xxxx"
Python
import requests

response = requests.get(
    "https://apps.aurionai.net/api/v1/calls",
    headers={"X-API-Key": "itsm_sk_live_xxxx"},
    params={
        "limit": 10,
        "start_date": "2026-03-01T00:00:00Z",
        "end_date": "2026-03-31T23:59:59Z",
    },
)
calls = response.json()
TypeScript
const response = await fetch(
  "https://apps.aurionai.net/api/v1/calls?limit=10&start_date=2026-03-01T00:00:00Z&end_date=2026-03-31T23:59:59Z",
  {
    headers: { "X-API-Key": "itsm_sk_live_xxxx" },
  }
);
const calls = await response.json();

Response:

{
  "calls": [
    {
      "id": "9f1c8e3a-7b2d-4c5e-8f90-1a2b3c4d5e6f",
      "twilio_call_sid": "CA1234567890abcdef1234567890abcdef",
      "livekit_room_id": "0b6e2c1d-room-CA1234567890abcdef1234567890abcdef",
      "phone_number": "+33612345678",
      "direction": "inbound",
      "status": "completed",
      "start_time": "2026-03-08T10:30:00Z",
      "end_time": "2026-03-08T10:33:05Z",
      "duration_seconds": 185,
      "recording_url": "recordings/production/0b6e2c1d-4f3a-4e8b-9c7d-2a1b3c4d5e6f/2026/03/9f1c8e3a-7b2d-4c5e-8f90-1a2b3c4d5e6f.wav",
      "recording_duration_seconds": 185,
      "recording_size_bytes": 1482240,
      "recording_format": "wav",
      "outcome": "ticket_created",
      "created_at": "2026-03-08T10:30:00Z",
      "updated_at": "2026-03-08T10:33:05Z"
    },
    {
      "id": "4b7d2e91-3c5a-4f8e-b1d6-7e8f9a0b1c2d",
      "twilio_call_sid": "web-0b6e2c1d-1772961120-60e6a7",
      "livekit_room_id": "web-0b6e2c1d-1772961120-60e6a7",
      "phone_number": "unknown",
      "direction": "inbound",
      "status": "completed",
      "start_time": "2026-03-08T09:12:00Z",
      "end_time": "2026-03-08T09:14:10Z",
      "duration_seconds": 130,
      "recording_url": null,
      "recording_duration_seconds": null,
      "recording_size_bytes": null,
      "recording_format": null,
      "outcome": "hung_up",
      "created_at": "2026-03-08T09:12:00Z",
      "updated_at": "2026-03-08T09:14:10Z"
    }
  ],
  "total": 234,
  "limit": 10,
  "offset": 0
}

Query Parameters:

ParameterTypeDescription
start_datestringOptional ISO-8601 date-time. Returns only calls where start_time >= start_date.
end_datestringOptional ISO-8601 date-time. Returns only calls where start_time <= end_date.
limitintegerResults per page (default: 20, min: 1, max: 100)
offsetintegerNumber of results to skip (default: 0)

Results are always ordered by start_time descending. Unknown query parameters are ignored.

Get Call Details

curl "https://apps.aurionai.net/api/v1/calls/9f1c8e3a-7b2d-4c5e-8f90-1a2b3c4d5e6f" \
  -H "X-API-Key: itsm_sk_live_xxxx"

The call_id path parameter is a UUID. A non-UUID value returns 422. An unknown or cross-tenant ID returns 404 {"detail": "Call not found"}.

Response:

{
  "id": "9f1c8e3a-7b2d-4c5e-8f90-1a2b3c4d5e6f",
  "twilio_call_sid": "CA1234567890abcdef1234567890abcdef",
  "livekit_room_id": "0b6e2c1d-room-CA1234567890abcdef1234567890abcdef",
  "phone_number": "+33612345678",
  "direction": "inbound",
  "status": "completed",
  "start_time": "2026-03-08T10:30:00Z",
  "end_time": "2026-03-08T10:33:05Z",
  "duration_seconds": 185,
  "recording_url": "recordings/production/0b6e2c1d-4f3a-4e8b-9c7d-2a1b3c4d5e6f/2026/03/9f1c8e3a-7b2d-4c5e-8f90-1a2b3c4d5e6f.wav",
  "recording_duration_seconds": 185,
  "recording_size_bytes": 1482240,
  "recording_format": "wav",
  "outcome": "ticket_created",
  "created_at": "2026-03-08T10:30:00Z",
  "updated_at": "2026-03-08T10:33:05Z"
}

The detail response is identical to a single item in the list response.

Call Fields:

FieldTypeDescription
idstringCall UUID — use this to identify a call in Aurion
twilio_call_sidstringThe channel's id for this call (the name is historical). Only phone calls that came in through Twilio carry a Twilio call SID (CA + 32 hex characters). Other channels use their own ids: web widget web-… and mobile app app-…; SIP calls start with the room prefix set on the tenant's SIP trunk (call-… by default). A SIP id can contain the caller's phone number or SIP username. Other values are possible, so do not parse this field; use id to identify a call.
livekit_room_idstringLiveKit room identifier for the session
phone_numberstringCaller identifier as the channel provides it, so not always an E.164 number. Phone calls carry the caller's number as received (it can lack the +, or be prefixed sip_), or unknown; web widget, WebRTC and mobile-app calls carry unknown. Any other stored value, such as the caller's email address or display name on calls recorded up to early August 2026, is returned as unknown
directionstringCall direction, typically inbound or outbound
statusstringCall status (see below)
start_timestring | nullISO-8601 call start time
end_timestring | nullISO-8601 call end time
duration_secondsinteger | nullCall duration in seconds
recording_urlstring | nullStorage key of the recording (recordings/<environment>/<tenant_id>/<YYYY>/<MM>/<call_id>.wav), or null when there is no recording — the call was never recorded, or the recording was deleted by your recording-retention period or an erasure request. Not a download link: the public API does not serve recording audio
recording_duration_secondsinteger | nullRecording length in seconds. Kept after the recording is deleted
recording_size_bytesinteger | nullRecording file size in bytes. Kept after the recording is deleted
recording_formatstring | nullRecording container format: wav. Kept after the recording is deleted
outcomestring | nullHow the call ended (see below), or null when no outcome was recorded — for example while the call is in progress, or when the call was refused or ended before reaching the agent
created_atstring | nullISO-8601 record creation time
updated_atstring | nullISO-8601 last update time

ℹ️ Does the recording still exist? Check recording_url. When a recording is deleted (retention or erasure), recording_url becomes null but recording_duration_seconds, recording_size_bytes and recording_format keep describing the deleted file. Don't use those three fields to count or size stored recordings.

Get Transcript

Retrieve the conversation transcript for a call as an ordered list of exchanges:

curl "https://apps.aurionai.net/api/v1/calls/9f1c8e3a-7b2d-4c5e-8f90-1a2b3c4d5e6f/transcript" \
  -H "X-API-Key: itsm_sk_live_xxxx"

An unknown or cross-tenant ID returns 404 {"detail": "Call not found"}. A call with no recorded exchanges returns an empty exchanges array.

Response:

{
  "call_id": "9f1c8e3a-7b2d-4c5e-8f90-1a2b3c4d5e6f",
  "exchanges": [
    {
      "sequence_number": 1,
      "user_transcript": "Hi, my VPN is not connecting since this morning.",
      "agent_response": "I can help with that. Let me check your account first.",
      "error": false,
      "error_message": null,
      "exchange_timestamp": "2026-03-08T10:30:12Z"
    }
  ]
}

Each exchange pairs the caller's transcribed speech (user_transcript) with the agent's reply (agent_response). error flags a failed turn, with error_message carrying the detail when present.

Get Recording

Retrieve the stored recording metadata for a call:

curl "https://apps.aurionai.net/api/v1/calls/9f1c8e3a-7b2d-4c5e-8f90-1a2b3c4d5e6f/recording" \
  -H "X-API-Key: itsm_sk_live_xxxx"

An unknown or cross-tenant ID returns 404 {"detail": "Call not found"}. A call that has no recording stored — never recorded, or deleted by retention or an erasure request — returns 404 {"detail": "Recording not available"}, even if the call still lists a recording size and duration.

Response:

{
  "call_id": "9f1c8e3a-7b2d-4c5e-8f90-1a2b3c4d5e6f",
  "recording_url": "recordings/production/0b6e2c1d-4f3a-4e8b-9c7d-2a1b3c4d5e6f/2026/03/9f1c8e3a-7b2d-4c5e-8f90-1a2b3c4d5e6f.wav",
  "recording_format": "wav",
  "recording_size_bytes": 1482240,
  "recording_duration_seconds": 185
}

The recording_url is the recording's storage key, not a download link: the public API does not serve the recording audio.

Call Statuses

The status field is surfaced as stored on the call record. It is one of:

StatusDescription
ringingCall is ringing, not yet answered
in_progressCall is in progress
completedCall ended normally
failedCall failed (network issue, timeout)
no_answerCall was not answered

Call Outcomes

The outcome field is the last outcome recorded on the call. It is one of:

OutcomeDescription
ticket_createdA ticket was created
status_checkedThe caller checked a ticket's status
kb_articleKnowledge-base articles were found for or confirmed by the caller
service_catalog_browsedThe caller browsed the service catalog
escalatedThe call was transferred to a human
hung_upThe call ended with no more specific outcome recorded, including a normal end once the issue was resolved (the default)
errorThe call ended because of an error
max_duration_exceededThe call reached the maximum call duration
ticket_closedA ticket was closed
ticket_reopenedA ticket was reopened
ticket_reassignedA ticket was reassigned
change_request_createdA change request was created
asset_issue_reportedAn issue was reported on an asset
ticket_creation_unavailableThe caller asked for a ticket, but no ticketing system is connected to the account

Webhook Events

Subscribe to call events via webhooks:

EventDescription
call.startedA voice call session started
call.completedA voice call session ended
call.escalatedA call was escalated to a human agent

Required Scope

All call endpoints require the calls:read scope on your API key.

On this page