addedOutput schema / $defs
Added value: +{
+ "EventResponse": {
+ "description": "One event on the unified GET /events stream (call, email, or SMS).",
+ "properties": {
+ "call_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The call this event belongs to. Set only when source='call'.",
+ "title": "Call Id"
+ },
+ "email_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The email this event belongs to. Set only when source='email'.",
+ "title": "Email Id"
+ },
+ "id": {
+ "description": "Unique identifier for this event.",
+ "format": "uuid",
+ "title": "Id",
+ "type": "string"
+ },
+ "kind": {
+ "description": "Event kind within the source (e.g. 'queued', 'delivered', 'bounced'). Vocabulary differs per source.",
+ "title": "Kind",
+ "type": "string"
+ },
+ "occurred_at": {
+ "description": "When this event occurred, ISO 8601 timestamp.",
+ "format": "date-time",
+ "title": "Occurred At",
+ "type": "string"
+ },
+ "payload": {
+ "additionalProperties": true,
+ "description": "Event-kind-specific detail, as a free-form JSON object.",
+ "title": "Payload",
+ "type": "object"
+ },
+ "sms_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The message this event belongs to. Set only when source='sms'.",
+ "title": "Sms Id"
+ },
+ "source": {
+ "description": "Which channel this event belongs to: 'call', 'email', or 'sms'.",
+ "enum": [
+ "call",
+ "email",
+ "sms"
+ ],
+ "title": "Source",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "source",
+ "call_id",
+ "email_id",
+ "sms_id",
+ "kind",
+ "payload",
+ "occurred_at"
+ ],
+ "title": "EventResponse",
+ "type": "object"
+ }
+}
addedOutput schema / anyOf
Added value: +[
+ {
+ "properties": {
+ "call_status": {
+ "anyOf": [
+ {
+ "enum": [
+ "queued",
+ "dialing",
+ "ringing",
+ "in_progress",
+ "completed",
+ "failed",
+ "busy",
+ "no_answer",
+ "canceled"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Current status of the call named by the id filter (e.g. id=call:<uuid>). Null for org-wide tails and non-call filters, since there is no single call to report a status for.",
+ "title": "Call Status"
+ },
+ "items": {
+ "description": "Events in this page, oldest first.",
+ "items": {
+ "$ref": "#/$defs/EventResponse"
+ },
+ "title": "Items",
+ "type": "array"
+ },
+ "next_cursor": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Opaque cursor for the next page. Null when there are no more results.",
+ "title": "Next Cursor"
+ }
+ },
+ "required": [
+ "items",
+ "next_cursor",
+ "call_status"
+ ],
+ "title": "EventStreamResponse",
+ "type": "object"
+ },
+ {
+ "properties": {
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]