changedOutput schema / anyOf
Previous value: -[
- {
- "properties": {
- "agent_id": {
- "anyOf": [
- {
- "format": "uuid",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Agent that answered (inbound) or placed (outbound) this call. Null when the call was placed with an inline system_prompt.",
- "title": "Agent Id"
- },
- "answered_at": {
- "anyOf": [
- {
- "format": "date-time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "When the callee answered, ISO 8601 timestamp. Null if never answered.",
- "title": "Answered At"
- },
- "caller_hidden_reason": {
- "anyOf": [
- {
- "const": "phone_system_sent_own_number",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Why Hail recorded an inbound caller as 'anonymous'. 'phone_system_sent_own_number': the connected phone system sent one of your own numbers as the caller, not the real caller's number. Set your phone system to pass the caller's number. Null when Hail kept the caller as sent, including a caller who withheld their number.",
- "title": "Caller Hidden Reason"
- },
- "direction": {
- "description": "'outbound' for calls Hail placed, 'inbound' for calls received.",
- "enum": [
- "outbound",
- "inbound"
- ],
- "title": "Direction",
- "type": "string"
- },
- "end_reason": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Machine-readable reason the call reached a terminal status (e.g. 'normal_hangup', 'user_rejected', 'sip_trunk_failure'). Null while the call is still in progress.",
- "title": "End Reason"
- },
- "ended_at": {
- "anyOf": [
- {
- "format": "date-time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "When the call ended, ISO 8601 timestamp. Null while still in progress.",
- "title": "Ended At"
- },
- "failure_message": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Human-readable explanation for a failed call. Null for other statuses.",
- "title": "Failure Message"
- },
- "from_e164": {
- "description": "Caller-id phone number used, E.164 format.",
- "title": "From E164",
- "type": "string"
- },
- "id": {
- "description": "Unique identifier for this call.",
- "format": "uuid",
- "title": "Id",
- "type": "string"
- },
- "idempotency_key": {
- "description": "Key that identifies this exact request when retrying.",
- "type": "string"
- },
- "initial_prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The system_prompt this call was created with, if any.",
- "title": "Initial Prompt"
- },
- "livekit_room": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Name of the LiveKit room hosting this call's media session, if one was created.",
- "title": "Livekit Room"
- },
- "organization_id": {
- "description": "Organization that placed or received this call.",
- "format": "uuid",
- "title": "Organization Id",
- "type": "string"
- },
- "provider_call_sid": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The telephony provider's identifier for this call leg, if assigned.",
- "title": "Provider Call Sid"
- },
- "recording_duration_ms": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Duration of captured audio, independent of billed call duration.",
- "title": "Recording Duration Ms"
- },
- "recording_enabled": {
- "default": false,
- "description": "Whether the recording-enabled call rate applies, regardless of capture outcome.",
- "title": "Recording Enabled",
- "type": "boolean"
- },
- "recording_s3_key": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Internal storage key for the call recording. Not a directly fetchable URL.",
- "title": "Recording S3 Key"
- },
- "recording_status": {
- "default": "disabled",
- "description": "disabled, requested, starting, recording, processing, ready, unavailable, failed, or erased.",
- "title": "Recording Status",
- "type": "string"
- },
- "requested_at": {
- "description": "When the call was requested, ISO 8601 timestamp.",
- "format": "date-time",
- "title": "Requested At",
- "type": "string"
- },
- "started_at": {
- "anyOf": [
- {
- "format": "date-time",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "When dialing began, ISO 8601 timestamp. Null until the call starts.",
- "title": "Started At"
- },
- "status": {
- "description": "Current call-progress state: 'queued', 'dialing', 'ringing', 'in_progress', or one of the terminal states 'completed', 'failed', 'busy', 'no_answer', 'canceled'.",
- "enum": [
- "queued",
- "dialing",
- "ringing",
- "in_progress",
- "completed",
- "failed",
- "busy",
- "no_answer",
- "canceled"
- ],
- "title": "Status",
- "type": "string"
- },
- "to_e164": {
- "description": "Recipient phone number, E.164 format.",
- "title": "To E164",
- "type": "string"
- },
- "transcript": {
- "anyOf": [
- {
- "items": {
- "$ref": "#/$defs/CallTranscriptTurn"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "What was said on the call, in the order it was said. Set only by GET /v1/calls/{call_id}: an empty list until someone speaks. Null in POST /v1/calls and GET /v1/calls responses.",
- "title": "Transcript"
- }
- },
- "required": [
- "id",
- "organization_id",
- "from_e164",
- "to_e164",
- "caller_hidden_reason",
- "direction",
- "agent_id",
- "status",
- "end_reason",
- "provider_call_sid",
- "livekit_room",
- "initial_prompt",
- "recording_enabled",
- "recording_status",
- "recording_duration_ms",
- "recording_s3_key",
- "requested_at",
- "started_at",
- "answered_at",
- "ended_at",
- "failure_message",
- "transcript",
- "idempotency_key"
- ],
- "title": "CallResponse",
- "type": "object"
- },
- {
- "properties": {
- "error": {
- "type": "string"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "agent_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Agent that answered (inbound) or placed (outbound) this call. Null when the call was placed with an inline system_prompt.",
+ "title": "Agent Id"
+ },
+ "answered_at": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When the callee answered, ISO 8601 timestamp. Null if never answered.",
+ "title": "Answered At"
+ },
+ "caller_hidden_reason": {
+ "anyOf": [
+ {
+ "const": "phone_system_sent_own_number",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Why Hail recorded an inbound caller as 'anonymous'. 'phone_system_sent_own_number': the connected phone system sent one of your own numbers as the caller, not the real caller's number. Set your phone system to pass the caller's number. Null when Hail kept the caller as sent, including a caller who withheld their number.",
+ "title": "Caller Hidden Reason"
+ },
+ "direction": {
+ "description": "'outbound' for calls Hail placed, 'inbound' for calls received.",
+ "enum": [
+ "outbound",
+ "inbound"
+ ],
+ "title": "Direction",
+ "type": "string"
+ },
+ "end_reason": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Machine-readable reason the call reached a terminal status (e.g. 'normal_hangup', 'user_rejected', 'sip_trunk_failure'). Null while the call is still in progress.",
+ "title": "End Reason"
+ },
+ "ended_at": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When the call ended, ISO 8601 timestamp. Null while still in progress.",
+ "title": "Ended At"
+ },
+ "failure_message": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Human-readable explanation for a failed call. Null for other statuses.",
+ "title": "Failure Message"
+ },
+ "from_e164": {
+ "description": "Caller-id phone number used, E.164 format.",
+ "title": "From E164",
+ "type": "string"
+ },
+ "id": {
+ "description": "Unique identifier for this call.",
+ "format": "uuid",
+ "title": "Id",
+ "type": "string"
+ },
+ "idempotency_key": {
+ "description": "Key that identifies this exact request when retrying.",
+ "type": "string"
+ },
+ "initial_prompt": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The system_prompt this call was created with, if any.",
+ "title": "Initial Prompt"
+ },
+ "livekit_room": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Name of the LiveKit room hosting this call's media session, if one was created.",
+ "title": "Livekit Room"
+ },
+ "organization_id": {
+ "description": "Organization that placed or received this call.",
+ "format": "uuid",
+ "title": "Organization Id",
+ "type": "string"
+ },
+ "provider_call_sid": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The telephony provider's identifier for this call leg, if assigned.",
+ "title": "Provider Call Sid"
+ },
+ "recording_duration_ms": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Duration of captured audio, independent of billed call duration.",
+ "title": "Recording Duration Ms"
+ },
+ "recording_enabled": {
+ "default": false,
+ "description": "Whether recording was enabled for this call. See recording_status for the capture outcome.",
+ "title": "Recording Enabled",
+ "type": "boolean"
+ },
+ "recording_s3_key": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Internal storage key for the call recording. Not a directly fetchable URL.",
+ "title": "Recording S3 Key"
+ },
+ "recording_status": {
+ "default": "disabled",
+ "description": "disabled, requested, starting, recording, processing, ready, unavailable, failed, or erased.",
+ "title": "Recording Status",
+ "type": "string"
+ },
+ "requested_at": {
+ "description": "When the call was requested, ISO 8601 timestamp.",
+ "format": "date-time",
+ "title": "Requested At",
+ "type": "string"
+ },
+ "started_at": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When dialing began, ISO 8601 timestamp. Null until the call starts.",
+ "title": "Started At"
+ },
+ "status": {
+ "description": "Current call-progress state: 'queued', 'dialing', 'ringing', 'in_progress', or one of the terminal states 'completed', 'failed', 'busy', 'no_answer', 'canceled'.",
+ "enum": [
+ "queued",
+ "dialing",
+ "ringing",
+ "in_progress",
+ "completed",
+ "failed",
+ "busy",
+ "no_answer",
+ "canceled"
+ ],
+ "title": "Status",
+ "type": "string"
+ },
+ "to_e164": {
+ "description": "Recipient phone number, E.164 format.",
+ "title": "To E164",
+ "type": "string"
+ },
+ "transcript": {
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/$defs/CallTranscriptTurn"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "What was said on the call, in the order it was said. Set only by GET /v1/calls/{call_id}: an empty list until someone speaks. Null in POST /v1/calls and GET /v1/calls responses.",
+ "title": "Transcript"
+ }
+ },
+ "required": [
+ "id",
+ "organization_id",
+ "from_e164",
+ "to_e164",
+ "caller_hidden_reason",
+ "direction",
+ "agent_id",
+ "status",
+ "end_reason",
+ "provider_call_sid",
+ "livekit_room",
+ "initial_prompt",
+ "recording_enabled",
+ "recording_status",
+ "recording_duration_ms",
+ "recording_s3_key",
+ "requested_at",
+ "started_at",
+ "answered_at",
+ "ended_at",
+ "failure_message",
+ "transcript",
+ "idempotency_key"
+ ],
+ "title": "CallResponse",
+ "type": "object"
+ },
+ {
+ "properties": {
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]