Call
Type: object
Required means required within its containing object, when that object is present. Union/conditional constraints remain defined by the JSON Schema below.
| Field | Type | Presence | Description / constraints |
|---|---|---|---|
agent | anyOf: string; null | Optional | — |
answered_at | anyOf: string (date-time); null | Optional | — |
billable_seconds | anyOf: integer; null | Optional | — |
billing_status | pending, settled | Optional | — |
cost_micros | anyOf: string; null | Optional | — |
direction | inbound, outbound | Optional | — |
duration_seconds | anyOf: integer; null | Optional | — |
ended_at | anyOf: string (date-time); null | Optional | — |
from_e164 | string | Optional | pattern: ^\+[1-9][0-9]{6,14}$ |
id | string | Required | Public call_… reference (not a UUID). pattern: ^call_[0-7][0-9A-HJKMNP-TV-Z]{25}$ |
line | string | Optional | pattern: ^\+[1-9][0-9]{6,14}$ |
line_id | anyOf: string; null | Optional | — |
max_duration_seconds | anyOf: integer; null | Optional | — |
rating | anyOf: object; null | Optional | Paid accounts only: the price book's route class (e.g. us-ordinary, us-high-cost) and version its charge used; null until charged |
recording | anyOf: RecordingSummary; null | Optional | — |
records | object | Optional | Additional properties allowed |
records.outcome | anyOf: string; null | Optional | — |
records.recording | boolean | Optional | — |
records.transcript | boolean | Optional | — |
speech | object | Optional | ORDan voice on the call: the characters spoken; a preview org also sees its provider cost (a paid account's charge is in cost_micros). Additional properties allowed |
speech.chars | integer | Optional | minimum: 0 |
speech.cost_micros | anyOf: string; null | Optional | — |
status | authorized, routing, ringing, connected, completed, failed, busy, no_answer, canceled | Required | — |
to_e164 | string | Optional | pattern: ^\+[1-9][0-9]{6,14}$ |
transcription_failed_at | anyOf: string (date-time); null | Optional | Set when the carrier refused to start transcribing the call: ORDan voice can speak on it, but the transcript stays empty, and a paid account is not charged for its ORDan voice |
transfer | string | Optional | Public xfer_… reference (not a UUID). pattern: ^xfer_[0-7][0-9A-HJKMNP-TV-Z]{25}$ |
transfers | Array of Transfer | Optional | — |
voice_mode | none, ordan | Optional | — |
voice_opened_at | anyOf: string (date-time); null | Optional | — |
voice_settings | anyOf: object; null | Optional | — |
JSON Schema
json
{
"additionalProperties": true,
"properties": {
"agent": {
"anyOf": [
{
"description": "Public agent_… reference (not a UUID)",
"pattern": "^agent_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
{
"type": "null"
}
]
},
"answered_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"billable_seconds": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"billing_status": {
"enum": [
"pending",
"settled"
],
"type": "string"
},
"cost_micros": {
"anyOf": [
{
"description": "Integer USD micros as a decimal string; $1 = 1000000 micros",
"pattern": "^[0-9]+$",
"type": "string"
},
{
"type": "null"
}
]
},
"direction": {
"enum": [
"inbound",
"outbound"
],
"type": "string"
},
"duration_seconds": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"ended_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"from_e164": {
"examples": [
"+12125550101"
],
"pattern": "^\\+[1-9][0-9]{6,14}$",
"type": "string"
},
"id": {
"description": "Public call_… reference (not a UUID)",
"pattern": "^call_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
"line": {
"examples": [
"+12125550101"
],
"pattern": "^\\+[1-9][0-9]{6,14}$",
"type": "string"
},
"line_id": {
"anyOf": [
{
"description": "Public line_… reference (not a UUID)",
"pattern": "^line_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
{
"type": "null"
}
]
},
"max_duration_seconds": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"rating": {
"anyOf": [
{
"additionalProperties": true,
"properties": {
"price_book_version": {
"type": "string"
},
"route_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"type": "object"
},
{
"type": "null"
}
],
"description": "Paid accounts only: the price book's route class (e.g. us-ordinary, us-high-cost) and version its charge used; null until charged"
},
"recording": {
"anyOf": [
{
"$ref": "#/components/schemas/RecordingSummary"
},
{
"type": "null"
}
]
},
"records": {
"additionalProperties": true,
"properties": {
"outcome": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"recording": {
"type": "boolean"
},
"transcript": {
"type": "boolean"
}
},
"type": "object"
},
"speech": {
"additionalProperties": true,
"description": "ORDan voice on the call: the characters spoken; a preview org also sees its provider cost (a paid account's charge is in cost_micros)",
"properties": {
"chars": {
"minimum": 0,
"type": "integer"
},
"cost_micros": {
"anyOf": [
{
"description": "Integer USD micros as a decimal string; $1 = 1000000 micros",
"pattern": "^[0-9]+$",
"type": "string"
},
{
"type": "null"
}
]
}
},
"type": "object"
},
"status": {
"enum": [
"authorized",
"routing",
"ringing",
"connected",
"completed",
"failed",
"busy",
"no_answer",
"canceled"
],
"type": "string"
},
"to_e164": {
"examples": [
"+12125550101"
],
"pattern": "^\\+[1-9][0-9]{6,14}$",
"type": "string"
},
"transcription_failed_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"description": "Set when the carrier refused to start transcribing the call: ORDan voice can speak on it, but the transcript stays empty, and a paid account is not charged for its ORDan voice"
},
"transfer": {
"description": "Public xfer_… reference (not a UUID)",
"pattern": "^xfer_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
"type": "string"
},
"transfers": {
"items": {
"$ref": "#/components/schemas/Transfer"
},
"type": "array"
},
"voice_mode": {
"enum": [
"none",
"ordan"
],
"type": "string"
},
"voice_opened_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"voice_settings": {
"anyOf": [
{
"additionalProperties": true,
"properties": {
"language": {
"type": "string"
},
"voice": {
"type": "string"
}
},
"type": "object"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"status"
],
"type": "object"
}