{
    "openapi": "3.0.3",
    "info": {
        "title": "ThunderPhone API",
        "version": "1.0.0",
        "description": "Programmatic access to the ThunderPhone platform — agents, phone numbers, calls, billing, webhooks, and more. See https://thunderphone.com/docs and https://thunderphone.com/developers for the reference, tutorials and migration guides.",
        "contact": {
            "name": "ThunderPhone support",
            "url": "https://thunderphone.com/docs"
        }
    },
    "paths": {
        "/v1/healthz": {
            "get": {
                "operationId": "healthz_list",
                "description": "Retrieve healthz. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "healthz"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    },
                    {}
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Health"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/whoami": {
            "get": {
                "operationId": "whoami_list",
                "description": "Validate the current API key, human session, or OAuth token and return its organization and non-sensitive credential identity.",
                "tags": [
                    "Authentication"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/WhoAmI"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/status/heartbeat": {
            "get": {
                "operationId": "status_heartbeat_list",
                "description": "Sanitized per-product heartbeat verdicts for the public status page. Serves the latest ``HeartbeatResult`` per product family. Deliberately carries no org ids, call ids, provider names, or failure internals — the status dashboard is public and must not name subprocessors. The shape is a public contract: ``{\"products\": [{\"product\", \"status\", \"mode\", \"checked_at\"}, ...]}``. Since 2026-10-23 ``products`` holds only ``bolt``: Spark and Storm were retired and their entries are simply left out (their old rows stay in the table as history). A reader that looks up a product by name and finds none treats it as \"no data\".",
                "tags": [
                    "status"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    },
                    {}
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Heartbeat"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/monitoring/azure-alert": {
            "post": {
                "operationId": "monitoring_azure_alert_create",
                "description": "Receiver for Azure Monitor action-group webhooks → Slack relay. Auth is the shared token in the query string (the URL, token included, lives inside the action-group receiver config). Always answers 200 once the token checks out so Azure does not retry-storm on Slack hiccups.",
                "tags": [
                    "monitoring"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": true,
                                "description": "Provider-defined alert payload."
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {}
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AlertDelivery"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/monitoring/glitchtip-alert": {
            "post": {
                "operationId": "monitoring_glitchtip_alert_create",
                "description": "Receiver for informational GlitchTip issue alerts → staff Feed only.",
                "tags": [
                    "monitoring"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": true,
                                "description": "Provider-defined alert payload."
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {}
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/GlitchTipDelivery"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/monitoring/ack/{token}": {
            "get": {
                "operationId": "monitoring_ack_retrieve",
                "description": "One-tap acknowledgement link for a Sev-0 page (opened from Slack). Unauthenticated by design — the unguessable per-incident token is the credential, so the on-call can ack from a phone without a login dance.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "token",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "monitoring"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {}
                ],
                "responses": {
                    "200": {
                        "content": {
                            "text/html": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/monitoring/auto-ack": {
            "post": {
                "operationId": "monitoring_auto_ack_create",
                "description": "Incident-session lease renewal for the incident watcher. Auth is the same shared query-string token as the alert webhook — the watcher reads it off the action group's receiver config with its managed identity, so no new secret exists anywhere. Until 2026-10-25 this acknowledged once, at spawn. The watcher now calls it every tick for each incident session that is alive and working, with ``alert_ids``: the Azure alerts that session was started for, the only incidents it renews. The session safety net pages a person when the renewals stop. ``alert_ids`` are required: a body without them (the pre-lease watcher) is refused rather than renewing a whole rule, so the watcher is reinstalled before this API deploys.",
                "tags": [
                    "monitoring"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AutoAckRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {}
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AlertAcknowledgement"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voices": {
            "get": {
                "operationId": "voices_list",
                "description": "Return the list of available voices and languages. GET /v1/voices GET /v1/voices?languages=en,es (filter to voices supporting ALL listed languages) GET /v1/voices?category=multilingual (filter by category) GET /v1/voices?gender=female (filter by gender) Response format: { \"voices\": [...], \"languages\": [...] }",
                "tags": [
                    "voices"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VoiceCatalog"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voices/library": {
            "get": {
                "operationId": "voices_library_list",
                "description": "Search every vendor voice. GET /v1/voices/library?q=warm+australian&group=platform&language=en&gender=male GET /v1/voices/library?language=es,en (voices that speak both) GET /v1/voices/library?names=platform:cooper,elevenlabs:abc (look up given voices) ``group`` is ``platform``, ``cartesia`` or ``elevenlabs``; ``age`` and ``use_case`` keep voices with that value; ``exclude_featured=true`` leaves out the ElevenLabs voices ``/v1/voices`` already lists; ``like`` words rank the results (more of them first) without leaving any out; ``price=included`` or ``price=paid`` keeps voices without or with a per-minute add-on; ``hipaa=true`` keeps HIPAA-eligible voices only; ``compact=true`` is for browsing (a picker): with no ``q`` or ``accent`` it leaves out platform voices in languages other platform voices cover; ``limit`` (1-200, default 50) and ``offset`` page through the results. The response names the total.",
                "tags": [
                    "voices"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VoiceLibraryPage"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voices/library/sample": {
            "get": {
                "operationId": "voices_library_sample_list",
                "description": "GET /v1/voices/library/sample?voice=<name>&sig=<token>: a library voice's sample as MP3. Rendered through Core's preview path (the live TTS path) on first play and kept for everyone, so each voice costs one render at most. The URL comes signed in listings, so an ``<audio>`` element can play it without an Authorization header; a signed-in request needs no signature.",
                "tags": [
                    "voices"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    },
                    {}
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voices/policy": {
            "get": {
                "operationId": "voices_policy_list",
                "description": "Retrieve voices / policy. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "voices"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VoicePolicy"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voices/preview": {
            "post": {
                "operationId": "voices_preview_create",
                "description": "Create or run voices / preview. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "voices"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/VoicePreviewRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VoicePreview"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voices/previews/{public_id}": {
            "get": {
                "operationId": "voices_previews_retrieve",
                "description": "Retrieve voices / previews. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "public_id",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "voices"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    },
                    {}
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voices/clones": {
            "get": {
                "operationId": "voices_clones_list",
                "description": "Retrieve voices / clones. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "voices"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/CustomVoice"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "voices_clones_create",
                "description": "Create or run voices / clones. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "voices"
                ],
                "requestBody": {
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/VoiceCloneRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CustomVoice"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voices/clones/{public_id}": {
            "get": {
                "operationId": "voices_clones_retrieve",
                "description": "Retrieve voices / clones. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "public_id",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "voices"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CustomVoice"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "voices_clones_partial_update",
                "description": "Update voices / clones. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "public_id",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "voices"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedVoiceCloneUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CustomVoice"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "voices_clones_delete",
                "description": "Delete voices / clones. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "public_id",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "voices"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    },
                    "409": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VoiceInUse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voices/clones/{public_id}/preview": {
            "get": {
                "operationId": "voices_clones_preview_list",
                "description": "Retrieve voices / clones / preview. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "public_id",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "voices"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    },
                    {}
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voices/quota-requests": {
            "post": {
                "operationId": "voices_quota_requests_create",
                "description": "Create or run voices / quota requests. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "voices"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/VoiceQuotaRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VoiceQuotaResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voices/quota-requests/current": {
            "get": {
                "operationId": "voices_quota_requests_current_list",
                "description": "Retrieve voices / quota requests / current. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "voices"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VoiceQuotaResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/outbound-platform-number-request": {
            "get": {
                "operationId": "outbound_platform_number_request_list",
                "description": "Dedicated UI endpoint backed by the shared quota-request review flow.",
                "tags": [
                    "outbound-platform-number-request"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OutboundPlatformNumberRequestState"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "outbound_platform_number_request_create",
                "description": "Dedicated UI endpoint backed by the shared quota-request review flow.",
                "tags": [
                    "outbound-platform-number-request"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/OutboundPlatformNumberRequestCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OutboundPlatformNumberRequest"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/orgs/": {
            "get": {
                "operationId": "orgs_list",
                "description": "Retrieve orgs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "orgs"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/UserOrg"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "orgs_create",
                "description": "Create or run orgs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "orgs"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/OrganizationRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/UserOrg"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/orgs/{id}/": {
            "get": {
                "operationId": "orgs_retrieve",
                "description": "Retrieve orgs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "orgs"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/UserOrg"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "orgs_delete",
                "description": "Delete orgs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "orgs"
                ],
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            },
            "put": {
                "operationId": "orgs_update",
                "description": "Replace orgs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "orgs"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/OrganizationRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Organization"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "orgs_partial_update",
                "description": "Update orgs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "orgs"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedOrganizationRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Organization"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/outbound-tcpa-confirmation": {
            "get": {
                "operationId": "outbound_tcpa_confirmation_list",
                "description": "Read or record the organization's outbound TCPA confirmation.",
                "tags": [
                    "outbound-tcpa-confirmation"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OutboundTcpaConfirmation"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "outbound_tcpa_confirmation_create",
                "description": "Read or record the organization's outbound TCPA confirmation.",
                "tags": [
                    "outbound-tcpa-confirmation"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/OutboundTcpaConfirmationCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OutboundTcpaConfirmation"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OutboundTcpaConfirmation"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/live-processing-disclosure-disable-attestation": {
            "get": {
                "operationId": "live_processing_disclosure_disable_attestation_list",
                "description": "Canonical package and one-time org attestation endpoint.",
                "tags": [
                    "live-processing-disclosure-disable-attestation"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/LiveProcessingDisclosureDisableAttestation"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "live_processing_disclosure_disable_attestation_create",
                "description": "Canonical package and one-time org attestation endpoint.",
                "tags": [
                    "live-processing-disclosure-disable-attestation"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/LiveProcessingDisclosureDisableAttestationCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/LiveProcessingDisclosureDisableAttestation"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/LiveProcessingDisclosureDisableAttestation"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/do-not-call-detection-disable-attestation": {
            "get": {
                "operationId": "do_not_call_detection_disable_attestation_list",
                "description": "The canonical statement, and the one-time org attestation that lets agents turn off do-not-call detection. No rollout flag: detection is live for every outbound call, so its off switch is too.",
                "tags": [
                    "do-not-call-detection-disable-attestation"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DoNotCallDetectionDisableAttestationStatus"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "do_not_call_detection_disable_attestation_create",
                "description": "The canonical statement, and the one-time org attestation that lets agents turn off do-not-call detection. No rollout flag: detection is live for every outbound call, so its off switch is too.",
                "tags": [
                    "do-not-call-detection-disable-attestation"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DoNotCallDetectionDisableAttestationCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DoNotCallDetectionDisableAttestation"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DoNotCallDetectionDisableAttestation"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/phi-designation-attestation": {
            "get": {
                "operationId": "phi_designation_attestation_list",
                "description": "Canonical package plus the agent-scope no-PHI attestation.",
                "tags": [
                    "phi-designation-attestation"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PhiDesignationAttestation"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "phi_designation_attestation_create",
                "description": "Canonical package plus the agent-scope no-PHI attestation.",
                "tags": [
                    "phi-designation-attestation"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PhiDesignationAttestationCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PhiDesignationAttestation"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PhiDesignationAttestation"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/assistant-baa-attestation": {
            "get": {
                "operationId": "assistant_baa_attestation_list",
                "description": "Retrieve assistant baa attestation. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "assistant-baa-attestation"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AssistantBaaState"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "assistant_baa_attestation_create",
                "description": "Create or run assistant baa attestation. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "assistant-baa-attestation"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AssistantBaaAttestationCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AssistantBaaState"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AssistantBaaState"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "assistant_baa_attestation_delete",
                "description": "Delete assistant baa attestation. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "assistant-baa-attestation"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/campaigns": {
            "get": {
                "operationId": "campaigns_list",
                "description": "Retrieve campaigns. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "campaigns"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Campaign"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "campaigns_create",
                "description": "Create or run campaigns. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "campaigns"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CampaignRequest"
                            },
                            "examples": {
                                "Request": {
                                    "value": {
                                        "name": "Appointment reminders",
                                        "agent": 12,
                                        "from_number": "+14155550100",
                                        "daily_window_start": "09:00:00",
                                        "daily_window_end": "17:00:00",
                                        "timezone": "America/Los_Angeles"
                                    }
                                }
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Campaign"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "name": "Appointment reminders",
                                            "agent": 12,
                                            "from_number": "+14155550100",
                                            "daily_window_start": "09:00:00",
                                            "daily_window_end": "17:00:00",
                                            "timezone": "America/Los_Angeles",
                                            "public_id": "00000000-0000-4000-8000-000000000001",
                                            "agent_name": "Reception",
                                            "status": "draft",
                                            "blocked_reason": null,
                                            "blocked_detail": null,
                                            "total_count": 0,
                                            "completed_count": 0,
                                            "failed_count": 0,
                                            "skipped_count": 0,
                                            "in_progress_count": 0,
                                            "warnings": [],
                                            "created_at": "2026-01-01T00:00:00Z",
                                            "updated_at": "2026-01-01T00:00:00Z"
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/campaigns/{campaign_id}": {
            "get": {
                "operationId": "campaigns_retrieve",
                "description": "Retrieve campaigns. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "campaign_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "campaigns"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CampaignDetailResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "campaigns_partial_update",
                "description": "Update campaigns. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "campaign_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "campaigns"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedCampaignRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Campaign"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "campaigns_delete",
                "description": "Delete campaigns. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "campaign_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "campaigns"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/campaigns/{campaign_id}/contacts": {
            "post": {
                "operationId": "campaigns_contacts",
                "description": "Create or run campaigns / contacts. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "campaign_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "campaigns"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "oneOf": [
                                    {
                                        "$ref": "#/components/schemas/CampaignContactsRequest"
                                    },
                                    {
                                        "type": "array",
                                        "maxItems": 5000,
                                        "items": {
                                            "$ref": "#/components/schemas/CampaignContactInputRequest"
                                        }
                                    }
                                ]
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/CampaignContactsUploadRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CampaignContactsAdded"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/campaigns/{campaign_id}/stats": {
            "get": {
                "operationId": "campaigns_stats_list",
                "description": "Retrieve campaigns / stats. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "campaign_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "campaigns"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CampaignStats"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/campaigns/{campaign_id}/{action}": {
            "post": {
                "operationId": "campaigns_action",
                "description": "Create or run campaigns. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "action",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "cancel",
                                "pause",
                                "start"
                            ]
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "campaign_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "campaigns"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CampaignActionRequest"
                            },
                            "examples": {
                                "Request": {
                                    "value": {
                                        "consent_to_charge": true
                                    }
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Campaign"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "name": "Appointment reminders",
                                            "agent": 12,
                                            "from_number": "+14155550100",
                                            "daily_window_start": "09:00:00",
                                            "daily_window_end": "17:00:00",
                                            "timezone": "America/Los_Angeles",
                                            "public_id": "00000000-0000-4000-8000-000000000001",
                                            "agent_name": "Reception",
                                            "status": "running",
                                            "blocked_reason": null,
                                            "blocked_detail": null,
                                            "total_count": 1,
                                            "completed_count": 0,
                                            "failed_count": 0,
                                            "skipped_count": 0,
                                            "in_progress_count": 0,
                                            "warnings": [],
                                            "created_at": "2026-01-01T00:00:00Z",
                                            "updated_at": "2026-01-01T00:00:00Z"
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents": {
            "get": {
                "operationId": "agents_list",
                "description": "Retrieve agents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Agent"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "agents_create",
                "description": "Create or run agents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AgentRequest"
                            },
                            "examples": {
                                "Request": {
                                    "value": {
                                        "name": "Reception",
                                        "prompt": "Help callers with scheduling and business information.",
                                        "send_sms_enabled": true,
                                        "sms_allow_other_recipients": false,
                                        "sms_allowed_recipients": [
                                            {
                                                "number": "+14155550199",
                                                "label": "On-call technician"
                                            }
                                        ],
                                        "sms_from_number": "+14155550100",
                                        "voice": "olivia",
                                        "product": "bolt"
                                    }
                                }
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Agent"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "name": "Reception",
                                            "prompt": "Help callers with scheduling and business information.",
                                            "send_sms_enabled": true,
                                            "sms_allow_other_recipients": false,
                                            "sms_allowed_recipients": [
                                                {
                                                    "number": "+14155550199",
                                                    "label": "On-call technician"
                                                }
                                            ],
                                            "sms_from_number": "+14155550100",
                                            "voice": "olivia",
                                            "product": "bolt",
                                            "id": 12,
                                            "created_at": "2026-01-01T00:00:00Z",
                                            "updated_at": "2026-01-01T00:00:00Z",
                                            "consent_disabled_reason": "",
                                            "billing_mode": "metered",
                                            "call_setup_webhook_signing_secret_set": false,
                                            "call_setup_webhook_variables": [],
                                            "pinned_versions": [],
                                            "draft_additional_languages": [],
                                            "draft_language_voices": null,
                                            "draft_sms_allowed_recipients": null,
                                            "draft_max_call_duration_seconds": null,
                                            "draft_ring_duration_seconds": null,
                                            "draft_max_hold_seconds": null,
                                            "intro_clip_artifact_path": "",
                                            "intro_clip_sha256": "",
                                            "draft_intro_clip_artifact_path": null,
                                            "draft_intro_clip_sha256": null,
                                            "steps": null,
                                            "handoffs": [],
                                            "draft_steps": null,
                                            "draft_handoffs": null,
                                            "words": [],
                                            "draft_words": null,
                                            "draft_updated_at": null,
                                            "has_draft": false,
                                            "pinned_fields": {},
                                            "total_calls": null,
                                            "integrations": [],
                                            "knowledge_bases": [],
                                            "knowledge_documents": [],
                                            "mcp_servers": [],
                                            "reusable_instructions": [],
                                            "tool_collision_warnings": [],
                                            "warnings": []
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/prompt-language-check": {
            "post": {
                "operationId": "agents_prompt_language_check_create",
                "description": "Create or run agents / prompt language check. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PromptLanguageRequestRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PromptLanguageCheck"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/translate-prompt": {
            "post": {
                "operationId": "agents_translate_prompt_create",
                "description": "Create or run agents / translate prompt. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/TranslatePromptRequestRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TranslatedPrompt"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/steps/flatten": {
            "post": {
                "operationId": "agents_steps_flatten",
                "description": "POST /v1/agents/steps/flatten — shared instructions plus steps as one prompt. The builder's \"switch back to a single prompt\" offers this text. Steps are checked for shape only; nothing is saved.",
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/FlattenStepsRequestRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/FlattenedStepsPrompt"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/generate-acknowledgement-prompt": {
            "post": {
                "operationId": "agents_generate_acknowledgement_prompt_create",
                "description": "Create or run agents / generate acknowledgement prompt. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AckPromptRequestRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AcknowledgementPrompt"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}": {
            "get": {
                "operationId": "agents_retrieve",
                "description": "Retrieve agents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Agent"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "put": {
                "operationId": "agents_update",
                "description": "Replace agents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AgentWriteRequest"
                            },
                            "examples": {
                                "Request": {
                                    "value": {
                                        "name": "Reception",
                                        "prompt": "Help callers with scheduling and business information.",
                                        "send_sms_enabled": true,
                                        "sms_allow_other_recipients": false,
                                        "sms_allowed_recipients": [
                                            {
                                                "number": "+14155550199",
                                                "label": "On-call technician"
                                            }
                                        ],
                                        "sms_from_number": "+14155550100",
                                        "voice": "olivia",
                                        "product": "bolt"
                                    }
                                }
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Agent"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "name": "Reception",
                                            "prompt": "Help callers with scheduling and business information.",
                                            "send_sms_enabled": true,
                                            "sms_allow_other_recipients": false,
                                            "sms_allowed_recipients": [
                                                {
                                                    "number": "+14155550199",
                                                    "label": "On-call technician"
                                                }
                                            ],
                                            "sms_from_number": "+14155550100",
                                            "voice": "olivia",
                                            "product": "bolt",
                                            "id": 12,
                                            "created_at": "2026-01-01T00:00:00Z",
                                            "updated_at": "2026-01-01T00:00:00Z",
                                            "consent_disabled_reason": "",
                                            "billing_mode": "metered",
                                            "call_setup_webhook_signing_secret_set": false,
                                            "call_setup_webhook_variables": [],
                                            "pinned_versions": [],
                                            "draft_additional_languages": [],
                                            "draft_language_voices": null,
                                            "draft_sms_allowed_recipients": null,
                                            "draft_max_call_duration_seconds": null,
                                            "draft_ring_duration_seconds": null,
                                            "draft_max_hold_seconds": null,
                                            "intro_clip_artifact_path": "",
                                            "intro_clip_sha256": "",
                                            "draft_intro_clip_artifact_path": null,
                                            "draft_intro_clip_sha256": null,
                                            "steps": null,
                                            "handoffs": [],
                                            "draft_steps": null,
                                            "draft_handoffs": null,
                                            "words": [],
                                            "draft_words": null,
                                            "draft_updated_at": null,
                                            "has_draft": false,
                                            "pinned_fields": {},
                                            "total_calls": null,
                                            "integrations": [],
                                            "knowledge_bases": [],
                                            "knowledge_documents": [],
                                            "mcp_servers": [],
                                            "reusable_instructions": [],
                                            "tool_collision_warnings": [],
                                            "warnings": []
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "agents_partial_update",
                "description": "Update agents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedAgentWriteRequest"
                            },
                            "examples": {
                                "Request": {
                                    "value": {
                                        "name": "Reception desk"
                                    }
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Agent"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "name": "Reception desk",
                                            "prompt": "Help callers with scheduling and business information.",
                                            "send_sms_enabled": true,
                                            "sms_allow_other_recipients": false,
                                            "sms_allowed_recipients": [
                                                {
                                                    "number": "+14155550199",
                                                    "label": "On-call technician"
                                                }
                                            ],
                                            "sms_from_number": "+14155550100",
                                            "voice": "olivia",
                                            "product": "bolt",
                                            "id": 12,
                                            "created_at": "2026-01-01T00:00:00Z",
                                            "updated_at": "2026-01-01T00:00:00Z",
                                            "consent_disabled_reason": "",
                                            "billing_mode": "metered",
                                            "call_setup_webhook_signing_secret_set": false,
                                            "call_setup_webhook_variables": [],
                                            "pinned_versions": [],
                                            "draft_additional_languages": [],
                                            "draft_language_voices": null,
                                            "draft_sms_allowed_recipients": null,
                                            "draft_max_call_duration_seconds": null,
                                            "draft_ring_duration_seconds": null,
                                            "draft_max_hold_seconds": null,
                                            "intro_clip_artifact_path": "",
                                            "intro_clip_sha256": "",
                                            "draft_intro_clip_artifact_path": null,
                                            "draft_intro_clip_sha256": null,
                                            "steps": null,
                                            "handoffs": [],
                                            "draft_steps": null,
                                            "draft_handoffs": null,
                                            "words": [],
                                            "draft_words": null,
                                            "draft_updated_at": null,
                                            "has_draft": true,
                                            "pinned_fields": {},
                                            "total_calls": null,
                                            "integrations": [],
                                            "knowledge_bases": [],
                                            "knowledge_documents": [],
                                            "mcp_servers": [],
                                            "reusable_instructions": [],
                                            "tool_collision_warnings": [],
                                            "warnings": []
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "agents_delete",
                "description": "Delete agents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/export": {
            "get": {
                "operationId": "agents_export_list",
                "description": "Download everything about one agent as a zip, so you can keep it or rebuild the agent elsewhere. The response is `application/zip`, sent as an attachment named `thunderphone-agent-<name>-<YYYYMMDD>.zip`. It is built for this request and not stored. It holds `manifest.json` (the files and anything left out, with the reason), `agent.json` (the agent as GET /v1/agents/{agent_id} returns it), `prompt.md` (the published instructions), `knowledge/` (an index and the attached documents: the original file where one is stored, otherwise its extracted text; 25 MB per file and 100 MB per export), `numbers.json` (the phone numbers that route to the agent), `webhooks.json` (the webhook endpoints scoped to the agent) and `README.md`. A part your credential cannot read through its own endpoint is left out and listed under `omitted` in the manifest: knowledge needs `knowledge:read`, numbers `numbers:read` and webhooks `integrations:read` on an OAuth token, and webhooks need an admin or owner. Every credential ThunderPhone stores as a credential is removed: header values, signing secrets, keys and tokens (header names are kept). URLs are cut to their scheme and host unless `include_url_paths=true`. The instructions and the knowledge files are copied exactly as you wrote or uploaded them, so anything you put in them is in the export. Check them before you share the zip. Returns 404 when the agent does not exist in your organization.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "query",
                        "name": "include_url_paths",
                        "schema": {
                            "type": "boolean",
                            "default": false
                        },
                        "description": "When true, URLs in the export keep their path (https://api.example.com/v1/book). By default every URL is cut to its scheme and host, because a path can carry a key (a chat webhook, an MCP server URL). Sign-in details, query strings and fragments are removed either way."
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/prompt-analysis": {
            "post": {
                "operationId": "agents_prompt_analysis",
                "description": "Advisory analysis of the editor's current, possibly unsaved draft.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PromptAnalysisRequestRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PromptAnalysis"
                                }
                            }
                        },
                        "description": ""
                    },
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PromptAnalysis"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/prompt-review": {
            "post": {
                "operationId": "agents_prompt_review",
                "description": "Review a prompt against the prompt style guide; writes nothing.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PromptReviewRequestRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PromptReview"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/prompt-refactor": {
            "post": {
                "operationId": "agents_prompt_refactor",
                "description": "Rewrite a prompt into the guide's shape; returns it, never saves it.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PromptRefactorRequestRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PromptRefactor"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/deploy": {
            "post": {
                "operationId": "agents_deploy",
                "description": "POST /v1/agents/<id>/deploy — promote draft to deployed.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DeployAgentRequest"
                            },
                            "examples": {
                                "Request": {
                                    "value": {
                                        "if_updated_at": "2026-01-01T00:00:00Z"
                                    }
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Agent"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "name": "Reception",
                                            "prompt": "Help callers with scheduling and business information.",
                                            "send_sms_enabled": true,
                                            "sms_allow_other_recipients": false,
                                            "sms_allowed_recipients": [
                                                {
                                                    "number": "+14155550199",
                                                    "label": "On-call technician"
                                                }
                                            ],
                                            "sms_from_number": "+14155550100",
                                            "voice": "olivia",
                                            "product": "bolt",
                                            "id": 12,
                                            "created_at": "2026-01-01T00:00:00Z",
                                            "updated_at": "2026-01-01T00:00:00Z",
                                            "consent_disabled_reason": "",
                                            "billing_mode": "metered",
                                            "call_setup_webhook_signing_secret_set": false,
                                            "call_setup_webhook_variables": [],
                                            "pinned_versions": [],
                                            "draft_additional_languages": [],
                                            "draft_language_voices": null,
                                            "draft_sms_allowed_recipients": null,
                                            "draft_max_call_duration_seconds": null,
                                            "draft_ring_duration_seconds": null,
                                            "draft_max_hold_seconds": null,
                                            "intro_clip_artifact_path": "",
                                            "intro_clip_sha256": "",
                                            "draft_intro_clip_artifact_path": null,
                                            "draft_intro_clip_sha256": null,
                                            "steps": null,
                                            "handoffs": [],
                                            "draft_steps": null,
                                            "draft_handoffs": null,
                                            "words": [],
                                            "draft_words": null,
                                            "draft_updated_at": null,
                                            "has_draft": false,
                                            "pinned_fields": {},
                                            "total_calls": null,
                                            "integrations": [],
                                            "knowledge_bases": [],
                                            "knowledge_documents": [],
                                            "mcp_servers": [],
                                            "reusable_instructions": [],
                                            "tool_collision_warnings": [],
                                            "warnings": []
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    },
                    "409": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentDeployConflict"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/discard-draft": {
            "post": {
                "operationId": "agents_discard_draft",
                "description": "POST /v1/agents/<id>/discard-draft — clear all draft fields.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DeployAgentRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Agent"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/relabel-calls": {
            "get": {
                "operationId": "agents_relabel_calls_list",
                "description": "Retrieve agents / relabel calls. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RelabelState"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "agents_relabel_calls",
                "description": "Create or run agents / relabel calls. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RelabelRequestRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RelabelResponse"
                                }
                            }
                        },
                        "description": ""
                    },
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RelabelResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/intro-clip": {
            "get": {
                "operationId": "agents_intro_clip_list",
                "description": "/v1/agents/<id>/intro-clip — the agent's custom intro clip. POST (multipart ``audio``): a 48 kHz mono 16-bit PCM WAV of 0.5-15 s, at most 2 MB (the dashboard converts recordings and uploads to this). It is stored and staged on the DRAFT with ``intro_clip`` = ``custom``; Deploy publishes it like any other draft edit. GET returns the clip the draft would play (draft if staged, else deployed) as audio/wav. DELETE stages removal of the custom clip (and ``intro_clip`` = ``none`` if it was custom) and returns the draft's resulting ``intro_clip``. POST and DELETE return the agent's new ``updated_at``. Spec: docs/plans/2026-10-13-prerecorded-intro-clip.md.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "agents_intro_clip",
                "description": "/v1/agents/<id>/intro-clip — the agent's custom intro clip. POST (multipart ``audio``): a 48 kHz mono 16-bit PCM WAV of 0.5-15 s, at most 2 MB (the dashboard converts recordings and uploads to this). It is stored and staged on the DRAFT with ``intro_clip`` = ``custom``; Deploy publishes it like any other draft edit. GET returns the clip the draft would play (draft if staged, else deployed) as audio/wav. DELETE stages removal of the custom clip (and ``intro_clip`` = ``none`` if it was custom) and returns the draft's resulting ``intro_clip``. POST and DELETE return the agent's new ``updated_at``. Spec: docs/plans/2026-10-13-prerecorded-intro-clip.md.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IntroClipUploadRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/IntroClipUploaded"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "agents_intro_clip_delete",
                "description": "/v1/agents/<id>/intro-clip — the agent's custom intro clip. POST (multipart ``audio``): a 48 kHz mono 16-bit PCM WAV of 0.5-15 s, at most 2 MB (the dashboard converts recordings and uploads to this). It is stored and staged on the DRAFT with ``intro_clip`` = ``custom``; Deploy publishes it like any other draft edit. GET returns the clip the draft would play (draft if staged, else deployed) as audio/wav. DELETE stages removal of the custom clip (and ``intro_clip`` = ``none`` if it was custom) and returns the draft's resulting ``intro_clip``. POST and DELETE return the agent's new ``updated_at``. Spec: docs/plans/2026-10-13-prerecorded-intro-clip.md.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/IntroClipRemoved"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/intro-clip/generate": {
            "post": {
                "operationId": "agents_intro_clip_generate",
                "description": "POST /v1/agents/<id>/intro-clip/generate — a recording notice said once by a platform voice. Body: ``{voice, text, language?}`` (``language`` defaults to the agent's primary language; the voice must speak it). The line is rendered through Core's TTS as the intro clip format, checked like an upload, charged as a voice sample (3 cents, inside the same 30-an-hour limit) and staged on the DRAFT as the custom clip exactly as the upload POST stages it (agents.intro_clip_generation). 201 returns the upload POST's body plus ``charged_cents``. Refusals are ``{code, detail}``: 400 invalid_arguments, 422 preview_unavailable_voice (ElevenLabs and own-key Cartesia voices) or notice_unusable (longer than 15 s), 429 preview_rate_limited, 402 insufficient_balance, 502 preview_failed; nothing is charged or staged.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IntroClipGenerateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/IntroClipGenerated"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/duplicate": {
            "post": {
                "operationId": "agents_duplicate",
                "description": "Create or run agents / duplicate. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DuplicateAgentRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Agent"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/transfer": {
            "post": {
                "operationId": "agents_transfer",
                "description": "Create or run agents / transfer. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AgentTransferRequestRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentTransfer"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentTransfer"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/versions": {
            "get": {
                "operationId": "agents_versions_list",
                "description": "Retrieve agents / versions. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VersionPage"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/versions/{revision}/restore": {
            "post": {
                "operationId": "agents_versions_restore",
                "description": "POST /v1/agents/<id>/versions/<revision>/restore — put the agent back to a published version (Undo). Body: ``deploy`` (default true), the optional ``if_updated_at`` token, and the optional ``if_live_revision``: the revision the caller saw as the latest. An Undo sends it, so it never also throws away a version someone published since (409). A restore that would overwrite fields another editor staged and has not published is a 409 too, in the stale-agent shape with ``conflict.reason = \"unpublished_drafts\"``, unless the body says ``discard_drafts: true``. The optional ``fields`` (snapshot keys) puts back only those: Undo sends what the latest version changed, so a field changed since without a new version keeps its live value. Without it the whole version goes back. A restore that raises the price a minute is a 409 ``price_change_needs_confirmation`` unless it says ``confirm_price_change``. The snapshot is staged through the PATCH draft writer, so a member gets what a member's PATCH gets: a draft (``status: draft_saved``), whatever ``deploy`` says. An admin with ``deploy`` gets it published, as the Deploy button would (``status: deployed``). A stale token is a 409.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "revision",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RestoreAgentVersionRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentVersionRestore"
                                }
                            }
                        },
                        "description": ""
                    },
                    "409": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentDeployConflict"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/call-setup-samples": {
            "get": {
                "operationId": "agents_call_setup_samples_list",
                "description": "Retrieve agents / call setup samples. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallSetupSampleList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "agents_call_setup_samples",
                "description": "Create or run agents / call setup samples. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CallSetupSampleCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallSetupSample"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/call-setup-samples/{sample_id}": {
            "get": {
                "operationId": "agents_call_setup_samples_retrieve",
                "description": "Retrieve agents / call setup samples. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "sample_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallSetupSample"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "agents_call_setup_samples_partial_update",
                "description": "Update agents / call setup samples. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "sample_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedCallSetupSampleWriteRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallSetupSample"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "agents_call_setup_samples_delete",
                "description": "Delete agents / call setup samples. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "sample_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/call-setup-samples/{sample_id}/revisions": {
            "get": {
                "operationId": "agents_call_setup_samples_revisions_list",
                "description": "Retrieve agents / call setup samples / revisions. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "sample_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallSetupSampleRevisionList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/prompt-revisions": {
            "get": {
                "operationId": "agents_prompt_revisions_list",
                "description": "Retrieve agents / prompt revisions. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "query",
                        "name": "limit",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 20
                        }
                    },
                    {
                        "in": "query",
                        "name": "offset",
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "default": 0
                        }
                    },
                    {
                        "in": "query",
                        "name": "source",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "draft",
                                "deploy",
                                "variant",
                                "import",
                                "backfill",
                                "candidate"
                            ]
                        }
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentPromptRevisionPage"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/prompt-revisions/{revision_id}": {
            "get": {
                "operationId": "agents_prompt_revisions_retrieve",
                "description": "Retrieve agents / prompt revisions. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "revision_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentPromptRevision"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agent-imports": {
            "get": {
                "operationId": "agent_imports_list",
                "description": "Retrieve agent imports. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "agent-imports"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/AgentImportSummary"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "agent_imports_create",
                "description": "Create or run agent imports. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "agent-imports"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AgentImportCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentImport"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agent-imports/{public_id}": {
            "get": {
                "operationId": "agent_imports_retrieve",
                "description": "Retrieve agent imports. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "public_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agent-imports"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentImport"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "agent_imports_delete",
                "description": "Delete agent imports. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "public_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agent-imports"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/agent-imports/{public_id}/commit": {
            "post": {
                "operationId": "agent_imports_commit",
                "description": "Create or run agent imports / commit. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "public_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agent-imports"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentImport"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/agent-imports/{public_id}/items/{item_id}": {
            "patch": {
                "operationId": "agent_imports_items_partial_update",
                "description": "Update agent imports / items. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "item_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "public_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agent-imports"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedAgentImportItemPatchRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentImportItem"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agent-imports/{public_id}/numbers/move": {
            "post": {
                "operationId": "agent_imports_numbers_move",
                "description": "Move one source number the customer owns onto an imported agent. Admin only, like ``voip-connections/<id>/import-numbers``: it re-points the number at the carrier and claims a PhoneNumber row. See ``numbers.py``.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "public_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agent-imports"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AgentImportNumberMoveRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentImportNumberMoveResult"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agent-imports/{public_id}/connection-secrets": {
            "post": {
                "operationId": "agent_imports_connection_secrets",
                "description": "Write-only: set or clear one header value an imported API connection is missing. The response is the import without the value; nothing reads it back.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "public_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agent-imports"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AgentImportConnectionSecretRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentImport"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/migrations/{public_id}/calls": {
            "post": {
                "operationId": "migrations_calls",
                "description": "Place an outbound call through a migration. ThunderPhone places the call on ThunderPhone or on the vendor the agent is moving from, by the migration's split, and records which. Send the same idempotency_key to retry safely: a repeat returns the first answer and never dials twice. The call's end arrives as a migration.call.complete webhook for either platform.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "public_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "migrations"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RoutedCallRequest"
                            },
                            "examples": {
                                "Request": {
                                    "value": {
                                        "to_number": "+14155550101",
                                        "idempotency_key": "crm-lead-8812",
                                        "variables": {
                                            "first_name": "Ada"
                                        },
                                        "metadata": {
                                            "lead_id": "8812"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RoutedCallResponse"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "routing_id": "00000000-0000-4000-8000-000000000001",
                                            "arm": "ours",
                                            "call_id": 1001,
                                            "vendor_call_id": null,
                                            "status": "initiated"
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RoutedCallResponse"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "routing_id": "00000000-0000-4000-8000-000000000001",
                                            "arm": "ours",
                                            "call_id": 1001,
                                            "vendor_call_id": null,
                                            "status": "initiated"
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    },
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RoutedCallResponse"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "routing_id": "00000000-0000-4000-8000-000000000001",
                                            "arm": "ours",
                                            "call_id": 1001,
                                            "vendor_call_id": null,
                                            "status": "initiated"
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/consent-attestations": {
            "get": {
                "operationId": "agents_consent_attestations_list",
                "description": "List or record announcement-disable attestations for one org-scoped agent.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/ConsentAnnouncementAttestation"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "agents_consent_attestations",
                "description": "List or record announcement-disable attestations for one org-scoped agent.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ConsentAnnouncementAttestationCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConsentAnnouncementAttestation"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/test-scenarios": {
            "get": {
                "operationId": "agents_test_scenarios_list",
                "description": "Retrieve agents / test scenarios. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/TestScenario"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "agents_test_scenarios",
                "description": "Create or run agents / test scenarios. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/TestScenarioCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TestScenario"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/test-scenarios/generate": {
            "post": {
                "operationId": "agents_test_scenarios_generate",
                "description": "Create or run agents / test scenarios / generate. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/GenerateTestScenariosRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ScenarioList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/test-scenarios/refresh": {
            "post": {
                "operationId": "agents_test_scenarios_refresh",
                "description": "Create or run agents / test scenarios / refresh. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RefreshTestScenariosRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ScenarioList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/test-scenarios/{scenario_id}": {
            "get": {
                "operationId": "agents_test_scenarios_retrieve",
                "description": "Retrieve agents / test scenarios. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "scenario_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TestScenario"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "agents_test_scenarios_partial_update",
                "description": "Update agents / test scenarios. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "scenario_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedTestScenarioUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TestScenario"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "agents_test_scenarios_delete",
                "description": "Delete agents / test scenarios. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "scenario_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/calls/{call_id}/promote-to-scenario": {
            "post": {
                "operationId": "calls_promote_to_scenario",
                "description": "Create one reusable regression scenario from a production call.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PromoteScenarioRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TestScenario"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TestScenario"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/{call_id}/create-agent": {
            "post": {
                "operationId": "calls_create_agent",
                "description": "Create a saved agent from the inline config a call ran: its prompt and settings, with ``{{variables}}`` still in place. One agent per call: a repeat returns the agent already made (200, ``already_existed``), or 409 once that agent has moved to another organization. Calls that ran a saved agent, inline calls from before configs were stored, and calls whose config was too large to keep return 400.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateAgentFromCallRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CreateAgentFromCallResponse"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CreateAgentFromCallResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/{call_id}/validation-examples": {
            "post": {
                "operationId": "calls_validation_examples",
                "description": "Create or run calls / validation examples. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateValidationExampleRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationExample"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/validation-sets": {
            "get": {
                "operationId": "validation_sets_list",
                "description": "Retrieve validation sets. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "validation-sets"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationSets"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/validation-examples": {
            "get": {
                "operationId": "validation_examples_list",
                "description": "Retrieve validation examples. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "validation-examples"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OrganizationValidationExamples"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/validation-examples": {
            "get": {
                "operationId": "agents_validation_examples_list",
                "description": "Retrieve agents / validation examples. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationExamples"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/validation-runs": {
            "get": {
                "operationId": "agents_validation_runs_list",
                "description": "Retrieve agents / validation runs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationRuns"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "agents_validation_runs",
                "description": "Create or run agents / validation runs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ValidationRunRequestRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationRun"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/validation-status": {
            "get": {
                "operationId": "agents_validation_status_list",
                "description": "Retrieve agents / validation status. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationStatus"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/validation-runs/{run_id}": {
            "get": {
                "operationId": "validation_runs_retrieve",
                "description": "Retrieve validation runs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "run_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "validation-runs"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationRun"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/validation-examples/{example_id}": {
            "get": {
                "operationId": "validation_examples_retrieve",
                "description": "Retrieve validation examples. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "example_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "validation-examples"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationExample"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "validation_examples_partial_update",
                "description": "Update validation examples. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "example_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "validation-examples"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedValidationExampleUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationExample"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "validation_examples_delete",
                "description": "Delete validation examples. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "example_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "validation-examples"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/validation-examples/{example_id}/audio/{span_index}": {
            "get": {
                "operationId": "validation_examples_audio_retrieve",
                "description": "Retrieve validation examples / audio. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "example_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "span_index",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "validation-examples"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/validation-examples/{example_id}/replay": {
            "post": {
                "operationId": "validation_examples_replay",
                "description": "Create or run validation examples / replay. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "example_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "validation-examples"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ValidationReplayResult"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/conversations": {
            "get": {
                "operationId": "agents_conversations_list",
                "description": "Retrieve agents / conversations. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "query",
                        "name": "limit",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 20
                        }
                    },
                    {
                        "in": "query",
                        "name": "offset",
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "default": 0
                        }
                    },
                    {
                        "in": "query",
                        "name": "source",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "production",
                                "test_call",
                                "simulated",
                                "adversarial",
                                "manual"
                            ]
                        }
                    },
                    {
                        "in": "query",
                        "name": "split",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "dev",
                                "test"
                            ]
                        }
                    },
                    {
                        "in": "query",
                        "name": "status",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "active",
                                "retired"
                            ]
                        }
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TestConversationPage"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/conversations/{conversation_id}": {
            "get": {
                "operationId": "conversations_retrieve",
                "description": "Retrieve conversations. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "conversation_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "conversations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TestConversation"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/conversations/{conversation_id}/revisions": {
            "get": {
                "operationId": "conversations_revisions_list",
                "description": "Retrieve conversations / revisions. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "conversation_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "query",
                        "name": "limit",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 20
                        }
                    },
                    {
                        "in": "query",
                        "name": "offset",
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "default": 0
                        }
                    }
                ],
                "tags": [
                    "conversations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TestConversationRevisionPage"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/conversations/generate": {
            "post": {
                "operationId": "agents_conversations_generate",
                "description": "Create or run agents / conversations / generate. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ConversationGenerateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConversationJobStart"
                                }
                            }
                        },
                        "description": ""
                    },
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConversationJobStart"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/conversations/import": {
            "post": {
                "operationId": "agents_conversations_import",
                "description": "Create or run agents / conversations / import. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ConversationImportRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConversationJobStart"
                                }
                            }
                        },
                        "description": ""
                    },
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConversationJobStart"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/conversations/refresh": {
            "post": {
                "operationId": "agents_conversations_refresh",
                "description": "Create or run agents / conversations / refresh. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ConversationRefreshRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConversationJobStart"
                                }
                            }
                        },
                        "description": ""
                    },
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConversationJobStart"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/conversation-jobs/{job_id}": {
            "get": {
                "operationId": "conversation_jobs_retrieve",
                "description": "Retrieve conversation jobs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "job_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "conversation-jobs"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConversationJob"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/replay-runs": {
            "get": {
                "operationId": "agents_replay_runs_list",
                "description": "Retrieve agents / replay runs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ReplayRunList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "agents_replay_runs",
                "description": "Create or run agents / replay runs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ReplayRunCreateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ReplayRunStart"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ReplayRunStart"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/replay-runs/{run_id}": {
            "get": {
                "operationId": "replay_runs_retrieve",
                "description": "Retrieve replay runs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "query",
                        "name": "include_trace",
                        "schema": {
                            "type": "boolean"
                        },
                        "description": "Include Core's full trace for each example, not only its summary."
                    },
                    {
                        "in": "path",
                        "name": "run_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "replay-runs"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ReplayRun"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/replay-run-groups/{group_id}": {
            "get": {
                "operationId": "replay_run_groups_retrieve",
                "description": "Retrieve replay run groups. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "group_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "replay-run-groups"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ReplayRunGroup"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/test-runs": {
            "get": {
                "operationId": "agents_test_runs_list",
                "description": "GET /v1/agents/<agent_id>/test-runs — list scenario batches for the agent.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/ScenarioBatch"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/test-runs/execute": {
            "post": {
                "operationId": "agents_test_runs_execute",
                "description": "POST /v1/agents/<agent_id>/test-runs/execute — kick off a batch of scenario runs.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ExecuteTestScenariosRequest"
                            },
                            "examples": {
                                "Request": {
                                    "value": {
                                        "channel": "web",
                                        "scenario_ids": [
                                            1
                                        ],
                                        "consent_to_charge": true
                                    }
                                }
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ScenarioBatch"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "id": 1,
                                            "agent_id": 12,
                                            "channel": "web",
                                            "phone_number_id": null,
                                            "phone_number_display": null,
                                            "status": "in_progress",
                                            "total": 1,
                                            "completed": 0,
                                            "failed": 0,
                                            "pass_count": 0,
                                            "fail_count": 0,
                                            "matrix_dimensions": {},
                                            "estimated_minutes": 1,
                                            "estimated_cost_cents": 4,
                                            "agent_prompt_hash": "example",
                                            "error_message": "",
                                            "requested_by_id": 1,
                                            "started_at": "2026-01-01T00:00:00Z",
                                            "completed_at": null,
                                            "created_at": "2026-01-01T00:00:00Z",
                                            "updated_at": "2026-01-01T00:00:00Z",
                                            "runs": []
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/test-runs/{batch_id}": {
            "get": {
                "operationId": "agents_test_runs_retrieve",
                "description": "GET /v1/agents/<agent_id>/test-runs/<batch_id> — batch detail with per-scenario runs.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "batch_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ScenarioBatch"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/suites": {
            "get": {
                "operationId": "suites_list",
                "description": "Retrieve suites. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "suites"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/TestSuite"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "suites_create",
                "description": "Create or run suites. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "suites"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SuiteInputRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TestSuite"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/suites/{suite_id}": {
            "get": {
                "operationId": "suites_retrieve",
                "description": "Retrieve suites. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "suite_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "suites"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TestSuite"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "suites_partial_update",
                "description": "Update suites. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "suite_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "suites"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedSuiteInputRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TestSuite"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "suites_delete",
                "description": "Delete suites. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "suite_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "suites"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/integrations/{integration_id}": {
            "get": {
                "operationId": "integrations_retrieve",
                "description": "Retrieve integrations. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "integration_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "integrations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentIntegration"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "put": {
                "operationId": "integrations_update",
                "description": "Replace integrations. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "integration_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "integrations"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AgentIntegrationRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentIntegration"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "integrations_partial_update",
                "description": "Update integrations. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "integration_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "integrations"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedAgentIntegrationRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentIntegration"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "integrations_delete",
                "description": "Delete integrations. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "integration_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "integrations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/phone-numbers/limits": {
            "get": {
                "operationId": "phone_numbers_limits_list",
                "description": "Retrieve phone numbers / limits. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "phone-numbers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PhoneNumberLimits"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/phone-numbers/health": {
            "get": {
                "operationId": "phone_numbers_health_list",
                "description": "Outbound health for every number in the organization (phone_numbers.health).",
                "tags": [
                    "phone-numbers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PhoneNumberHealthList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/phone-numbers": {
            "get": {
                "operationId": "phone_numbers_list",
                "description": "Retrieve phone numbers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "phone-numbers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/PhoneNumber"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "phone_numbers_create",
                "description": "Create or run phone numbers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "phone-numbers"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PhoneNumberProvisionRequest"
                            },
                            "examples": {
                                "Request": {
                                    "value": {
                                        "area_code": "415"
                                    }
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PhoneNumber"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "id": 4,
                                            "label": "Office",
                                            "number": "+14155550100",
                                            "source": "demo",
                                            "number_type": "thunderphone",
                                            "status": "active",
                                            "inbound_agent_id": 12,
                                            "inbound_agent_version_id": null,
                                            "inbound_agent_variant_id": null,
                                            "inbound_experiment_id": null,
                                            "inbound_agent_version": null,
                                            "outbound_agent_id": null,
                                            "voip_connection_id": null,
                                            "carrier_routing": "direct",
                                            "voip_last_verified_at": null,
                                            "voip_verification_status": "unverified",
                                            "voip_inbound_status": "untested",
                                            "voip_inbound_tested_at": null,
                                            "voip_inbound_result": null,
                                            "voip_inbound_test_method": null,
                                            "voip_outbound_test_method": null,
                                            "outbound_eligible": false,
                                            "outbound_ineligible_reason": "managed_number_inbound_only",
                                            "sms_capable": null,
                                            "sms_capability_checked_at": null,
                                            "sms_registration_status": "",
                                            "sms_not_ready_reason": null,
                                            "webhook_url": null,
                                            "webhook_signing_secret": null,
                                            "timezone": "America/Los_Angeles",
                                            "expected_attestation": {
                                                "level": "full",
                                                "label": "Full (A)"
                                            }
                                        }
                                    },
                                    "OutboundApprovalPending": {
                                        "value": {
                                            "id": 4,
                                            "label": "Office",
                                            "number": "+14155550100",
                                            "source": "demo",
                                            "number_type": "thunderphone",
                                            "status": "active",
                                            "inbound_agent_id": 12,
                                            "inbound_agent_version_id": null,
                                            "inbound_agent_variant_id": null,
                                            "inbound_experiment_id": null,
                                            "inbound_agent_version": null,
                                            "outbound_agent_id": null,
                                            "voip_connection_id": null,
                                            "carrier_routing": "direct",
                                            "voip_last_verified_at": null,
                                            "voip_verification_status": "unverified",
                                            "voip_inbound_status": "untested",
                                            "voip_inbound_tested_at": null,
                                            "voip_inbound_result": null,
                                            "voip_inbound_test_method": null,
                                            "voip_outbound_test_method": null,
                                            "outbound_eligible": false,
                                            "outbound_ineligible_reason": "managed_number_outbound_pending",
                                            "sms_capable": null,
                                            "sms_capability_checked_at": null,
                                            "sms_registration_status": "",
                                            "sms_not_ready_reason": null,
                                            "webhook_url": null,
                                            "webhook_signing_secret": null,
                                            "timezone": "America/Los_Angeles",
                                            "expected_attestation": {
                                                "level": "full",
                                                "label": "Full (A)"
                                            }
                                        },
                                        "summary": "Outbound approval pending"
                                    },
                                    "OutboundApprovalDenied": {
                                        "value": {
                                            "id": 4,
                                            "label": "Office",
                                            "number": "+14155550100",
                                            "source": "demo",
                                            "number_type": "thunderphone",
                                            "status": "active",
                                            "inbound_agent_id": 12,
                                            "inbound_agent_version_id": null,
                                            "inbound_agent_variant_id": null,
                                            "inbound_experiment_id": null,
                                            "inbound_agent_version": null,
                                            "outbound_agent_id": null,
                                            "voip_connection_id": null,
                                            "carrier_routing": "direct",
                                            "voip_last_verified_at": null,
                                            "voip_verification_status": "unverified",
                                            "voip_inbound_status": "untested",
                                            "voip_inbound_tested_at": null,
                                            "voip_inbound_result": null,
                                            "voip_inbound_test_method": null,
                                            "voip_outbound_test_method": null,
                                            "outbound_eligible": false,
                                            "outbound_ineligible_reason": "managed_number_outbound_denied",
                                            "sms_capable": null,
                                            "sms_capability_checked_at": null,
                                            "sms_registration_status": "",
                                            "sms_not_ready_reason": null,
                                            "webhook_url": null,
                                            "webhook_signing_secret": null,
                                            "timezone": "America/Los_Angeles",
                                            "expected_attestation": {
                                                "level": "full",
                                                "label": "Full (A)"
                                            }
                                        },
                                        "summary": "Outbound approval denied"
                                    },
                                    "OutboundApprovalRevoked": {
                                        "value": {
                                            "id": 4,
                                            "label": "Office",
                                            "number": "+14155550100",
                                            "source": "demo",
                                            "number_type": "thunderphone",
                                            "status": "active",
                                            "inbound_agent_id": 12,
                                            "inbound_agent_version_id": null,
                                            "inbound_agent_variant_id": null,
                                            "inbound_experiment_id": null,
                                            "inbound_agent_version": null,
                                            "outbound_agent_id": null,
                                            "voip_connection_id": null,
                                            "carrier_routing": "direct",
                                            "voip_last_verified_at": null,
                                            "voip_verification_status": "unverified",
                                            "voip_inbound_status": "untested",
                                            "voip_inbound_tested_at": null,
                                            "voip_inbound_result": null,
                                            "voip_inbound_test_method": null,
                                            "voip_outbound_test_method": null,
                                            "outbound_eligible": false,
                                            "outbound_ineligible_reason": "managed_number_outbound_revoked",
                                            "sms_capable": null,
                                            "sms_capability_checked_at": null,
                                            "sms_registration_status": "",
                                            "sms_not_ready_reason": null,
                                            "webhook_url": null,
                                            "webhook_signing_secret": null,
                                            "timezone": "America/Los_Angeles",
                                            "expected_attestation": {
                                                "level": "full",
                                                "label": "Full (A)"
                                            }
                                        },
                                        "summary": "Outbound approval revoked"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/phone-numbers/{phone_number_id}": {
            "get": {
                "operationId": "phone_numbers_retrieve",
                "description": "Retrieve phone numbers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "phone_number_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "phone-numbers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PhoneNumber"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "put": {
                "operationId": "phone_numbers_update",
                "description": "Replace phone numbers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "phone_number_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "phone-numbers"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PhoneNumberUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PhoneNumberUpdate"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "phone_numbers_partial_update",
                "description": "Update phone numbers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "phone_number_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "phone-numbers"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedPhoneNumberUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PhoneNumberUpdate"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "phone_numbers_delete",
                "description": "Delete phone numbers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "query",
                        "name": "confirm",
                        "schema": {
                            "type": "boolean"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "phone_number_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "query",
                        "name": "release_at_provider",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "tags": [
                    "phone-numbers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PhoneNumberReleased"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/phone-numbers/{phone_number_id}/transfer": {
            "post": {
                "operationId": "phone_numbers_transfer",
                "description": "Move a phone number from one org to another. Billing anchor clamp (TENANT-04, tightened): ``billing_next_charge_at`` is a per-number monthly billing anchor consumed by the ``charge_phone_numbers`` management command (see ``billing.services.charge_phone_number_monthly``), which charges a number's *current* organization once ``billing_next_charge_at`` has passed and then advances the anchor by another month. The original TENANT-04 ruling had a cross-org transfer unconditionally reset the anchor to \"transfer time + 1 month\", so the target org always started a fresh monthly cycle at the moment of transfer. That ruling is superseded: it opened a billing \"ping-pong\" loophole, since every transfer pushed the anchor a full month out -- bouncing a number between two orgs more often than monthly slid the anchor forever and the monthly fee was never charged. The current rule clamps the anchor instead of resetting it, so a transfer can only ever pull the anchor *closer* to now, never push it further out: new_anchor = max(now, min(existing_anchor, now + 1 month)) (existing_anchor is None) -> now + 1 month Effects: - A genuine transfer of a number with an anchor already due soon (or any time within the next month) keeps that existing charge schedule -- whoever holds the number when the fee comes due pays it, so total fees are unchanged for same-owner reorgs. This is intentionally *not* prorated: the source org is not refunded for the unused remainder of its last charged cycle, and the target is not charged immediately upon transfer. - An overdue anchor (in the past, e.g. the reconciliation command just hasn't run yet) clamps to \"now\", so the new holder is charged at the next reconciliation instead of inheriting an ever-sliding future date. - A number with no billing history (``billing_next_charge_at`` is None) has no existing anchor to clamp, so it falls back to \"now + 1 month\", same as the original ruling's fresh-cycle behavior. - Ping-pong transfers gain nothing: the clamp can only move the anchor earlier or leave it unchanged, never later, so hopping a number between orgs cannot delay the charge indefinitely.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "phone_number_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "phone-numbers"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PhoneNumberTransferRequestRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PhoneNumberTransfer"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/phone-numbers/{phone_number_id}/health": {
            "get": {
                "operationId": "phone_numbers_health_retrieve",
                "description": "Outbound health for one number (phone_numbers.health).",
                "parameters": [
                    {
                        "in": "path",
                        "name": "phone_number_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "phone-numbers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PhoneNumberHealth"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/phone-numbers/{phone_number_id}/versions": {
            "get": {
                "operationId": "phone_numbers_versions_list",
                "description": "Retrieve phone numbers / versions. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "phone_number_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "phone-numbers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VersionPage"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/phone-numbers/{phone_number_id}/verify-voip": {
            "post": {
                "operationId": "phone_numbers_verify_voip",
                "description": "Verify an imported number — places a real, carrier-billed probe call. Admin-only (like import/provision, which it follows), rate-limited per user, and serialised per number so two clicks cannot dial twice. The flow itself lives in verification_flow (shared with the re-proof job).",
                "parameters": [
                    {
                        "in": "path",
                        "name": "phone_number_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "phone-numbers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/NumberVerification"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/phone-numbers/{phone_number_id}/test-inbound": {
            "post": {
                "operationId": "phone_numbers_test_inbound",
                "description": "Test inbound calls to a verified VoIP number. ThunderPhone calls the number and checks that the carrier delivers the call back to ThunderPhone, then hangs up; no agent answers. Admin only. Returns 409 while a verification or another test of the number is running. An ``inbound_probe.status`` of ``unavailable`` means the test could not run; nothing is recorded.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "phone_number_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "phone-numbers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/NumberInboundTest"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/caller-registration": {
            "get": {
                "operationId": "caller_registration_list",
                "description": "GET: the caller name setting and every number's registrations.",
                "tags": [
                    "caller-registration"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallerRegistrationOverview"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/caller-registration/caller-name": {
            "put": {
                "operationId": "caller_registration_caller_name_update",
                "description": "PUT: save the caller name and re-apply it to ThunderPhone numbers.",
                "tags": [
                    "caller-registration"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CallerNameSettingRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallerRegistrationOverview"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/caller-registration/register": {
            "post": {
                "operationId": "caller_registration_register_create",
                "description": "POST: register numbers in the customer's own Twilio or Telnyx account.",
                "tags": [
                    "caller-registration"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RegisterRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RegisterResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/caller-registration/refresh": {
            "post": {
                "operationId": "caller_registration_refresh_create",
                "description": "POST: read where this organization's pending reviews stand now.",
                "tags": [
                    "caller-registration"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallerRegistrationOverview"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/caller-registration/twilio-business-profile": {
            "get": {
                "operationId": "caller_registration_twilio_business_profile_list",
                "description": "GET ?connection_id=: whether the Twilio account has an approved Primary Business Profile (a live read of the customer's Trust Hub).",
                "parameters": [
                    {
                        "in": "query",
                        "name": "connection_id",
                        "schema": {
                            "type": "integer"
                        },
                        "description": "A Twilio VoIP connection id.",
                        "required": true
                    }
                ],
                "tags": [
                    "caller-registration"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TwilioBusinessProfileResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/caller-registration/registrations/{registration_id}": {
            "delete": {
                "operationId": "caller_registration_registrations_delete",
                "description": "DELETE: turn off the caller name on a number in the customer's own Telnyx account. Twilio registrations are removed in Twilio's Trust Hub.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "registration_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "caller-registration"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RegistrationOut"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/phone-number-labels": {
            "get": {
                "operationId": "phone_number_labels_list",
                "description": "List all phone-number labels for an org, or create/update one (upsert).",
                "tags": [
                    "phone-number-labels"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/PhoneNumberLabel"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "phone_number_labels_create",
                "description": "List all phone-number labels for an org, or create/update one (upsert).",
                "tags": [
                    "phone-number-labels"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PhoneNumberLabelWriteRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PhoneNumberLabel"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/phone-number-labels/{label_id}": {
            "delete": {
                "operationId": "phone_number_labels_delete",
                "description": "Delete a single phone-number label.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "label_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "phone-number-labels"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/blocked-callers": {
            "get": {
                "operationId": "blocked_callers_list",
                "description": "Retrieve blocked callers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "query",
                        "name": "limit",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 200,
                            "default": 50
                        }
                    },
                    {
                        "in": "query",
                        "name": "number",
                        "schema": {
                            "type": "string",
                            "maxLength": 64
                        },
                        "description": "Exact number, normalized like a new entry; use it to check whether a caller is blocked."
                    },
                    {
                        "in": "query",
                        "name": "offset",
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "default": 0
                        }
                    },
                    {
                        "in": "query",
                        "name": "search",
                        "schema": {
                            "type": "string",
                            "maxLength": 64
                        },
                        "description": "Case-insensitive match on part of the number or the note."
                    }
                ],
                "tags": [
                    "blocked-callers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/BlockedCallerList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "blocked_callers_create",
                "description": "Create or run blocked callers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "blocked-callers"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/BlockedCallerCreateRequest"
                            }
                        },
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "$ref": "#/components/schemas/BlockedCallerCreateRequest"
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/BlockedCallerCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/BlockedCaller"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/blocked-callers/bulk": {
            "post": {
                "operationId": "blocked_callers_bulk_create",
                "description": "Create or run blocked callers / bulk. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "blocked-callers"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/BlockedCallerBulkRequest"
                            }
                        },
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "$ref": "#/components/schemas/BlockedCallerBulkRequest"
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/BlockedCallerBulkRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/BlockedCallerBulkResult"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/blocked-callers/{blocked_caller_id}": {
            "delete": {
                "operationId": "blocked_callers_delete",
                "description": "Delete blocked callers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "blocked_caller_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "blocked-callers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/sms": {
            "get": {
                "operationId": "sms_list",
                "description": "Retrieve sms. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "sms"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SmsMessageList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "sms_create",
                "description": "Create or run sms. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "header",
                        "name": "Idempotency-Key",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Organization-scoped key (1-128 characters). Reuse only for the identical request.",
                        "required": true
                    }
                ],
                "tags": [
                    "sms"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SmsSendRequest"
                            }
                        },
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "$ref": "#/components/schemas/SmsSendRequest"
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/SmsSendRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SmsMessage"
                                }
                            }
                        },
                        "description": ""
                    },
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SmsMessage"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/sms/{message_id}": {
            "get": {
                "operationId": "sms_retrieve",
                "description": "Retrieve sms. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "message_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "sms"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SmsMessage"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/scheduled": {
            "get": {
                "operationId": "scheduled_list",
                "description": "Retrieve scheduled. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "query",
                        "name": "external_id",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "limit",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "offset",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "order",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "asc",
                                "desc"
                            ]
                        },
                        "description": "By send_at; asc by default."
                    },
                    {
                        "in": "query",
                        "name": "send_after",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "in": "query",
                        "name": "send_before",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "in": "query",
                        "name": "source",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "status",
                        "schema": {
                            "type": "string"
                        },
                        "description": "One status, or several separated by commas."
                    },
                    {
                        "in": "query",
                        "name": "to",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "type",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "call",
                                "sms"
                            ]
                        }
                    }
                ],
                "tags": [
                    "scheduled"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ScheduledSendList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "scheduled_create",
                "description": "Create or run scheduled. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "scheduled"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ScheduledSendCreateRequest"
                            }
                        },
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "$ref": "#/components/schemas/ScheduledSendCreateRequest"
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/ScheduledSendCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ScheduledSendResult"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ScheduledSendResult"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/scheduled/cancel": {
            "post": {
                "operationId": "scheduled_cancel_create",
                "description": "Create or run scheduled / cancel. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "scheduled"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ScheduledSendCancelRequest"
                            }
                        },
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "$ref": "#/components/schemas/ScheduledSendCancelRequest"
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/ScheduledSendCancelRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ScheduledSendCancelResult"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/scheduled/{send_id}": {
            "get": {
                "operationId": "scheduled_retrieve",
                "description": "Retrieve scheduled. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "send_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "scheduled"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ScheduledSend"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "scheduled_partial_update",
                "description": "Update scheduled. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "send_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "scheduled"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedScheduledSendUpdateRequest"
                            }
                        },
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedScheduledSendUpdateRequest"
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedScheduledSendUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ScheduledSendResult"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "scheduled_delete",
                "description": "Delete scheduled. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "send_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "scheduled"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/opt-outs": {
            "get": {
                "operationId": "opt_outs_list",
                "description": "Retrieve opt outs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "query",
                        "name": "channel",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "call",
                                "sms"
                            ]
                        }
                    },
                    {
                        "in": "query",
                        "name": "limit",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "number",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "offset",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "source",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "opt-outs"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ContactOptOutList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "opt_outs_create",
                "description": "Create or run opt outs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "opt-outs"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ContactOptOutCreateRequest"
                            }
                        },
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "$ref": "#/components/schemas/ContactOptOutCreateRequest"
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/ContactOptOutCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ContactOptOutCreateResult"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ContactOptOutCreateResult"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "opt_outs_delete",
                "description": "Delete opt outs. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "query",
                        "name": "channel",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "both",
                                "call",
                                "sms"
                            ]
                        }
                    },
                    {
                        "in": "query",
                        "name": "number",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "opt-outs"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/voip-connections": {
            "get": {
                "operationId": "voip_connections_list",
                "description": "Retrieve voip connections. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "voip-connections"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/VoipConnection"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "voip_connections_create",
                "description": "Create or run voip connections. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "voip-connections"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/VoipConnectionCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VoipConnection"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voip-connections/suggest-name": {
            "post": {
                "operationId": "voip_connections_suggest_name_create",
                "description": "Create or run voip connections / suggest name. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "voip-connections"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/VoipConnectionSuggestNameRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConnectionNameSuggestion"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voip-connections/sip-host": {
            "get": {
                "operationId": "voip_connections_sip_host_list",
                "description": "Return the SIP host a manual connection's trunk must send inbound calls to. ``sip_host`` is a bare hostname (no scheme or port), or null when inbound SIP is not configured in this environment.",
                "tags": [
                    "voip-connections"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VoipSipHost"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voip-connections/test": {
            "post": {
                "operationId": "voip_connections_test_create",
                "description": "Create or run voip connections / test. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "voip-connections"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/VoipConnectionTestRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConnectionTest"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voip-connections/twilio/subaccounts": {
            "post": {
                "operationId": "voip_connections_twilio_subaccounts",
                "description": "List the active subaccounts under a Twilio parent account. The response carries SIDs and names only. Each subaccount's auth token is parked in a ``VoipSubaccountDiscovery`` row and referenced by ``discovery_id``; ``VoipTwilioSubaccountConnectView`` reads it back from there so tokens never round-trip through the browser.",
                "tags": [
                    "voip-connections"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/VoipTwilioSubaccountDiscoverRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TwilioSubaccountDiscovery"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voip-connections/twilio/subaccounts/connect": {
            "post": {
                "operationId": "voip_connections_twilio_subaccounts_connect",
                "description": "Create one ordinary Twilio connection per chosen subaccount. Every SID is handled on its own — its own verification evidence, trunk, connection row and transaction — so one bad subaccount reports ``failed`` without touching the others, and the discovery row stays valid until it expires so the failed SID can simply be sent again.",
                "tags": [
                    "voip-connections"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/VoipTwilioSubaccountConnectRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TwilioSubaccountConnectResults"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voip-connections/{connection_id}": {
            "get": {
                "operationId": "voip_connections_retrieve",
                "description": "Retrieve voip connections. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "voip-connections"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VoipConnection"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "voip_connections_partial_update",
                "description": "Update voip connections. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "voip-connections"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedVoipConnectionUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VoipConnection"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "voip_connections_delete",
                "description": "Delete voip connections. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "voip-connections"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/voip-connections/{connection_id}/enable-transfers": {
            "post": {
                "operationId": "voip_connections_enable_transfers",
                "description": "Turn call transfers on at the carrier for one connection. A carrier that refuses SIP REFER leaves ThunderPhone bridging transferred calls itself (billed per minute). For Twilio this sets the trunk's transfer setting through the customer's own account; other providers get a 409 with what to change on their side (see ``transfers``).",
                "parameters": [
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "voip-connections"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VoipConnection"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/voip-connections/{connection_id}/available-numbers": {
            "get": {
                "operationId": "voip_connections_available_numbers_list",
                "description": "Retrieve voip connections / available numbers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "voip-connections"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "additionalProperties": true
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voip-connections/{connection_id}/import-numbers": {
            "post": {
                "operationId": "voip_connections_import_numbers",
                "description": "Create or run voip connections / import numbers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "voip-connections"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/VoipNumberImportRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ImportedNumbers"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voip-connections/{connection_id}/search-numbers": {
            "get": {
                "operationId": "voip_connections_search_numbers_list",
                "description": "Retrieve voip connections / search numbers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "query",
                        "name": "area_code",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "query",
                        "name": "country",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    },
                    {
                        "in": "query",
                        "name": "type",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "local",
                                "toll-free"
                            ]
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "voip-connections"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AvailableNumbers"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/voip-connections/{connection_id}/provision-number": {
            "post": {
                "operationId": "voip_connections_provision_number",
                "description": "Create or run voip connections / provision number. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "voip-connections"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/VoipNumberProvisionRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProvisionedNumber"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProvisionedNumber"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/webhook": {
            "get": {
                "operationId": "webhook_list",
                "description": "Retrieve webhook. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "webhook"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OrganizationWebhook"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "put": {
                "operationId": "webhook_update",
                "description": "Replace webhook. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "webhook"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/OrganizationWebhookRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OrganizationWebhook"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "webhook_bulk_update",
                "description": "Update webhook. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "webhook"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedOrganizationWebhookRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OrganizationWebhook"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/integrations/test-request": {
            "post": {
                "operationId": "integrations_test_request_create",
                "description": "Create or run integrations / test request. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "integrations"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IntegrationTestRequestRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/IntegrationTest"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/integrations": {
            "get": {
                "operationId": "integrations_list",
                "description": "Retrieve integrations. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "integrations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/OrganizationIntegration"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "integrations_create",
                "description": "Create or run integrations. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "integrations"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IntegrationCreateUpdateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OrganizationIntegration"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/mcp-servers": {
            "get": {
                "operationId": "mcp_servers_list",
                "description": "Retrieve mcp servers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "mcp-servers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/MCPServer"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "mcp_servers_create",
                "description": "Create or run mcp servers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "mcp-servers"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/MCPServerCreateUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/MCPServer"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/mcp-servers/{server_id}": {
            "get": {
                "operationId": "mcp_servers_retrieve",
                "description": "Retrieve mcp servers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "server_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "mcp-servers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/MCPServer"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "mcp_servers_partial_update",
                "description": "Update mcp servers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "server_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "mcp-servers"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedMCPServerCreateUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/MCPServer"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "mcp_servers_delete",
                "description": "Delete mcp servers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "server_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "mcp-servers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/mcp-servers/{server_id}/sync-tools": {
            "post": {
                "operationId": "mcp_servers_sync_tools",
                "description": "Create or run mcp servers / sync tools. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "server_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "mcp-servers"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/MCPServer"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/provider-connections": {
            "get": {
                "operationId": "provider_connections_list",
                "description": "Retrieve provider connections. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "provider-connections"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProviderConnections"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/provider-connections/{connection_id}": {
            "get": {
                "operationId": "provider_connections_retrieve",
                "description": "Retrieve provider connections. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "provider-connections"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProviderConnection"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "provider_connections_partial_update",
                "description": "Update provider connections. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "provider-connections"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedProviderOperationsRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProviderConnection"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "provider_connections_delete",
                "description": "Delete provider connections. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "provider-connections"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/provider-connections/{connection_id}/test": {
            "post": {
                "operationId": "provider_connections_test",
                "description": "The Test button: one read-only request with the connection's sign-in, refreshing it if due.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "provider-connections"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProviderConnectionTest"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/provider-connections/{connection_id}/sheets/picker-token": {
            "post": {
                "operationId": "provider_connections_sheets_picker_token",
                "description": "Hands the browser the connection's own access token for the Google Picker. Under `drive.file` the server has no grant on a spreadsheet until the user picks it, and the grant is recorded against the credential that ran the Picker session. Minting the token from this connection — rather than a separate browser-side token client — guarantees the picked-file grant lands on the very refresh token the tool executor later uses, instead of relying on grants being project-scoped across our per-environment OAuth clients. The token is short-lived and belongs to the grant this org admin already established, so handing it back to that same admin's browser exposes nothing they cannot already reach. It stays narrow only because the Sheets flow omits `include_granted_scopes` — with it, this token would union in every other scope the account granted this client. Keep that off.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "provider-connections"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SheetsPickerToken"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/provider-connections/{connection_id}/sheets/inspect": {
            "post": {
                "operationId": "provider_connections_sheets_inspect",
                "description": "Lists tab names for a spreadsheet the Picker just granted. Takes the Picker's file id, not a pasted URL: under drive.file the server can only open ids the user explicitly picked.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "provider-connections"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SpreadsheetInspectRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SpreadsheetOverview"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/provider-connections/{connection_id}/sheets/configure": {
            "post": {
                "operationId": "provider_connections_sheets_configure",
                "description": "Create or run provider connections / sheets / configure. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "provider-connections"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SpreadsheetConfigureRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProviderConnection"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/provider-connections/{connection_id}/agents/{agent_id}": {
            "put": {
                "operationId": "provider_connections_agents_update",
                "description": "Replace provider connections / agents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "provider-connections"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AgentProviderOperationsRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProviderConnection"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "provider_connections_agents_delete",
                "description": "Delete provider connections / agents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "connection_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "provider-connections"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/provider-connections/{provider}/api-key": {
            "post": {
                "operationId": "provider_connections_api_key",
                "description": "Create or run provider connections / api key. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "provider",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "provider-connections"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ProviderApiKeyRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ProviderConnection"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/mcp": {
            "post": {
                "operationId": "mcp_create",
                "description": "Create or run mcp. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "mcp"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/McpRequestRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/JsonRpcResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/mcp/baa": {
            "post": {
                "operationId": "mcp_baa_create",
                "description": "Create or run mcp / baa. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "mcp"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/McpRequestRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/JsonRpcResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/integrations/{integration_id}/transfer": {
            "post": {
                "operationId": "integrations_transfer",
                "description": "Create or run integrations / transfer. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "integration_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "integrations"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IntegrationTransferRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/IntegrationTransfer"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/IntegrationTransfer"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/integrations/{integration_id}/versions": {
            "get": {
                "operationId": "integrations_versions_list",
                "description": "Retrieve integrations / versions. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "integration_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "integrations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/VersionPage"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/developer/api-keys": {
            "get": {
                "operationId": "developer_api_keys_list",
                "description": "Manage organization API keys using a human admin token. Organization API keys cannot create, list, or revoke other keys; use Organization → Keys in the dashboard for key management.",
                "tags": [
                    "developer"
                ],
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/DeveloperApiKey"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "developer_api_keys_create",
                "description": "Manage organization API keys using a human admin token. Organization API keys cannot create, list, or revoke other keys; use Organization → Keys in the dashboard for key management.",
                "tags": [
                    "developer"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DeveloperApiKeyCreateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiKeyCreated"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/developer/api-keys/{key_id}": {
            "patch": {
                "operationId": "developer_api_keys_partial_update",
                "description": "Rename an API key, or (from the dashboard only) let it see held-out calls in full. The key's secret and prefix are unchanged and never returned.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "key_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "developer"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedDeveloperApiKeysUpdateBodyRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DeveloperApiKey"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "developer_api_keys_delete",
                "description": "Manage organization API keys using a human admin token. Organization API keys cannot create, list, or revoke other keys; use Organization → Keys in the dashboard for key management.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "key_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "developer"
                ],
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/developer/webhook-endpoints": {
            "get": {
                "operationId": "developer_webhook_endpoints_list",
                "description": "Retrieve developer / webhook endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "developer"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/DeveloperWebhookEndpoint"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "developer_webhook_endpoints_create",
                "description": "Create or run developer / webhook endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "developer"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DeveloperWebhookEndpointCreateUpdateRequest"
                            },
                            "examples": {
                                "Request": {
                                    "value": {
                                        "label": "Call events",
                                        "url": "https://example.com/webhooks",
                                        "events": [
                                            "telephony.complete"
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/WebhookCreated"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "id": "00000000-0000-4000-8000-000000000001",
                                            "label": "Call events",
                                            "url": "https://example.com/webhooks",
                                            "events": [
                                                "telephony.complete"
                                            ],
                                            "agent_id": null,
                                            "agent_name": null,
                                            "secret": "example-only-not-a-credential",
                                            "secret_hint": "example",
                                            "paused_at": null,
                                            "pause_last_error": "",
                                            "pause_undelivered_count": null,
                                            "created_at": "2026-01-01T00:00:00Z",
                                            "updated_at": "2026-01-01T00:00:00Z"
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/developer/webhook-endpoints/{endpoint_id}": {
            "patch": {
                "operationId": "developer_webhook_endpoints_partial_update",
                "description": "Update developer / webhook endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "endpoint_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "developer"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedDeveloperWebhookEndpointCreateUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DeveloperWebhookEndpoint"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "developer_webhook_endpoints_delete",
                "description": "Delete developer / webhook endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "endpoint_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "developer"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/developer/webhook-endpoints/{endpoint_id}/rotate-secret": {
            "post": {
                "operationId": "developer_webhook_endpoints_rotate_secret",
                "description": "Replace an endpoint's signing secret. The new secret is returned once and takes effect on the next delivery, retries included; the old secret stops being used at once, so deliveries fail your signature check until your receiver has the new secret. By default the organization's other endpoints with the same URL and the same current secret get the new secret too.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "endpoint_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "Webhooks"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DeveloperWebhookEndpointsRotateSecretBodyRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DeveloperWebhookRotateSecretResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/developer/webhook-endpoints/{endpoint_id}/test": {
            "post": {
                "operationId": "developer_webhook_endpoints_test",
                "description": "Send a synthetic event through the normal signed delivery pipeline to one endpoint. Omit event_type to send webhook.test. Test sends get one retry after about a minute and never change endpoint status.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "endpoint_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "Webhooks"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DeveloperWebhookEndpointsTestBody"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DeveloperWebhookTestDelivery"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/developer/webhook-endpoints/{endpoint_id}/deliveries/{event_id}/resend": {
            "post": {
                "operationId": "developer_webhook_endpoints_deliveries_resend",
                "description": "Send a failed delivery to its endpoint once more, now. The envelope keeps its `event_id`, so a receiver that already processed the event can drop the copy, and it is signed with the endpoint's current secret. Only real deliveries whose retries ran out (`failed`) on an active endpoint can be resent; a failed resend does not pause the endpoint. Pass `idempotency_key` so a repeated request sends nothing new. Limited per endpoint.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "endpoint_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "event_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "Webhooks"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DeveloperWebhookDeliveriesResendBodyRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DeveloperWebhookResendResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/developer/webhook-deliveries": {
            "get": {
                "operationId": "developer_webhook_deliveries_list",
                "description": "Payload-free outcomes from endpoint and legacy webhook delivery.",
                "parameters": [
                    {
                        "in": "query",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "in": "query",
                        "name": "cursor",
                        "schema": {
                            "type": "string",
                            "maxLength": 512
                        },
                        "description": "Opaque cursor returned by the previous page. Reuse it only with the same organization, filters, since value, and limit."
                    },
                    {
                        "in": "query",
                        "name": "endpoint_id",
                        "schema": {
                            "type": "string",
                            "maxLength": 64
                        },
                        "description": "Endpoint UUID, or 'legacy' for the legacy single-URL webhook."
                    },
                    {
                        "in": "query",
                        "name": "event_type",
                        "schema": {
                            "type": "string",
                            "maxLength": 64
                        }
                    },
                    {
                        "in": "query",
                        "name": "limit",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50,
                            "default": 50
                        },
                        "examples": {
                            "PageSize": {
                                "value": 50,
                                "summary": "Page size"
                            }
                        }
                    },
                    {
                        "in": "query",
                        "name": "since",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        },
                        "description": "RFC 3339 date-time. Defaults to 7 days ago and is clamped to 30 days ago."
                    },
                    {
                        "in": "query",
                        "name": "status",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "delivered",
                                "failed",
                                "retrying"
                            ]
                        }
                    }
                ],
                "tags": [
                    "developer"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/WebhookDeliveryListResponse"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "results": [
                                                {
                                                    "id": "0b6f8a6e-4e1c-4d8e-9a43-7f1d2c3b4a59",
                                                    "source": "endpoint",
                                                    "endpoint_id": "00000000-0000-4000-8000-000000000001",
                                                    "endpoint_label": "Call events",
                                                    "url": "https://example.com",
                                                    "event_type": "telephony.complete",
                                                    "call_id": 1001,
                                                    "status": "retrying",
                                                    "attempt_count": 2,
                                                    "http_status": 404,
                                                    "failure_category": "http_error",
                                                    "last_attempt_at": "2026-01-01T00:00:00Z",
                                                    "next_retry_at": "2026-01-01T00:05:00Z",
                                                    "duration_ms": 412,
                                                    "is_test": false,
                                                    "can_resend": false,
                                                    "was_resent": false,
                                                    "created_at": "2026-01-01T00:00:00Z",
                                                    "resent_at": null
                                                }
                                            ],
                                            "limit": 50,
                                            "has_more": false,
                                            "next_cursor": null
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls": {
            "get": {
                "operationId": "calls_list",
                "description": "Retrieve calls. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "query",
                        "name": "agent_config_version_id",
                        "schema": {
                            "type": "integer"
                        },
                        "description": "Only calls that ran this agent version (an id from the agent's versions)."
                    },
                    {
                        "in": "query",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "call_ids",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Comma-separated call ids (at most 200): only these calls."
                    },
                    {
                        "in": "query",
                        "name": "caller_kind",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "existing",
                                "new"
                            ]
                        },
                        "description": "Only calls whose report says the caller was new to the business, or had called before."
                    },
                    {
                        "in": "query",
                        "name": "count",
                        "schema": {
                            "type": "boolean"
                        },
                        "description": "Whether total counts every match. By default the first page counts and a cursor page does not."
                    },
                    {
                        "in": "query",
                        "name": "cursor",
                        "schema": {
                            "type": "string",
                            "maxLength": 200
                        },
                        "description": "The next_cursor of the previous page: the calls after it, newest first. Pages stay stable while new calls come in. Reuse it only with the same filters; not with offset or attention_first."
                    },
                    {
                        "in": "query",
                        "name": "direction",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "end_date",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "end_reason",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Comma-separated end reasons (at most 20), as calls report them in end_reason: only calls that ended one of these ways, e.g. user_hangup (the caller hung up) or ai_hangup."
                    },
                    {
                        "in": "query",
                        "name": "exclude_scenario_calls",
                        "schema": {
                            "type": "boolean",
                            "default": false
                        },
                        "description": "When true, leave out the calls test scenario batches ran."
                    },
                    {
                        "in": "query",
                        "name": "exclude_test_calls",
                        "schema": {
                            "type": "boolean",
                            "default": false
                        },
                        "description": "When true, omit test traffic: agent-builder test calls (including their SIP legs), simulation runs, and builder Talk sessions (direction test). Web widget calls are kept."
                    },
                    {
                        "in": "query",
                        "name": "flag_reason",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Comma-separated: only calls flagged for one of these reasons (frustrated, asked_for_person, no_answer, details, booking_failed, transfer_failed, hung_up, agent_error, unclear_error, setup_problem, outside_problem), not yet marked handled."
                    },
                    {
                        "in": "query",
                        "name": "flagged",
                        "schema": {
                            "type": "boolean"
                        },
                        "description": "When true, only calls flagged as something going wrong (a failure, a hang-up mid-call, a report's attention reason) and not yet marked handled; when false, the rest."
                    },
                    {
                        "in": "query",
                        "name": "from_number",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "limit",
                        "schema": {
                            "type": "integer"
                        },
                        "examples": {
                            "PageSize": {
                                "value": 50,
                                "summary": "Page size"
                            }
                        }
                    },
                    {
                        "in": "query",
                        "name": "newer_than",
                        "schema": {
                            "type": "string",
                            "maxLength": 200
                        },
                        "description": "A page's head_cursor: only the calls that started after that page's first call."
                    },
                    {
                        "in": "query",
                        "name": "offset",
                        "schema": {
                            "type": "integer"
                        },
                        "examples": {
                            "FirstPage": {
                                "value": 0,
                                "summary": "First page"
                            }
                        }
                    },
                    {
                        "in": "query",
                        "name": "own_number",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Only calls on this number of yours: the number called on an inbound call, the caller ID on an outbound one."
                    },
                    {
                        "in": "query",
                        "name": "phone_number",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "prompt_revision_id",
                        "schema": {
                            "type": "integer"
                        },
                        "description": "Only calls that ran this prompt revision (an id from the agent's prompt revisions)."
                    },
                    {
                        "in": "query",
                        "name": "search",
                        "schema": {
                            "type": "string",
                            "maxLength": 200
                        },
                        "description": "Words that must each appear in the caller's name, the call's summary, reason or outcome; or a phone number, matched on its digits on either side of the call."
                    },
                    {
                        "in": "query",
                        "name": "start_date",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "status",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "to_number",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "until",
                        "schema": {
                            "type": "string",
                            "maxLength": 200
                        },
                        "description": "A page's head_cursor: only that call and the calls before it, so a page read again after new calls came in is the same page."
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallListResponse"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "results": [],
                                            "total": 0,
                                            "limit": 50,
                                            "offset": 0
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/export": {
            "get": {
                "operationId": "calls_export_list",
                "description": "Export calls for an organization as CSV or JSON. Honors the same filter query params as the call-list endpoint (agent_id, direction, status, phone_number, from_number, to_number, start_date, end_date, exclude_test_calls) — QA4 CALLS-16: this used to ignore every filter and silently export an org-wide superset of what the caller filtered. CSV returns high-level call metadata (no transcripts). JSON returns metadata plus the full transcript for each call. Capped at the 1,000 most recent calls matching the filters; when the filtered result exceeds the cap, the response carries an ``X-Truncated: true`` header (and ``X-Total-Count`` with the untruncated match count) — JSON responses also carry a ``truncated`` body field.",
                "parameters": [
                    {
                        "in": "query",
                        "name": "agent_config_version_id",
                        "schema": {
                            "type": "integer"
                        },
                        "description": "Only calls that ran this agent version (an id from the agent's versions)."
                    },
                    {
                        "in": "query",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "in": "query",
                        "name": "call_ids",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Comma-separated call ids (at most 200): only these calls."
                    },
                    {
                        "in": "query",
                        "name": "caller_kind",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "existing",
                                "new"
                            ]
                        },
                        "description": "Only calls whose report says the caller was new to the business, or had called before."
                    },
                    {
                        "in": "query",
                        "name": "direction",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "end_date",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "end_reason",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Comma-separated end reasons (at most 20), as calls report them in end_reason: only calls that ended one of these ways, e.g. user_hangup (the caller hung up) or ai_hangup."
                    },
                    {
                        "in": "query",
                        "name": "exclude_scenario_calls",
                        "schema": {
                            "type": "boolean",
                            "default": false
                        },
                        "description": "When true, leave out the calls test scenario batches ran."
                    },
                    {
                        "in": "query",
                        "name": "exclude_test_calls",
                        "schema": {
                            "type": "boolean",
                            "default": false
                        },
                        "description": "When true, omit test traffic: agent-builder test calls (including their SIP legs), simulation runs, and builder Talk sessions (direction test). Web widget calls are kept."
                    },
                    {
                        "in": "query",
                        "name": "flag_reason",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Comma-separated: only calls flagged for one of these reasons (frustrated, asked_for_person, no_answer, details, booking_failed, transfer_failed, hung_up, agent_error, unclear_error, setup_problem, outside_problem), not yet marked handled."
                    },
                    {
                        "in": "query",
                        "name": "flagged",
                        "schema": {
                            "type": "boolean"
                        },
                        "description": "When true, only calls flagged as something going wrong (a failure, a hang-up mid-call, a report's attention reason) and not yet marked handled; when false, the rest."
                    },
                    {
                        "in": "query",
                        "name": "from_number",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "own_number",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Only calls on this number of yours: the number called on an inbound call, the caller ID on an outbound one."
                    },
                    {
                        "in": "query",
                        "name": "phone_number",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "prompt_revision_id",
                        "schema": {
                            "type": "integer"
                        },
                        "description": "Only calls that ran this prompt revision (an id from the agent's prompt revisions)."
                    },
                    {
                        "in": "query",
                        "name": "search",
                        "schema": {
                            "type": "string",
                            "maxLength": 200
                        },
                        "description": "Words that must each appear in the caller's name, the call's summary, reason or outcome; or a phone number, matched on its digits on either side of the call."
                    },
                    {
                        "in": "query",
                        "name": "start_date",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "status",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "in": "query",
                        "name": "to_number",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallExport"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/bulk-delete": {
            "post": {
                "operationId": "calls_bulk_delete_create",
                "description": "Permanently delete up to 100 calls: their recordings, transcripts, summaries, extracted data, grades and issue reports, and any validation examples made from them. Billing records keep the charge. Admin only. Returns one result per distinct call id.",
                "tags": [
                    "calls"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CallBulkDeleteRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallBulkDeleteResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/bulk-delete/preview": {
            "post": {
                "operationId": "calls_bulk_delete_preview",
                "description": "Preview what deleting up to 100 calls also removes, without deleting anything. Returns the number of validation examples and test conversations made from those calls. Ids that are not calls in your organization count nothing. Admin only, like the deletion itself.",
                "tags": [
                    "calls"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CallBulkDeleteRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallDeletionPreview"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/report-summary": {
            "get": {
                "operationId": "calls_report_summary_list",
                "description": "``GET /v1/calls/report-summary`` for the dashboard call list.",
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallReportSummary"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/party-numbers": {
            "get": {
                "operationId": "calls_party_numbers_list",
                "description": "Distinct phone numbers seen on either side of the org's calls. Backs the call-history From / To filter autocomplete: the filter used to offer only org-owned and labeled numbers, so an external caller could never be picked. ``q`` is matched as a digit substring (punctuation in the query is ignored) so \"(631) 456\" finds \"+16314566068\". Results are ordered by the most recent call the number appeared on.",
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PartyNumbers"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/handoff": {
            "get": {
                "operationId": "calls_handoff_retrieve",
                "description": "Look up a call your agent handed to your contact center, by your contact center's id for the call (external_call_id) or the id ThunderPhone sent with the transfer (handoff_id). Send exactly one. Returns the most recent matching call in your organization: the hand-off summary, the SIP headers and variables the call started with, and once the call has ended its summary and extracted data. 404 when no call in your organization matches.",
                "parameters": [
                    {
                        "in": "query",
                        "name": "external_call_id",
                        "schema": {
                            "type": "string",
                            "maxLength": 128
                        },
                        "description": "Your contact center's own id for the call, as it sent it in a SIP header. Send this or handoff_id, not both."
                    },
                    {
                        "in": "query",
                        "name": "handoff_id",
                        "schema": {
                            "type": "string",
                            "maxLength": 64
                        },
                        "description": "The id ThunderPhone sent with the transfer ({{handoff_id}} in a transfer header, or X-TP-Handoff-Id on a return). Send this or external_call_id, not both."
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallHandoff"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/{call_id}": {
            "get": {
                "operationId": "calls_retrieve",
                "description": "Retrieve calls. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Call"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "calls_delete",
                "description": "Permanently delete a call: its recording, transcript, summary, extracted data, grades and issue reports, and any validation examples made from it. Billing records keep the charge. Admin only. Returns 404 when the call is not in your organization or was already deleted, and 409 while the call is live or its billing is still being settled, or it is under a legal hold.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/calls/{call_id}/audio": {
            "get": {
                "operationId": "calls_audio_list",
                "description": "Retrieve calls / audio. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallAudio"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/consent-announcements/{asset_hash}": {
            "get": {
                "operationId": "consent_announcements_retrieve",
                "description": "Stream the exact consent-announcement asset that played on an org call. Authorization is purely evidence linkage (mirroring CallAudioView's org scoping): the requesting user's org must own a call whose stored consent_evidence names this asset hash. This endpoint never becomes a general artifact fetcher — it only serves blobs under the consent-announcements/<asset_version>/ prefix recorded on such a call, and only when the blob's content hash matches the requested hash.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "asset_hash",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "consent-announcements"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/{call_id}/caller-audio": {
            "get": {
                "operationId": "calls_caller_audio_list",
                "description": "Serve one caller-audio span after checking call and reference scope.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "302": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/calls/{call_id}/span-audio": {
            "get": {
                "operationId": "calls_span_audio_list",
                "description": "Serve one caller-audio span after checking call and reference scope.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "302": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/calls/{call_id}/listen": {
            "post": {
                "operationId": "calls_listen",
                "description": "Mint a hidden, subscribe-only LiveKit token for a live call. Lets an org member hear an in-progress conversation from the browser. The listener joins the call's existing room with ``hidden=True`` and no publish grant, so the agent, the caller, and the room-composite recording are all unaffected.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ListenSession"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/calls/{call_id}/whisper": {
            "post": {
                "operationId": "calls_whisper",
                "description": "Send private operator guidance to an in-progress Core call session.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CallWhisperRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/WhisperAccepted"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/{call_id}/tool-results": {
            "post": {
                "operationId": "calls_tool_results",
                "description": "Deliver the result of a hold tool that answered \"pending\". A tool with wait_mode \"hold\" may answer {\"status\": \"pending\", \"request_id\": \"...\"}. The caller stays on hold until you post the result for that request_id here, or until the tool's timeout passes. 202 means the call accepted the result: an open request took it, or the tool's own request is still in flight and its pending answer will claim it. 409 means the call is not live or has no open request with that request_id.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CallToolResultRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ToolResultAccepted"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/{call_id}/transcript": {
            "get": {
                "operationId": "calls_transcript_list",
                "description": "Retrieve calls / transcript. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true,
                        "examples": {
                            "Call": {
                                "value": 1001
                            }
                        }
                    },
                    {
                        "in": "query",
                        "name": "live",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallTranscript"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "call_id": 1001,
                                            "transcripts": [
                                                {
                                                    "role": "agent",
                                                    "content": "How can I help?",
                                                    "start_ms": 0,
                                                    "end_ms": 900
                                                }
                                            ]
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/{call_id}/grade": {
            "get": {
                "operationId": "calls_grade_list",
                "description": "Read or synchronously grade a call. Every paid grading invocation, forced or not, must claim the call first. The standard claim window is 15 minutes. When the latest grade is a retryable failure, the claim window is shortened to 90 seconds so the client can follow the retry guidance. The claim bounds NEW invocations to one per window; a grading run that itself outlives the 90s retry window can therefore briefly overlap the next claimed retry — worst case one extra paid invocation per 90s on a single call, accepted in exchange for honest retry guidance.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallGrade"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "calls_grade",
                "description": "Read or synchronously grade a call. Every paid grading invocation, forced or not, must claim the call first. The standard claim window is 15 minutes. When the latest grade is a retryable failure, the claim window is shortened to 90 seconds so the client can follow the retry guidance. The claim bounds NEW invocations to one per window; a grading run that itself outlives the 90s retry window can therefore briefly overlap the next claimed retry — worst case one extra paid invocation per 90s on a single call, accepted in exchange for honest retry guidance.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "query",
                        "name": "force",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallGrade"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallGrade"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/calls/{call_id}/extract": {
            "post": {
                "operationId": "calls_extract",
                "description": "Re-run post-call extraction with the agent's current deployed schema.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallExtraction"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "id": 412,
                                            "call_id": 1001,
                                            "agent_id": 12,
                                            "schema_snapshot": [
                                                {
                                                    "key": "customer_name",
                                                    "type": "string",
                                                    "description": "The caller's full name",
                                                    "required": true,
                                                    "ask": true
                                                }
                                            ],
                                            "schema_version": "92850758e231a3c95a",
                                            "data": {
                                                "customer_name": "Alex Morgan"
                                            },
                                            "evidence": {
                                                "customer_name": {
                                                    "quote": "My name is Alex Morgan",
                                                    "speaker_role": "caller",
                                                    "turn_index": 4
                                                }
                                            },
                                            "verification": "verified",
                                            "field_reasons": {},
                                            "status": "completed",
                                            "error_message": "",
                                            "model": "thunderphone-extractor",
                                            "extracted_at": "2026-01-01T00:00:00Z",
                                            "created_at": "2026-01-01T00:00:00Z",
                                            "updated_at": "2026-01-01T00:00:00Z"
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    },
                    "409": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallExtraction"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/calls/{call_id}/history": {
            "get": {
                "operationId": "calls_history_list",
                "description": "Retrieve calls / history. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "additionalProperties": true
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/{call_id}/tool-calls/{turn}": {
            "get": {
                "operationId": "calls_tool_calls_retrieve",
                "description": "Retrieve calls / tool calls. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "turn",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallToolRun"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/{call_id}/issue-reports": {
            "get": {
                "operationId": "calls_issue_reports_list",
                "description": "Retrieve calls / issue reports. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/CallIssueReport"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "calls_issue_reports",
                "description": "Create or run calls / issue reports. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CallIssueReportCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallIssueReport"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/issue-reports": {
            "get": {
                "operationId": "issue_reports_list",
                "description": "Retrieve issue reports. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "issue-reports"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/IssueReportPage"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "issue_reports_bulk_update",
                "description": "Bulk-update status for multiple issue reports. Two request shapes: - ``{trace_ids, status}`` (legacy) — updates exactly those rows. - ``{trace_ids, status, pattern_key}`` — ALSO updates every other report in the org that belongs to the same recurring-issue pattern as the given trace_ids, even ones the client hasn't paged in yet (QA4 CALLS-07: without this, a bulk action on a pattern only ever reached whatever page(s) were loaded, so unloaded occurrences stayed open and the pattern would flip back to \"Open\" once more pages loaded).",
                "tags": [
                    "issue-reports"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedCallIssueReportBulkUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/IssueReportsUpdated"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/issue-clusters": {
            "get": {
                "operationId": "issue_clusters_list",
                "description": "Retrieve issue clusters. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "issue-clusters"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/IssueClusterPage"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/issue-clusters/{cluster_id}": {
            "patch": {
                "operationId": "issue_clusters_partial_update",
                "description": "Update issue clusters. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "cluster_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "issue-clusters"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedIssueClusterUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/IssueClusterUpdate"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/issue-clusters/{cluster_id}/escalate": {
            "post": {
                "operationId": "issue_clusters_escalate",
                "description": "Create or run issue clusters / escalate. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "cluster_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "issue-clusters"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IssueEscalationCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/IssueEscalation"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/IssueEscalation"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/issue-reports/{trace_id}": {
            "patch": {
                "operationId": "issue_reports_partial_update",
                "description": "PATCH a single issue report's status by trace_id.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "trace_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "issue-reports"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedCallIssueReportUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallIssueReport"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/investigations": {
            "get": {
                "operationId": "investigations_list",
                "description": "POST /v1/investigations — create a new investigation. GET /v1/investigations — list investigations for the org.",
                "tags": [
                    "investigations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/InvestigationList"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "investigations_create",
                "description": "POST /v1/investigations — create a new investigation. GET /v1/investigations — list investigations for the org.",
                "tags": [
                    "investigations"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StartInvestigationRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/InvestigationDetail"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/investigations/{investigation_id}": {
            "get": {
                "operationId": "investigations_retrieve",
                "description": "GET /v1/investigations/<id> — full investigation with nested children. PATCH /v1/investigations/<id> — update config or dismiss.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "investigation_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "investigations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/InvestigationDetail"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "investigations_partial_update",
                "description": "GET /v1/investigations/<id> — full investigation with nested children. PATCH /v1/investigations/<id> — update config or dismiss.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "investigation_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "investigations"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedUpdateInvestigationRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/InvestigationDetail"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/investigations/{investigation_id}/hypotheses": {
            "post": {
                "operationId": "investigations_hypotheses",
                "description": "POST /v1/investigations/<id>/hypotheses — trigger async hypothesis generation.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "investigation_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "investigations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/InvestigationDetail"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/investigations/{investigation_id}/search": {
            "post": {
                "operationId": "investigations_search",
                "description": "POST /v1/investigations/<id>/search — autonomously find and confirm a fix.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "investigation_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "investigations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/InvestigationDetail"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/investigations/{investigation_id}/candidates/manual": {
            "post": {
                "operationId": "investigations_candidates_manual",
                "description": "POST /v1/investigations/<id>/candidates/manual — add a user-authored candidate.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "investigation_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "investigations"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SubmitManualCandidateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PromptCandidate"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/investigations/{investigation_id}/candidates/{candidate_id}/experiments": {
            "post": {
                "operationId": "investigations_candidates_experiments",
                "description": "POST /v1/investigations/<id>/candidates/<cid>/experiments — start an experiment.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "candidate_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "investigation_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "investigations"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RunExperimentRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Experiment"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/investigations/{investigation_id}/experiments/{experiment_id}": {
            "get": {
                "operationId": "investigations_experiments_retrieve",
                "description": "GET /v1/investigations/<id>/experiments/<eid> — poll experiment progress.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "experiment_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "investigation_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "investigations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Experiment"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/investigations/{investigation_id}/apply": {
            "post": {
                "operationId": "investigations_apply",
                "description": "POST /v1/investigations/<id>/apply — apply a candidate fix.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "investigation_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "investigations"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ApplyInvestigationRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/InvestigationDetail"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/call": {
            "post": {
                "operationId": "calls_place",
                "description": "Create or run call. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "calls"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PlaceCallRequest"
                            },
                            "examples": {
                                "Request": {
                                    "value": {
                                        "from_number": "+14155550100",
                                        "to_number": "+14155550101",
                                        "agent_id": 12,
                                        "idempotency_key": "appointment-123"
                                    }
                                }
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PlaceCallResponse"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "call_id": 1001,
                                            "status": "initiated"
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PlaceCallResponse"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "call_id": 1001,
                                            "status": "initiated"
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    },
                    "202": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PlaceCallResponse"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "call_id": 1001,
                                            "status": "initiated"
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    },
                    "409": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PlaceCallConflict"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/{call_id}/cancel": {
            "post": {
                "operationId": "calls_cancel",
                "description": "Cancel an outbound call still waiting in the queue: POST /v1/calls/{id}/cancel.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PlaceCallResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/caller-reputation": {
            "get": {
                "operationId": "caller_reputation_list",
                "description": "Retrieve caller reputation. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "caller-reputation"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CallerReputationOverview"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/caller-reputation/business": {
            "put": {
                "operationId": "caller_reputation_business_update",
                "description": "Replace caller reputation / business. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "caller-reputation"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/BusinessDetailsRequest"
                            }
                        },
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "$ref": "#/components/schemas/BusinessDetailsRequest"
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/BusinessDetailsRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/BusinessDetailsResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/caller-reputation/spam-monitoring/letter": {
            "get": {
                "operationId": "caller_reputation_spam_monitoring_letter_list",
                "description": "Retrieve caller reputation / spam monitoring / letter. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "caller-reputation"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "caller_reputation_spam_monitoring_letter",
                "description": "Create or run caller reputation / spam monitoring / letter. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "caller-reputation"
                ],
                "requestBody": {
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/FileUploadRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SpamMonitoring"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/caller-reputation/spam-monitoring/enable": {
            "post": {
                "operationId": "caller_reputation_spam_monitoring_enable",
                "description": "Create or run caller reputation / spam monitoring / enable. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "caller-reputation"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ConfirmPriceRequest"
                            }
                        },
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "$ref": "#/components/schemas/ConfirmPriceRequest"
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/ConfirmPriceRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SpamMonitoring"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/caller-reputation/spam-monitoring/disable": {
            "post": {
                "operationId": "caller_reputation_spam_monitoring_disable",
                "description": "Create or run caller reputation / spam monitoring / disable. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "caller-reputation"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SpamMonitoring"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/caller-reputation/spam-monitoring/numbers": {
            "get": {
                "operationId": "caller_reputation_spam_monitoring_numbers_list",
                "description": "Retrieve caller reputation / spam monitoring / numbers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "caller-reputation"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/MonitoredNumberList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "caller_reputation_spam_monitoring_numbers",
                "description": "Create or run caller reputation / spam monitoring / numbers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "caller-reputation"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/EnrollNumbersRequest"
                            }
                        },
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "$ref": "#/components/schemas/EnrollNumbersRequest"
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/EnrollNumbersRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/MonitoredNumberList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/caller-reputation/spam-monitoring/numbers/{number_id}": {
            "delete": {
                "operationId": "caller_reputation_spam_monitoring_numbers_delete",
                "description": "Delete caller reputation / spam monitoring / numbers. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "number_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "caller-reputation"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/caller-reputation/spam-monitoring/numbers/{number_id}/history": {
            "get": {
                "operationId": "caller_reputation_spam_monitoring_numbers_history_list",
                "description": "Retrieve caller reputation / spam monitoring / numbers / history. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "number_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "caller-reputation"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/MonitoredNumberHistory"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/caller-reputation/spam-monitoring/ownership-documents": {
            "post": {
                "operationId": "caller_reputation_spam_monitoring_ownership_documents",
                "description": "Create or run caller reputation / spam monitoring / ownership documents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "caller-reputation"
                ],
                "requestBody": {
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/OwnershipDocumentsRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SpamMonitoring"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/caller-reputation/spam-monitoring/cleanup-requests": {
            "get": {
                "operationId": "caller_reputation_spam_monitoring_cleanup_requests_list",
                "description": "Retrieve caller reputation / spam monitoring / cleanup requests. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "caller-reputation"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CleanupRequestList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "caller_reputation_spam_monitoring_cleanup_requests",
                "description": "Create or run caller reputation / spam monitoring / cleanup requests. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "caller-reputation"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CleanupRequestCreateRequest"
                            }
                        },
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "$ref": "#/components/schemas/CleanupRequestCreateRequest"
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/CleanupRequestCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CleanupRequest"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/calls/register-sip": {
            "post": {
                "operationId": "calls_register_sip_create",
                "description": "Create or run calls / register sip. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "calls"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RegisterSipCallRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RegisterSipCallResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/sip-endpoints": {
            "get": {
                "operationId": "sip_endpoints_list",
                "description": "Retrieve sip endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "sip-endpoints"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SipEndpointList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "sip_endpoints_create",
                "description": "Create or run sip endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "sip-endpoints"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SipEndpointWriteRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SipEndpoint"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/sip-endpoints/{endpoint_id}": {
            "get": {
                "operationId": "sip_endpoints_retrieve",
                "description": "Retrieve sip endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "endpoint_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "sip-endpoints"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SipEndpoint"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "sip_endpoints_partial_update",
                "description": "Update sip endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "endpoint_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "sip-endpoints"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedSipEndpointUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SipEndpoint"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "sip_endpoints_delete",
                "description": "Delete sip endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "endpoint_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "sip-endpoints"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/sip-endpoints/{endpoint_id}/rotate-password": {
            "post": {
                "operationId": "sip_endpoints_rotate_password",
                "description": "Create or run sip endpoints / rotate password. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "endpoint_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "sip-endpoints"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SipEndpoint"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/realtime/sessions": {
            "post": {
                "operationId": "realtime_sessions_create",
                "description": "Create or run realtime / sessions. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "realtime"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RealtimeSessionRequestRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RealtimeSession"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/realtime/sessions/{call_id}/live-transcripts": {
            "post": {
                "operationId": "realtime_sessions_live_transcripts",
                "description": "The bridge reports a session that turned live transcripts on mid-call. session.update can enable the option after the mint (saved-agent sessions start at connect, before any session.update). Billing is per session, so the flag only ever goes to True; turning the stream off later stops the transcriber but does not remove the surcharge.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "call_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "realtime"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/LiveTranscriptToggleRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/LiveTranscripts"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/mic-session": {
            "post": {
                "operationId": "mic_session_create",
                "description": "Create or run mic session. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "mic-session"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/MicSessionRequestRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/MicSession"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/talk-links": {
            "post": {
                "operationId": "agents_talk_links",
                "description": "Create a single-use link that opens a browser conversation with the agent's current draft.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/TalkLinkCreateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TalkLink"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/talk-links/{token}": {
            "get": {
                "operationId": "talk_links_retrieve",
                "description": "What the talk page shows before connecting: the agent's name, when the link expires, whether it was used, and whether the conversation is recorded.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "token",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "talk-links"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {}
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TalkLinkStatus"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/talk-links/{token}/session": {
            "post": {
                "operationId": "talk_links_session",
                "description": "Redeem a talk link: start a browser mic session with the agent's current draft. Works once.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "token",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "talk-links"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {}
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TalkLinkSession"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/simulations": {
            "get": {
                "operationId": "simulations_list",
                "description": "Retrieve simulations. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "simulations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/SimulationRun"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "simulations_create",
                "description": "Create or run simulations. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "simulations"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SimulationRunCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SimulationRun"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/simulations/{simulation_id}": {
            "get": {
                "operationId": "simulations_retrieve",
                "description": "GET /v1/simulations/<id>: one run, the same object the list returns. What a caller polls after POST /v1/simulations (and the MCP tool get_simulation) until the run is completed or failed, with its recording URL, transcript and grade.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "simulation_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "simulations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SimulationRun"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/simulations/batches": {
            "get": {
                "operationId": "simulations_batches_list",
                "description": "List and create test call batches. A batch spawns N staggered ``SimulationRun`` instances against the same target. Runs are created synchronously (fast) and then launched asynchronously via a background thread that sleeps ``stagger_seconds`` between each launch.",
                "tags": [
                    "simulations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/SimulationBatch"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "simulations_batches_create",
                "description": "List and create test call batches. A batch spawns N staggered ``SimulationRun`` instances against the same target. Runs are created synchronously (fast) and then launched asynchronously via a background thread that sleeps ``stagger_seconds`` between each launch.",
                "tags": [
                    "simulations"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SimulationBatchCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SimulationBatch"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/simulations/batches/{batch_id}": {
            "get": {
                "operationId": "simulations_batches_retrieve",
                "description": "Retrieve a single test call batch with its current status and run IDs.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "batch_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "simulations"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SimulationBatch"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/test-calls": {
            "get": {
                "operationId": "test_calls_list",
                "description": "Retrieve test calls. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "test-calls"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/SimulationRun"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "test_calls_create",
                "description": "Create or run test calls. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "test-calls"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SimulationRunCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SimulationRun"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/test-call-batches": {
            "get": {
                "operationId": "test_call_batches_list",
                "description": "List and create test call batches. A batch spawns N staggered ``SimulationRun`` instances against the same target. Runs are created synchronously (fast) and then launched asynchronously via a background thread that sleeps ``stagger_seconds`` between each launch.",
                "tags": [
                    "test-call-batches"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/SimulationBatch"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "test_call_batches_create",
                "description": "List and create test call batches. A batch spawns N staggered ``SimulationRun`` instances against the same target. Runs are created synchronously (fast) and then launched asynchronously via a background thread that sleeps ``stagger_seconds`` between each launch.",
                "tags": [
                    "test-call-batches"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SimulationBatchCreateRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SimulationBatch"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/test-call-batches/{batch_id}": {
            "get": {
                "operationId": "test_call_batches_retrieve",
                "description": "Retrieve a single test call batch with its current status and run IDs.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "batch_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "test-call-batches"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SimulationBatch"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/billing": {
            "get": {
                "operationId": "billing_list",
                "description": "Retrieve billing. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "billing"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/BillingAccount"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "billing_bulk_update",
                "description": "Update billing. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "billing"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedAutoReloadRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/BillingAccount"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/billing/top-up": {
            "post": {
                "operationId": "billing_top_up_create",
                "description": "Create or run billing / top up. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "billing"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/TopUpRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TopUpResponse"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/billing/transactions": {
            "get": {
                "operationId": "billing_transactions_list",
                "description": "Retrieve billing / transactions. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "billing"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/BalanceTransaction"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/billing/transactions/{transaction_id}/receipt": {
            "get": {
                "operationId": "billing_transactions_receipt_retrieve",
                "description": "Link to the payment receipt for a top-up or automatic top-up transaction.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "transaction_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "billing"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/BillingTransactionReceipt"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/billing/setup-intent": {
            "post": {
                "operationId": "billing_setup_intent_create",
                "description": "Create or run billing / setup intent. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "billing"
                ],
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SetupIntent"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/billing/default-payment-method": {
            "post": {
                "operationId": "billing_default_payment_method_create",
                "description": "Create or run billing / default payment method. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "billing"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DefaultPaymentMethodRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/BillingAccount"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/billing/payment-methods": {
            "get": {
                "operationId": "billing_payment_methods_list",
                "description": "Every saved card on the org's Stripe customer, default first.",
                "tags": [
                    "billing"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/BillingPaymentMethodList"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/billing/payment-methods/{payment_method_id}": {
            "delete": {
                "operationId": "billing_payment_methods_delete",
                "description": "Delete billing / payment methods. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "payment_method_id",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "billing"
                ],
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/onboarding": {
            "get": {
                "operationId": "onboarding_list",
                "description": "Return the current onboarding state for the authenticated org.",
                "tags": [
                    "onboarding"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OrganizationOnboarding"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/onboarding/dismiss": {
            "post": {
                "operationId": "onboarding_dismiss_create",
                "description": "Mark onboarding as dismissed for the authenticated org.",
                "tags": [
                    "onboarding"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OrganizationOnboarding"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/onboarding/undismiss": {
            "post": {
                "operationId": "onboarding_undismiss_create",
                "description": "Clear the dismissed state so onboarding re-appears.",
                "tags": [
                    "onboarding"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OrganizationOnboarding"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/onboarding/agent-talk/skip": {
            "post": {
                "operationId": "onboarding_agent_talk_skip",
                "description": "Mark the agent step complete after the user skips the talk step. Fired by the web app when the agent-builder tour is skipped; the mic \"Talk\" test is optional, so skipping it still checks off the step (as long as the org actually has an agent).",
                "tags": [
                    "onboarding"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OrganizationOnboarding"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/publishable-key": {
            "get": {
                "operationId": "publishable_key_list",
                "description": "Retrieve publishable key. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "publishable-key"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/PublishableKey"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "publishable_key_create",
                "description": "Create or run publishable key. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "publishable-key"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublishableKeyCreateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublishableKey"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/publishable-key/{key_id}": {
            "get": {
                "operationId": "publishable_key_retrieve",
                "description": "Retrieve publishable key. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "key_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "publishable-key"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublishableKey"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "publishable_key_partial_update",
                "description": "Update publishable key. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "key_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "publishable-key"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedPublishableKeyUpdateRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublishableKey"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "publishable_key_delete",
                "description": "Delete publishable key. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "key_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "publishable-key"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/publishable-key/{key_id}/transfer": {
            "post": {
                "operationId": "publishable_key_transfer",
                "description": "Transfer (copy or move) a publishable key / web widget to another org.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "key_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "publishable-key"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublishableKeyTransferRequestRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublishableKey"
                                }
                            }
                        },
                        "description": ""
                    },
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PublishableKey"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/members": {
            "get": {
                "operationId": "members_list",
                "description": "Retrieve members. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "members"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/OrgMember"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/members/{member_id}": {
            "delete": {
                "operationId": "members_delete",
                "description": "Delete members. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "member_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "members"
                ],
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/members/{member_id}/role": {
            "patch": {
                "operationId": "members_role_bulk_update",
                "description": "Update members / role. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "member_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "members"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedMemberRoleRequestRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OrgMember"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/members/{member_id}/transfer-ownership": {
            "post": {
                "operationId": "members_transfer_ownership",
                "description": "Create or run members / transfer ownership. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "member_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "members"
                ],
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DetailMessage"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/invites": {
            "get": {
                "operationId": "invites_list",
                "description": "Retrieve invites. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "invites"
                ],
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/OrgInvite"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "invites_create",
                "description": "Create or run invites. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "invites"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateInviteRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OrgInvite"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/invites/{invite_id}": {
            "delete": {
                "operationId": "invites_delete",
                "description": "Delete invites. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "invite_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "invites"
                ],
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/invites/{token}": {
            "get": {
                "operationId": "invites_retrieve",
                "description": "Retrieve invites. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "token",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "invites"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    },
                    {}
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/InviteDetail"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/invites/{token}/accept": {
            "post": {
                "operationId": "invites_accept",
                "description": "Create or run invites / accept. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "token",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "invites"
                ],
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/InviteAccepted"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/invites/{token}/decline": {
            "post": {
                "operationId": "invites_decline",
                "description": "Create or run invites / decline. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "token",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "invites"
                ],
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DetailMessage"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/invites/{token}/request-access": {
            "post": {
                "operationId": "invites_request_access",
                "description": "Create or run invites / request access. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "token",
                        "schema": {
                            "type": "string"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "invites"
                ],
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/leave": {
            "post": {
                "operationId": "leave_create",
                "description": "Create or run leave. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "leave"
                ],
                "security": [
                    {
                        "humanToken": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/variants": {
            "get": {
                "operationId": "agents_variants_list",
                "description": "GET: list variants for an agent. POST: create a new variant.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/AgentVariant"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "agents_variants",
                "description": "GET: list variants for an agent. POST: create a new variant.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AgentVariantRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentVariant"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/variants/{variant_id}": {
            "patch": {
                "operationId": "agents_variants_partial_update",
                "description": "PATCH/DELETE a single variant.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "variant_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedAgentVariantRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentVariant"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "agents_variants_delete",
                "description": "PATCH/DELETE a single variant.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "variant_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/split-testing": {
            "post": {
                "operationId": "agents_split_testing",
                "description": "POST: enable/disable split testing on an agent.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SplitTestingRequestRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SplitTesting"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/variant-stats": {
            "get": {
                "operationId": "agents_variant_stats_list",
                "description": "GET: per-variant call stats for an agent's A/B test.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/VariantStats"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/experiments": {
            "get": {
                "operationId": "agents_experiments_list",
                "description": "GET: the agent's experiments, newest first. POST: create a draft experiment.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/AgentExperiment"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "agents_experiments",
                "description": "GET: the agent's experiments, newest first. POST: create a draft experiment.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AgentExperimentRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentExperiment"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/experiments/{experiment_id}": {
            "get": {
                "operationId": "agents_experiments_retrieve",
                "description": "GET one experiment. PATCH a draft: label, call_limit, arms (the whole set).",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "experiment_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentExperiment"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "agents_experiments_partial_update",
                "description": "GET one experiment. PATCH a draft: label, call_limit, arms (the whole set).",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "experiment_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedAgentExperimentRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentExperiment"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/experiments/{experiment_id}/start": {
            "post": {
                "operationId": "agents_experiments_start",
                "description": "POST: start a draft experiment. Numbers pointed at it split their calls from the next one; point numbers at it once it runs. An arm that costs more a minute than the agent is refused (409 price_change_needs_confirmation) until the request sends confirm_price_change: true, as turning the split test on asks at deploy. Staff are not asked, as on deploy.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "experiment_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StartAgentExperimentRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentExperiment"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/experiments/{experiment_id}/stop": {
            "post": {
                "operationId": "agents_experiments_stop",
                "description": "POST: end the experiment. Numbers pointed at it answer from the next call as if they had none.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "experiment_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentExperiment"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/experiments/{experiment_id}/winner": {
            "post": {
                "operationId": "agents_experiments_winner",
                "description": "POST {arm_id}: pick the winning arm, ending the experiment, and get its changes back. It publishes nothing and moves no number: put the changes in the agent's draft and publish them, and move numbers off the experiment with PATCH /v1/phone-numbers/{id}.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "experiment_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PickAgentExperimentWinnerRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentExperimentWinner"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/agents/{agent_id}/experiments/{experiment_id}/results": {
            "get": {
                "operationId": "agents_experiments_results_list",
                "description": "GET: per-arm call stats of the experiment.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "agent_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "experiment_id",
                        "schema": {
                            "type": "integer"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "agents"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/AgentExperimentArmResult"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/knowledge/documents/import-url": {
            "post": {
                "operationId": "knowledge_documents_import_url",
                "description": "Create a knowledge document from a customer-pasted web page URL. The document is created in ``pending`` and the fetch + extraction run in the durable ingestion queue: pages are slow and flaky, so the request itself never touches the network beyond one DNS-level safety check.",
                "tags": [
                    "knowledge"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UrlDocumentRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DocumentImported"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/knowledge/documents": {
            "get": {
                "operationId": "knowledge_documents_list",
                "description": "Retrieve knowledge / documents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "knowledge"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/KnowledgeDocument"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "knowledge_documents_create",
                "description": "Create or run knowledge / documents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "knowledge"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DocumentTextRequest"
                            },
                            "examples": {
                                "Request": {
                                    "value": {
                                        "name": "Office hours",
                                        "content": "Open Monday to Friday, 9 to 5."
                                    }
                                }
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/DocumentBatchUploadRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DocumentsCreated"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "documents": [
                                                {
                                                    "id": "00000000-0000-4000-8000-000000000001",
                                                    "name": "Office hours",
                                                    "source_type": "text",
                                                    "original_filename": "",
                                                    "mime_type": "text/plain",
                                                    "byte_count": 31,
                                                    "estimated_chunk_count": 1,
                                                    "status": "pending",
                                                    "error": "",
                                                    "chunk_count": 0,
                                                    "source_origin": "upload",
                                                    "source_url": "",
                                                    "fetched_at": null,
                                                    "created_at": "2026-01-01T00:00:00Z",
                                                    "updated_at": "2026-01-01T00:00:00Z"
                                                }
                                            ],
                                            "warnings": []
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/knowledge/documents/{document_id}": {
            "get": {
                "operationId": "knowledge_documents_retrieve",
                "description": "Retrieve knowledge / documents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "document_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/KnowledgeDocumentDetail"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "knowledge_documents_partial_update",
                "description": "Update knowledge / documents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "document_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedDocumentTextRequest"
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedDocumentUploadRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/KnowledgeDocument"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "knowledge_documents_delete",
                "description": "Delete knowledge / documents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "document_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/knowledge/documents/{document_id}/retry": {
            "post": {
                "operationId": "knowledge_documents_retry",
                "description": "Create or run knowledge / documents / retry. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "document_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/KnowledgeDocument"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/knowledge/documents/{document_id}/original": {
            "get": {
                "operationId": "knowledge_documents_original_list",
                "description": "Retrieve knowledge / documents / original. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "document_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/knowledge/documents/{document_id}/replace": {
            "post": {
                "operationId": "knowledge_documents_replace",
                "description": "Create or run knowledge / documents / replace. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "document_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge"
                ],
                "requestBody": {
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/DocumentUploadRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DocumentImported"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/knowledge/documents/{document_id}/refresh": {
            "post": {
                "operationId": "knowledge_documents_refresh",
                "description": "Re-fetch a url-origin document through the durable ingestion queue.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "document_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/KnowledgeDocument"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/knowledge/search": {
            "post": {
                "operationId": "knowledge_search_create",
                "description": "Create or run knowledge / search. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "knowledge"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/KnowledgeSearchRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/KnowledgeSearchResults"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/knowledge-bases": {
            "get": {
                "operationId": "knowledge_bases_list",
                "description": "Retrieve knowledge bases. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "knowledge-bases"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/KnowledgeBase"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "knowledge_bases_create",
                "description": "Create or run knowledge bases. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "knowledge-bases"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/KnowledgeBaseRequest"
                            },
                            "examples": {
                                "Request": {
                                    "value": {
                                        "name": "Office"
                                    }
                                }
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/KnowledgeBase"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "id": "00000000-0000-4000-8000-000000000001",
                                            "name": "Office",
                                            "description": "",
                                            "document_count": 0,
                                            "created_at": "2026-01-01T00:00:00Z",
                                            "updated_at": "2026-01-01T00:00:00Z"
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/knowledge-bases/{knowledge_base_id}": {
            "get": {
                "operationId": "knowledge_bases_retrieve",
                "description": "Retrieve knowledge bases. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "knowledge_base_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge-bases"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/KnowledgeBase"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "knowledge_bases_partial_update",
                "description": "Update knowledge bases. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "knowledge_base_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge-bases"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedKnowledgeBaseRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/KnowledgeBase"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "knowledge_bases_delete",
                "description": "Delete knowledge bases. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "knowledge_base_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge-bases"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/knowledge-bases/{knowledge_base_id}/documents": {
            "get": {
                "operationId": "knowledge_bases_documents_list",
                "description": "Retrieve knowledge bases / documents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "knowledge_base_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge-bases"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/KnowledgeDocument"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "knowledge_bases_documents",
                "description": "Create or run knowledge bases / documents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "knowledge_base_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge-bases"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DocumentTextRequest"
                            },
                            "examples": {
                                "Request": {
                                    "value": {
                                        "name": "Office hours",
                                        "content": "Open Monday to Friday, 9 to 5."
                                    }
                                }
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/DocumentUploadRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/KnowledgeDocument"
                                },
                                "examples": {
                                    "Success": {
                                        "value": {
                                            "id": "00000000-0000-4000-8000-000000000001",
                                            "name": "Office hours",
                                            "source_type": "text",
                                            "original_filename": "",
                                            "mime_type": "text/plain",
                                            "byte_count": 31,
                                            "estimated_chunk_count": 1,
                                            "status": "pending",
                                            "error": "",
                                            "chunk_count": 0,
                                            "source_origin": "upload",
                                            "source_url": "",
                                            "fetched_at": null,
                                            "created_at": "2026-01-01T00:00:00Z",
                                            "updated_at": "2026-01-01T00:00:00Z"
                                        }
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/knowledge-bases/{knowledge_base_id}/documents/{document_id}": {
            "patch": {
                "operationId": "knowledge_bases_documents_partial_update",
                "description": "Update knowledge bases / documents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "document_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "knowledge_base_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge-bases"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedDocumentTextRequest"
                            }
                        },
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedDocumentUploadRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/KnowledgeDocument"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "knowledge_bases_documents_delete",
                "description": "Delete knowledge bases / documents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "document_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "knowledge_base_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge-bases"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/knowledge-bases/{knowledge_base_id}/documents/{document_id}/retry": {
            "post": {
                "operationId": "knowledge_bases_documents_retry",
                "description": "Create or run knowledge bases / documents / retry. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "document_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    },
                    {
                        "in": "path",
                        "name": "knowledge_base_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge-bases"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/KnowledgeDocument"
                                }
                            }
                        },
                        "description": ""
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "additionalProperties": false
                            }
                        }
                    }
                }
            }
        },
        "/v1/knowledge-bases/{knowledge_base_id}/search": {
            "post": {
                "operationId": "knowledge_bases_search",
                "description": "Create or run knowledge bases / search. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "knowledge_base_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "knowledge-bases"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/KnowledgeSearchRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/KnowledgeSearchResults"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/reusable-instructions": {
            "get": {
                "operationId": "reusable_instructions_list",
                "description": "Retrieve reusable instructions. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "reusable-instructions"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/ReusableInstruction"
                                    }
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "reusable_instructions_create",
                "description": "Create or run reusable instructions. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "reusable-instructions"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ReusableInstructionRequest"
                            }
                        }
                    },
                    "required": true
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "201": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ReusableInstruction"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        },
        "/v1/reusable-instructions/{instruction_id}": {
            "get": {
                "operationId": "reusable_instructions_retrieve",
                "description": "Retrieve reusable instructions. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "instruction_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "reusable-instructions"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ReusableInstruction"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "reusable_instructions_partial_update",
                "description": "Update reusable instructions. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "instruction_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "reusable-instructions"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PatchedReusableInstructionRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ReusableInstruction"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "reusable_instructions_delete",
                "description": "Delete reusable instructions. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "parameters": [
                    {
                        "in": "path",
                        "name": "instruction_id",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "required": true
                    }
                ],
                "tags": [
                    "reusable-instructions"
                ],
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "bearerAuth": []
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No response body"
                    }
                }
            }
        },
        "/v1/widget/session": {
            "post": {
                "operationId": "widget_session_create",
                "description": "Create or run widget / session. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.",
                "tags": [
                    "widget"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/WidgetSessionRequestRequest"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {}
                ],
                "responses": {
                    "200": {
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/WidgetSession"
                                }
                            }
                        },
                        "description": ""
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "AccentEnum": {
                "enum": [
                    "default",
                    "en-US",
                    "en-GB",
                    "en-IN",
                    "es-MX",
                    "en-AU",
                    "fr-CA"
                ],
                "type": "string",
                "description": "* `default` - default\n* `en-US` - en-US\n* `en-GB` - en-GB\n* `en-IN` - en-IN\n* `es-MX` - es-MX\n* `en-AU` - en-AU\n* `fr-CA` - fr-CA"
            },
            "AckPromptRequestRequest": {
                "type": "object",
                "properties": {
                    "prompt": {
                        "type": "string",
                        "default": ""
                    },
                    "target_locale": {
                        "type": "string"
                    }
                }
            },
            "AcknowledgementFeedbackModeEnum": {
                "enum": [
                    "acknowledgement",
                    "tick",
                    "none"
                ],
                "type": "string",
                "description": "* `acknowledgement` - Spoken acknowledgement\n* `tick` - Ticking sound\n* `none` - Silence"
            },
            "AcknowledgementPrompt": {
                "type": "object",
                "properties": {
                    "acknowledgement_prompt": {
                        "type": "string"
                    },
                    "provider": {
                        "type": "string"
                    },
                    "used_fallback": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "acknowledgement_prompt",
                    "provider",
                    "used_fallback"
                ]
            },
            "AcknowledgementPromptMode288Enum": {
                "enum": [
                    "auto",
                    "manual"
                ],
                "type": "string",
                "description": "* `auto` - auto\n* `manual` - manual"
            },
            "AcknowledgementPromptMode836Enum": {
                "enum": [
                    "auto",
                    "manual"
                ],
                "type": "string",
                "description": "* `auto` - Auto\n* `manual` - Manual"
            },
            "Agent": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "prompt": {
                        "type": "string"
                    },
                    "voice": {
                        "type": "string",
                        "maxLength": 100
                    },
                    "primary_language": {
                        "type": "string",
                        "description": "Primary language code (ISO 639, e.g. 'en', 'es'). Determines the default TTS provider and locale for the agent.",
                        "maxLength": 16
                    },
                    "additional_languages": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "maxLength": 16
                        }
                    },
                    "native_voice_switching": {
                        "type": "boolean"
                    },
                    "language_voices": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string",
                            "maxLength": 100
                        },
                        "description": "The voice a call uses when it starts in a given language, by language code, e.g. {\"es\": \"<voice>\"}. Used when a call names its language (a config webhook's agent_id answer, a widget or realtime session): before native voice switching's choice, and when the agent's voice does not speak that language. Each voice must speak its language."
                    },
                    "language_switching": {
                        "$ref": "#/components/schemas/LanguageSwitchingEnum"
                    },
                    "audio_tier": {
                        "$ref": "#/components/schemas/AudioTierEnum"
                    },
                    "endpointing": {
                        "$ref": "#/components/schemas/EndpointingEnum"
                    },
                    "eagerness": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/EagernessEnum"
                            }
                        ],
                        "description": "Deprecated: use endpointing (same values).\n\n* `faster` - Faster (200 ms)\n* `fast` - Fast (300 ms)\n* `normal` - Normal (500 ms)\n* `patient` - Patient (800 ms)",
                        "deprecated": true
                    },
                    "intelligence": {
                        "$ref": "#/components/schemas/IntelligenceEnum"
                    },
                    "product": {
                        "$ref": "#/components/schemas/ProductB5bEnum"
                    },
                    "billing_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/BillingModeEnum"
                            }
                        ],
                        "readOnly": true,
                        "description": "How this agent's Bolt calls are billed: metered (from each call's model, transcription and voice usage) or the per-minute rate card. Set by ThunderPhone.\n\n* `rate_card` - Rate card\n* `metered` - Metered"
                    },
                    "thinking_level": {
                        "$ref": "#/components/schemas/ThinkingLevel477Enum"
                    },
                    "background_track": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "acknowledgement_prompt_mode": {
                        "$ref": "#/components/schemas/AcknowledgementPromptMode836Enum"
                    },
                    "acknowledgement_prompt": {
                        "type": "string"
                    },
                    "acknowledgement_feedback_mode": {
                        "$ref": "#/components/schemas/AcknowledgementFeedbackModeEnum"
                    },
                    "inbound_speak_order": {
                        "$ref": "#/components/schemas/InboundSpeakOrderEnum"
                    },
                    "outbound_speak_order": {
                        "$ref": "#/components/schemas/OutboundSpeakOrderEnum"
                    },
                    "voicemail_action": {
                        "$ref": "#/components/schemas/VoicemailAction89dEnum"
                    },
                    "voicemail_message": {
                        "type": "string",
                        "description": "Voicemail TTS template. Supported variables: {agent_name}, {org_name}."
                    },
                    "silence_interval_seconds": {
                        "type": "integer",
                        "maximum": 120,
                        "minimum": 5,
                        "nullable": true
                    },
                    "silence_max_checkins": {
                        "type": "integer",
                        "maximum": 10,
                        "minimum": 1
                    },
                    "silence_checkins_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent proactively checks in and eventually hangs up during caller silence."
                    },
                    "silence_hangup_seconds": {
                        "type": "integer",
                        "maximum": 3600,
                        "minimum": 60,
                        "description": "Caller-idle seconds before a silent hangup when silence check-ins are disabled."
                    },
                    "silence_final_action": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SilenceFinalActionEnum"
                            }
                        ],
                        "description": "What the agent does after its last silence check-in: hang_up (default) or transfer to silence_transfer_destination.\n\n* `hang_up` - Hang up\n* `transfer` - Transfer"
                    },
                    "silence_transfer_destination": {
                        "type": "string",
                        "description": "Name of one of this agent's transfer_destinations, used when silence_final_action is transfer. Matched case-insensitively."
                    },
                    "silence_final_message": {
                        "type": "string",
                        "description": "What the agent says at the final action after the last silence check-in, spoken as written. Blank uses the call language's default line. At most 300 characters."
                    },
                    "max_call_duration_seconds": {
                        "type": "integer",
                        "maximum": 21600,
                        "minimum": 60,
                        "nullable": true,
                        "description": "Maximum call length in seconds. Null means no limit."
                    },
                    "ring_duration_seconds": {
                        "type": "integer",
                        "maximum": 120,
                        "minimum": 5,
                        "nullable": true,
                        "description": "Outbound and transfer ringing time in seconds. Null uses platform defaults."
                    },
                    "max_hold_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "connect_tone_enabled": {
                        "type": "boolean",
                        "description": "Whether to play a short connection tone before the agent begins the call."
                    },
                    "typing_sounds_enabled": {
                        "type": "boolean"
                    },
                    "typing_sound": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/TypingSoundD48Enum"
                            }
                        ],
                        "description": "Which typing loop plays while a custom tool runs, when typing sounds are on.\n\n* `mechanical` - Mechanical keyboard\n* `desktop` - Desktop keyboard\n* `laptop` - Laptop\n* `keys_and_mouse` - Keyboard and mouse\n* `office` - Office keyboard\n* `quiet_room` - Quiet room"
                    },
                    "filler_phrases_enabled": {
                        "type": "boolean"
                    },
                    "pronunciation_dicts": {
                        "type": "boolean",
                        "description": "Whether calls use ThunderPhone's pronunciation dictionary for Cartesia speech (ThunderPhone's own Cartesia voices only)."
                    },
                    "tool_start_line": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ToolStartLineA57Enum"
                            }
                        ],
                        "description": "What the agent says when a tool call starts. always: a line at every tool call. only_if_slow: a line only if the tool is still running after a short wait. never: nothing at tool start.\n\n* `always` - Always\n* `only_if_slow` - Only if slow\n* `never` - Never"
                    },
                    "play_sound_asset": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/PlaySoundAsset4b4Enum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            }
                        ]
                    },
                    "intro_clip": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/IntroClipEnum"
                            }
                        ],
                        "description": "Prerecorded clip played at the start of inbound calls, before the agent speaks.\n\n* `none` - Off\n* `stock_recording_notice` - Recording notice (female)\n* `stock_recording_notice_male` - Recording notice (male)\n* `custom` - Custom clip"
                    },
                    "intro_clip_artifact_path": {
                        "type": "string",
                        "readOnly": true
                    },
                    "intro_clip_sha256": {
                        "type": "string",
                        "readOnly": true
                    },
                    "intro_ring_count": {
                        "type": "integer",
                        "maximum": 2,
                        "minimum": 0,
                        "description": "US rings played after the intro clip, before the agent speaks (0-2)."
                    },
                    "speak_uninterruptible_enabled": {
                        "type": "boolean"
                    },
                    "call_recording_enabled": {
                        "type": "boolean"
                    },
                    "ai_live_processing_disclosure_override": {
                        "$ref": "#/components/schemas/AiLiveProcessingDisclosureOverrideEnum"
                    },
                    "phi_processing_override": {
                        "$ref": "#/components/schemas/PhiProcessingOverrideEnum"
                    },
                    "send_email_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent may send an email to the configured recipient during a call."
                    },
                    "send_email_recipient": {
                        "type": "string",
                        "format": "email",
                        "maxLength": 254
                    },
                    "calculator_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent gets the calculate tool for exact arithmetic during a call."
                    },
                    "do_not_call_detection_enabled": {
                        "type": "boolean",
                        "description": "On outbound calls, add the number to the organization's call opt-out list when the person asks not to be called again. Off needs the organization's do-not-call detection attestation."
                    },
                    "faster_replies_enabled": {
                        "type": "boolean",
                        "description": "Bolt v2: on replies where it helps, send two requests and use whichever answers first. Those replies use twice the model tokens."
                    },
                    "call_setup_webhook_url": {
                        "type": "string",
                        "format": "uri",
                        "description": "URL ThunderPhone asks before each inbound phone call this agent answers on one of your numbers, to fill in the agent's {{variables}} and the call's context. Blank for none. Required while the agent answers a number and uses a {{variable}} with no default (see call_setup_webhook_variables).",
                        "maxLength": 2048
                    },
                    "call_setup_webhook_signing_secret_set": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "Whether the agent has a call setup webhook signing secret. The secret itself is never returned.",
                        "default": false
                    },
                    "call_setup_webhook_variables": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "readOnly": true,
                        "description": "Variables this agent's current settings (unpublished changes included) use with no default: what its call setup webhook must fill in. Read-only."
                    },
                    "pinned_versions": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "readOnly": true,
                        "description": "The earlier versions of this agent that phone numbers are pinned to: each one's revision, the numbers that answer with it, and the variables it uses with no default (what its call setup webhook must fill in). Read-only."
                    },
                    "system_tool_settings": {
                        "description": "Explicit on/off for the end_call, send_keypad_input and wait_on_hold system tools. An absent tool follows the call: end_call on, the other two on for outbound calls only."
                    },
                    "send_sms_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent may send SMS through a customer-connected carrier number."
                    },
                    "sms_from_number": {
                        "type": "string",
                        "maxLength": 32
                    },
                    "sms_allow_other_recipients": {
                        "type": "boolean",
                        "description": "Whether the send_sms tool may text a recipient other than the current telephone party."
                    },
                    "sms_allowed_recipients": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SmsAllowedRecipient"
                        }
                    },
                    "transfer_destinations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TransferDestination"
                        }
                    },
                    "warm_transfer_style": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WarmTransferStyleEnum"
                            }
                        ],
                        "description": "What happens when a warm transfer is answered. introduce (default): the caller is connected as soon as the person answers, then the AI introduces the caller on the line, which both hear, and leaves. ask_first: the caller waits on hold while the AI privately asks the person who answers whether they can take the call; they can decline. On yes the caller is connected and the AI introduces them on the line. whisper: the caller waits on hold while the AI privately tells the person who answers who is calling and why, without asking; then the caller is connected and the AI leaves with nothing said on the line.\n\n* `introduce` - Introduce on the line\n* `ask_first` - Ask first\n* `whisper` - Whisper"
                    },
                    "warm_transfer_briefing": {
                        "type": "string",
                        "description": "What the AI should tell the person who answers a warm transfer about the caller: in the introduction on the line, or privately with ask_first and whisper, e.g. \"the caller's name and what they need\". Blank uses a very short default: who is calling and why. At most 300 characters."
                    },
                    "sms_followup_enabled": {
                        "type": "boolean"
                    },
                    "sms_followup_template": {
                        "type": "string"
                    },
                    "extraction_fields": {},
                    "extraction_blocks_completion": {
                        "$ref": "#/components/schemas/ExtractionBlocksCompletionEnum"
                    },
                    "call_summary_enabled": {
                        "type": "boolean"
                    },
                    "call_review_enabled": {
                        "type": "boolean",
                        "default": true
                    },
                    "outcome_labels": {},
                    "report_instructions": {
                        "type": "string"
                    },
                    "attention_reasons": {},
                    "summary_language": {
                        "type": "string",
                        "maxLength": 16
                    },
                    "timezone": {
                        "type": "string",
                        "maxLength": 64
                    },
                    "business_hours": {
                        "nullable": true
                    },
                    "consent_announcement_enabled": {
                        "type": "boolean"
                    },
                    "consent_announcement_text": {
                        "type": "string"
                    },
                    "disclosure_voice": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureVoiceEnum"
                            }
                        ],
                        "description": "Voice the consent announcement plays in.\n\n* `female` - Female\n* `male` - Male"
                    },
                    "disclosure_style": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureStyleEnum"
                            }
                        ],
                        "description": "Version of the consent announcement: clean (high quality) or phone (corporate style, like a classic company phone system).\n\n* `clean` - High quality\n* `phone` - Corporate style"
                    },
                    "disclosure_ring_count": {
                        "type": "integer",
                        "maximum": 2,
                        "minimum": 0,
                        "description": "US rings played after the consent announcement, before the agent speaks (0-2)."
                    },
                    "consent_disabled_reason": {
                        "type": "string",
                        "readOnly": true,
                        "description": "Platform-managed provenance for an announcement exemption. Existing agents are marked grandfathered-2026-07."
                    },
                    "audio_context_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AudioContextMode3d0Enum"
                            }
                        ],
                        "description": "Storm audio context window. 'reduced' lowers latency by using less prior audio context.\n\n* `full` - Full\n* `reduced` - Reduced"
                    },
                    "watchdog_enabled": {
                        "type": "boolean"
                    },
                    "additional_audio_context": {
                        "type": "boolean",
                        "nullable": true,
                        "description": "Override the direction-based depth of recent caller audio included in model context."
                    },
                    "integrations": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "readOnly": true
                    },
                    "knowledge_bases": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/KnowledgeBase"
                        },
                        "readOnly": true
                    },
                    "knowledge_documents": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/KnowledgeDocument"
                        },
                        "readOnly": true
                    },
                    "mcp_servers": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "readOnly": true
                    },
                    "reusable_instructions": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ReusableInstructionAttachment"
                        },
                        "readOnly": true
                    },
                    "tool_collision_warnings": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "readOnly": true
                    },
                    "warnings": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "readOnly": true
                    },
                    "total_calls": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true,
                        "description": "How many calls this agent has taken of all time, test calls and calls from or to the organization's test numbers left out. Set on the agent list (GET /v1/agents); null elsewhere. Read-only."
                    },
                    "widget_enabled": {
                        "type": "boolean"
                    },
                    "split_testing_enabled": {
                        "type": "boolean"
                    },
                    "steps": {
                        "nullable": true
                    },
                    "handoffs": {},
                    "words": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AgentWord"
                        }
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "draft_name": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "draft_prompt": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_voice": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 100
                    },
                    "draft_primary_language": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "draft_additional_languages": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "maxLength": 16
                        },
                        "readOnly": true
                    },
                    "draft_native_voice_switching": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_language_voices": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string",
                            "maxLength": 100
                        },
                        "readOnly": true,
                        "nullable": true
                    },
                    "draft_language_switching": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftLanguageSwitchingEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_audio_tier": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAudioTierEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_endpointing": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftEndpointingEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_eagerness": {
                        "nullable": true,
                        "description": "Deprecated: use draft_endpointing (same values).\n\n* `faster` - Faster (200 ms)\n* `fast` - Fast (300 ms)\n* `normal` - Normal (500 ms)\n* `patient` - Patient (800 ms)",
                        "deprecated": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftEagernessEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_intelligence": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftIntelligenceEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_product": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftProductEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_background_track": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "draft_thinking_level": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftThinkingLevelEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_acknowledgement_prompt_mode": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAcknowledgementPromptModeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_acknowledgement_prompt": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_acknowledgement_feedback_mode": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAcknowledgementFeedbackModeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_inbound_speak_order": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftInboundSpeakOrderEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_outbound_speak_order": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftOutboundSpeakOrderEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_voicemail_action": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftVoicemailActionEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_voicemail_message": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_silence_interval_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_silence_max_checkins": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_silence_checkins_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_silence_hangup_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_silence_final_action": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/SilenceFinalActionEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_silence_transfer_destination": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_silence_final_message": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_max_call_duration_seconds": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "draft_ring_duration_seconds": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "draft_max_hold_seconds": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "draft_connect_tone_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_typing_sounds_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_typing_sound": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftTypingSoundEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_filler_phrases_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_pronunciation_dicts": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_tool_start_line": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftToolStartLineEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_play_sound_asset": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftPlaySoundAssetEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_intro_clip": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftIntroClipEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_intro_clip_artifact_path": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "draft_intro_clip_sha256": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "draft_intro_ring_count": {
                        "type": "integer",
                        "maximum": 32767,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_speak_uninterruptible_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_call_recording_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_ai_live_processing_disclosure_override": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAiLiveProcessingDisclosureOverrideEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_phi_processing_override": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftPhiProcessingOverrideEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_send_email_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_send_email_recipient": {
                        "type": "string",
                        "format": "email",
                        "nullable": true,
                        "maxLength": 254
                    },
                    "draft_calculator_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_do_not_call_detection_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_faster_replies_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_call_setup_webhook_url": {
                        "type": "string",
                        "format": "uri",
                        "nullable": true,
                        "maxLength": 2048
                    },
                    "draft_system_tool_settings": {
                        "nullable": true
                    },
                    "draft_send_sms_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_sms_from_number": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 32
                    },
                    "draft_sms_allow_other_recipients": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_sms_allowed_recipients": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SmsAllowedRecipient"
                        },
                        "nullable": true
                    },
                    "draft_transfer_destinations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TransferDestination"
                        },
                        "nullable": true
                    },
                    "draft_warm_transfer_style": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftWarmTransferStyleEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_warm_transfer_briefing": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_sms_followup_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_sms_followup_template": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_extraction_fields": {
                        "nullable": true
                    },
                    "draft_extraction_blocks_completion": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftExtractionBlocksCompletionEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_call_summary_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_call_review_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_outcome_labels": {
                        "nullable": true
                    },
                    "draft_report_instructions": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_attention_reasons": {
                        "nullable": true
                    },
                    "draft_summary_language": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "draft_timezone": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 64
                    },
                    "draft_business_hours": {
                        "nullable": true
                    },
                    "draft_consent_announcement_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_consent_announcement_text": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_disclosure_voice": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureVoiceEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_disclosure_style": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureStyleEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_disclosure_ring_count": {
                        "type": "integer",
                        "maximum": 32767,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_audio_context_mode": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAudioContextModeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_watchdog_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_additional_audio_context": {
                        "oneOf": [
                            {
                                "type": "boolean"
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "__inherit__": {
                                        "type": "boolean",
                                        "enum": [
                                            true
                                        ]
                                    }
                                },
                                "required": [
                                    "__inherit__"
                                ]
                            }
                        ],
                        "nullable": true,
                        "description": "Staged additional_audio_context: true or false, or null when nothing is staged. Responses carry {\"__inherit__\": true} for a staged change back to automatic (null)."
                    },
                    "draft_widget_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_split_testing_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_integration_ids": {
                        "nullable": true
                    },
                    "draft_knowledge_base_ids": {
                        "nullable": true
                    },
                    "draft_knowledge_document_ids": {
                        "nullable": true
                    },
                    "draft_mcp_server_ids": {
                        "nullable": true
                    },
                    "draft_reusable_instruction_ids": {
                        "nullable": true
                    },
                    "draft_steps": {
                        "readOnly": true,
                        "nullable": true
                    },
                    "draft_handoffs": {
                        "readOnly": true,
                        "nullable": true
                    },
                    "draft_words": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AgentWord"
                        },
                        "readOnly": true,
                        "nullable": true
                    },
                    "draft_updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "has_draft": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "pinned_fields": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "readOnly": true,
                        "description": "Settings the dashboard assistant won't change, by field name: when each was pinned, whether by ThunderPhone staff (staff) or by you (is_you). Read-only; people pin and unpin them in the dashboard. API writes are not affected."
                    },
                    "deep_hearing_available": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "Whether this agent can use Max hearing (audio_tier max; not available for every organization)."
                    },
                    "premium_surcharge_lock_cents": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "effective_phone_consent_announcement": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "Whether this agent's phone calls, inbound and outbound, play the consent announcement, as decided when each call starts. It can be true while consent_announcement_enabled is false: the announcement comes back when the consent attestation that turned it off is suspended, revoked or for a statement version that is no longer accepted. False while call recording is off. Read-only."
                    },
                    "effective_phi_mode": {
                        "type": "string",
                        "readOnly": true,
                        "description": "Whether calls with this agent's current settings (its draft, when it has one) are handled as processing protected health information: \"phi\" or \"no_phi\". ElevenLabs voices can't be used while it is \"phi\". Read-only."
                    },
                    "billing_overrides": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AgentBillingOverrides"
                            }
                        ],
                        "readOnly": true,
                        "description": "Which billing overrides ThunderPhone has set on this agent (a discount, a price lock), as true or false. Read-only."
                    }
                },
                "required": [
                    "consent_disabled_reason",
                    "created_at",
                    "draft_additional_languages",
                    "draft_handoffs",
                    "draft_intro_clip_artifact_path",
                    "draft_intro_clip_sha256",
                    "draft_language_voices",
                    "draft_max_call_duration_seconds",
                    "draft_max_hold_seconds",
                    "draft_ring_duration_seconds",
                    "draft_steps",
                    "draft_updated_at",
                    "draft_words",
                    "has_draft",
                    "id",
                    "integrations",
                    "intro_clip_artifact_path",
                    "intro_clip_sha256",
                    "knowledge_bases",
                    "knowledge_documents",
                    "mcp_servers",
                    "name",
                    "pinned_fields",
                    "prompt",
                    "reusable_instructions",
                    "tool_collision_warnings",
                    "total_calls",
                    "updated_at",
                    "voice",
                    "warnings"
                ]
            },
            "AgentBillingOverrides": {
                "type": "object",
                "description": "Billing overrides ThunderPhone has set on an agent, as true or false.",
                "properties": {
                    "discount": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "A per-minute discount ThunderPhone has set applies to this agent's calls as it is deployed, today or from a scheduled later date before the discount ends."
                    },
                    "price_lock": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "This agent keeps the per-minute price it had before the current price (a price lock)."
                    }
                },
                "required": [
                    "discount",
                    "price_lock"
                ]
            },
            "AgentDeployConflict": {
                "type": "object",
                "description": "409 from a deploy or a deploying restore: a price rise not confirmed (code\nprice_change_needs_confirmation, with price_change), a stale if_updated_at or\nexpected revision (conflict), or other people's undeployed drafts (conflict.reason\nunpublished_drafts).",
                "properties": {
                    "detail": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string",
                        "description": "price_change_needs_confirmation when the deploy raises the price."
                    },
                    "next_step": {
                        "type": "string"
                    },
                    "price_change": {
                        "$ref": "#/components/schemas/PriceChange"
                    },
                    "conflict": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Who changed the agent and what, or reason unpublished_drafts."
                    }
                },
                "required": [
                    "detail"
                ]
            },
            "AgentExperiment": {
                "type": "object",
                "description": "An experiment: a weighted split over some of the agent's variants and\nthe control, run on the numbers pointed at it (inbound_experiment_id).\n\nEditable only while a draft. ``arms`` replaces the whole set when sent.",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "agent_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "label": {
                        "type": "string",
                        "maxLength": 100
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AgentExperimentStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "arms": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AgentExperimentArm"
                        }
                    },
                    "call_limit": {
                        "type": "integer",
                        "minimum": 1,
                        "nullable": true,
                        "description": "Optional: the experiment ends by itself after this many calls went through it."
                    },
                    "calls_seen": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "started_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "ended_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "ended_reason": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "winner_arm_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "number_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        },
                        "readOnly": true,
                        "description": "The phone numbers pointed at this experiment."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "agent_id",
                    "arms",
                    "calls_seen",
                    "created_at",
                    "ended_at",
                    "ended_reason",
                    "id",
                    "label",
                    "number_ids",
                    "started_at",
                    "status",
                    "updated_at",
                    "winner_arm_id"
                ]
            },
            "AgentExperimentArm": {
                "type": "object",
                "description": "One arm: a variant of the experiment's agent, or the control (variant_id null).",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "variant_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "A variant of the agent (GET /v1/agents/{id}/variants), or null for the control: the agent with no changes."
                    },
                    "label": {
                        "type": "string",
                        "readOnly": true,
                        "description": "The variant's label, or Control."
                    },
                    "is_control": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "weight": {
                        "type": "integer",
                        "maximum": 100,
                        "minimum": 0,
                        "description": "This arm's share of the experiment's calls, relative to the other arms."
                    }
                },
                "required": [
                    "id",
                    "is_control",
                    "label",
                    "variant_id",
                    "weight"
                ]
            },
            "AgentExperimentArmRequest": {
                "type": "object",
                "description": "One arm: a variant of the experiment's agent, or the control (variant_id null).",
                "properties": {
                    "variant_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "A variant of the agent (GET /v1/agents/{id}/variants), or null for the control: the agent with no changes."
                    },
                    "weight": {
                        "type": "integer",
                        "maximum": 100,
                        "minimum": 0,
                        "description": "This arm's share of the experiment's calls, relative to the other arms."
                    }
                },
                "required": [
                    "variant_id",
                    "weight"
                ]
            },
            "AgentExperimentArmResult": {
                "type": "object",
                "properties": {
                    "arm_id": {
                        "type": "integer"
                    },
                    "variant_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "Null for the control."
                    },
                    "label": {
                        "type": "string"
                    },
                    "is_control": {
                        "type": "boolean"
                    },
                    "weight": {
                        "type": "integer"
                    },
                    "calls": {
                        "type": "integer",
                        "description": "Real calls (not tests or simulations) that took this arm."
                    },
                    "success_rate": {
                        "type": "number",
                        "format": "double",
                        "nullable": true,
                        "description": "Percent of graded completed calls graded a success; null until one is graded."
                    },
                    "avg_duration_seconds": {
                        "type": "integer",
                        "nullable": true,
                        "description": "Mean length of completed calls."
                    }
                },
                "required": [
                    "arm_id",
                    "avg_duration_seconds",
                    "calls",
                    "is_control",
                    "label",
                    "success_rate",
                    "variant_id",
                    "weight"
                ]
            },
            "AgentExperimentRequest": {
                "type": "object",
                "description": "An experiment: a weighted split over some of the agent's variants and\nthe control, run on the numbers pointed at it (inbound_experiment_id).\n\nEditable only while a draft. ``arms`` replaces the whole set when sent.",
                "properties": {
                    "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                    },
                    "arms": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AgentExperimentArmRequest"
                        }
                    },
                    "call_limit": {
                        "type": "integer",
                        "minimum": 1,
                        "nullable": true,
                        "description": "Optional: the experiment ends by itself after this many calls went through it."
                    }
                },
                "required": [
                    "arms",
                    "label"
                ]
            },
            "AgentExperimentStatusEnum": {
                "enum": [
                    "draft",
                    "running",
                    "ended"
                ],
                "type": "string",
                "description": "* `draft` - Draft\n* `running` - Running\n* `ended` - Ended"
            },
            "AgentExperimentWinner": {
                "type": "object",
                "properties": {
                    "experiment": {
                        "$ref": "#/components/schemas/AgentExperiment"
                    },
                    "winner": {
                        "$ref": "#/components/schemas/AgentExperimentWinnerArm"
                    }
                },
                "required": [
                    "experiment",
                    "winner"
                ]
            },
            "AgentExperimentWinnerArm": {
                "type": "object",
                "properties": {
                    "arm_id": {
                        "type": "integer"
                    },
                    "variant_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "Null for the control."
                    },
                    "label": {
                        "type": "string"
                    },
                    "is_control": {
                        "type": "boolean"
                    },
                    "changes": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "What the winning arm changes about the agent: the variant's overrides, flow_note and language that are set. Empty for the control. Nothing is published: put these in the agent's draft to keep them."
                    }
                },
                "required": [
                    "arm_id",
                    "changes",
                    "is_control",
                    "label",
                    "variant_id"
                ]
            },
            "AgentImport": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Source1ecEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "auth_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AuthModeF69Enum"
                            }
                        ],
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Status365Enum"
                            }
                        ],
                        "readOnly": true
                    },
                    "account_label": {
                        "type": "string",
                        "readOnly": true
                    },
                    "progress": {
                        "type": "object",
                        "additionalProperties": true,
                        "readOnly": true
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AgentImportItem"
                        },
                        "readOnly": true
                    },
                    "report": {
                        "type": "object",
                        "additionalProperties": true,
                        "readOnly": true
                    },
                    "result": {
                        "readOnly": true
                    },
                    "error_code": {
                        "type": "string",
                        "readOnly": true
                    },
                    "error": {
                        "type": "string",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "completed_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    }
                },
                "required": [
                    "account_label",
                    "auth_mode",
                    "completed_at",
                    "created_at",
                    "error",
                    "error_code",
                    "id",
                    "items",
                    "progress",
                    "report",
                    "result",
                    "source",
                    "status",
                    "updated_at"
                ]
            },
            "AgentImportConnectionSecretRequest": {
                "type": "object",
                "properties": {
                    "connection": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "header_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 16
                    },
                    "header_name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "value": {
                        "type": "string",
                        "writeOnly": true,
                        "maxLength": 4096
                    },
                    "external_account_handle": {
                        "type": "string",
                        "writeOnly": true,
                        "minLength": 1,
                        "maxLength": 64
                    }
                },
                "required": [
                    "connection",
                    "header_id"
                ]
            },
            "AgentImportCreateAuthModeEnum": {
                "enum": [
                    "api_key",
                    "paste"
                ],
                "type": "string",
                "description": "* `api_key` - api_key\n* `paste` - paste"
            },
            "AgentImportCreateRequest": {
                "type": "object",
                "properties": {
                    "source": {
                        "$ref": "#/components/schemas/AgentImportCreateSourceEnum"
                    },
                    "auth_mode": {
                        "$ref": "#/components/schemas/AgentImportCreateAuthModeEnum"
                    },
                    "api_key": {
                        "type": "string",
                        "writeOnly": true
                    },
                    "payload": {
                        "type": "string",
                        "writeOnly": true,
                        "maxLength": 2000000
                    },
                    "external_account_handle": {
                        "type": "string",
                        "writeOnly": true,
                        "minLength": 1,
                        "maxLength": 64
                    }
                },
                "required": [
                    "auth_mode",
                    "source"
                ]
            },
            "AgentImportCreateSourceEnum": {
                "enum": [
                    "vapi",
                    "retell",
                    "elevenlabs",
                    "bland"
                ],
                "type": "string",
                "description": "* `vapi` - vapi\n* `retell` - retell\n* `elevenlabs` - elevenlabs\n* `bland` - bland"
            },
            "AgentImportItem": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "source_id": {
                        "type": "string",
                        "readOnly": true
                    },
                    "source_name": {
                        "type": "string",
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AgentImportItemStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "selected": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "mapped": {
                        "readOnly": true
                    },
                    "warnings": {
                        "readOnly": true
                    },
                    "created_agent_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "error": {
                        "type": "string",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "created_agent_id",
                    "error",
                    "id",
                    "mapped",
                    "selected",
                    "source_id",
                    "source_name",
                    "status",
                    "updated_at",
                    "warnings"
                ]
            },
            "AgentImportItemStatusEnum": {
                "enum": [
                    "planned",
                    "skipped",
                    "created",
                    "failed"
                ],
                "type": "string",
                "description": "* `planned` - Planned\n* `skipped` - Skipped\n* `created` - Created\n* `failed` - Failed"
            },
            "AgentImportMovedNumber": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "number": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "voip_verification_status": {
                        "type": "string"
                    },
                    "inbound_agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "voip_connection_id": {
                        "type": "integer",
                        "nullable": true
                    }
                },
                "required": [
                    "id",
                    "inbound_agent_id",
                    "number",
                    "status",
                    "voip_connection_id",
                    "voip_verification_status"
                ]
            },
            "AgentImportNumberMoveRequest": {
                "type": "object",
                "properties": {
                    "number": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                    },
                    "agent_id": {
                        "type": "integer"
                    },
                    "connection_id": {
                        "type": "integer",
                        "nullable": true
                    }
                },
                "required": [
                    "agent_id",
                    "number"
                ]
            },
            "AgentImportNumberMoveResult": {
                "type": "object",
                "properties": {
                    "imported": {
                        "type": "boolean"
                    },
                    "needs_verification": {
                        "type": "boolean"
                    },
                    "phone_number": {
                        "$ref": "#/components/schemas/AgentImportMovedNumber"
                    }
                },
                "required": [
                    "imported",
                    "needs_verification",
                    "phone_number"
                ]
            },
            "AgentImportSummary": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Source1ecEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "auth_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AuthModeF69Enum"
                            }
                        ],
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Status365Enum"
                            }
                        ],
                        "readOnly": true
                    },
                    "account_label": {
                        "type": "string",
                        "readOnly": true
                    },
                    "item_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "completed_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    }
                },
                "required": [
                    "account_label",
                    "auth_mode",
                    "completed_at",
                    "created_at",
                    "id",
                    "item_count",
                    "source",
                    "status"
                ]
            },
            "AgentIntegration": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "display_name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "spec": {},
                    "endpoint": {
                        "nullable": true
                    },
                    "wizard_input": {
                        "type": "string"
                    },
                    "validation_status": {
                        "$ref": "#/components/schemas/ValidationStatusC53Enum"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "created_at",
                    "display_name",
                    "id",
                    "spec",
                    "updated_at"
                ]
            },
            "AgentIntegrationRequest": {
                "type": "object",
                "properties": {
                    "display_name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "spec": {},
                    "endpoint": {
                        "nullable": true
                    },
                    "wizard_input": {
                        "type": "string"
                    },
                    "validation_status": {
                        "$ref": "#/components/schemas/ValidationStatusC53Enum"
                    }
                },
                "required": [
                    "display_name",
                    "spec"
                ]
            },
            "AgentPromptRevision": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "agent_id": {
                        "type": "integer"
                    },
                    "sha256": {
                        "type": "string"
                    },
                    "source": {
                        "type": "string",
                        "description": "draft, deploy, variant, import, backfill or candidate."
                    },
                    "actor": {
                        "type": "string",
                        "description": "The surface that wrote it: dashboard, zeus, zeus_chat, api, mcp, copilot, replay, or blank."
                    },
                    "author_name": {
                        "type": "string",
                        "nullable": true
                    },
                    "author_staff": {
                        "type": "boolean"
                    },
                    "parent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "variant_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "config_version_revision": {
                        "type": "integer",
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "text_length": {
                        "type": "integer"
                    },
                    "rule_inventory": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "diff": {
                        "type": "string",
                        "description": "Unified diff against the revision it replaced."
                    },
                    "text": {
                        "type": "string",
                        "description": "The full prompt text; on the single-revision endpoint only."
                    }
                },
                "required": [
                    "actor",
                    "agent_id",
                    "author_name",
                    "author_staff",
                    "config_version_revision",
                    "created_at",
                    "diff",
                    "id",
                    "parent_id",
                    "rule_inventory",
                    "sha256",
                    "source",
                    "text_length",
                    "variant_id"
                ]
            },
            "AgentPromptRevisionPage": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "limit": {
                        "type": "integer"
                    },
                    "offset": {
                        "type": "integer"
                    },
                    "next_offset": {
                        "type": "integer",
                        "nullable": true
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AgentPromptRevision"
                        }
                    }
                },
                "required": [
                    "count",
                    "limit",
                    "next_offset",
                    "offset",
                    "results"
                ]
            },
            "AgentProviderOperationsRequest": {
                "type": "object",
                "properties": {
                    "allowed_operations": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "boolean"
                        },
                        "nullable": true
                    },
                    "raise_ceiling": {
                        "type": "boolean",
                        "default": false
                    }
                }
            },
            "AgentRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "prompt": {
                        "type": "string",
                        "minLength": 1
                    },
                    "voice": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                    },
                    "primary_language": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Primary language code (ISO 639, e.g. 'en', 'es'). Determines the default TTS provider and locale for the agent.",
                        "maxLength": 16
                    },
                    "additional_languages": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 16
                        }
                    },
                    "native_voice_switching": {
                        "type": "boolean"
                    },
                    "language_voices": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                        },
                        "description": "The voice a call uses when it starts in a given language, by language code, e.g. {\"es\": \"<voice>\"}. Used when a call names its language (a config webhook's agent_id answer, a widget or realtime session): before native voice switching's choice, and when the agent's voice does not speak that language. Each voice must speak its language."
                    },
                    "language_switching": {
                        "$ref": "#/components/schemas/LanguageSwitchingEnum"
                    },
                    "audio_tier": {
                        "$ref": "#/components/schemas/AudioTierEnum"
                    },
                    "endpointing": {
                        "$ref": "#/components/schemas/EndpointingEnum"
                    },
                    "eagerness": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/EagernessEnum"
                            }
                        ],
                        "description": "Deprecated: use endpointing (same values).\n\n* `faster` - Faster (200 ms)\n* `fast` - Fast (300 ms)\n* `normal` - Normal (500 ms)\n* `patient` - Patient (800 ms)",
                        "deprecated": true
                    },
                    "intelligence": {
                        "$ref": "#/components/schemas/IntelligenceEnum"
                    },
                    "product": {
                        "$ref": "#/components/schemas/ProductB5bEnum"
                    },
                    "thinking_level": {
                        "$ref": "#/components/schemas/ThinkingLevel477Enum"
                    },
                    "background_track": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "acknowledgement_prompt_mode": {
                        "$ref": "#/components/schemas/AcknowledgementPromptMode836Enum"
                    },
                    "acknowledgement_prompt": {
                        "type": "string"
                    },
                    "acknowledgement_feedback_mode": {
                        "$ref": "#/components/schemas/AcknowledgementFeedbackModeEnum"
                    },
                    "inbound_speak_order": {
                        "$ref": "#/components/schemas/InboundSpeakOrderEnum"
                    },
                    "outbound_speak_order": {
                        "$ref": "#/components/schemas/OutboundSpeakOrderEnum"
                    },
                    "voicemail_action": {
                        "$ref": "#/components/schemas/VoicemailAction89dEnum"
                    },
                    "voicemail_message": {
                        "type": "string",
                        "description": "Voicemail TTS template. Supported variables: {agent_name}, {org_name}."
                    },
                    "silence_interval_seconds": {
                        "type": "integer",
                        "maximum": 120,
                        "minimum": 5,
                        "nullable": true
                    },
                    "silence_max_checkins": {
                        "type": "integer",
                        "maximum": 10,
                        "minimum": 1
                    },
                    "silence_checkins_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent proactively checks in and eventually hangs up during caller silence."
                    },
                    "silence_hangup_seconds": {
                        "type": "integer",
                        "maximum": 3600,
                        "minimum": 60,
                        "description": "Caller-idle seconds before a silent hangup when silence check-ins are disabled."
                    },
                    "silence_final_action": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SilenceFinalActionEnum"
                            }
                        ],
                        "description": "What the agent does after its last silence check-in: hang_up (default) or transfer to silence_transfer_destination.\n\n* `hang_up` - Hang up\n* `transfer` - Transfer"
                    },
                    "silence_transfer_destination": {
                        "type": "string",
                        "description": "Name of one of this agent's transfer_destinations, used when silence_final_action is transfer. Matched case-insensitively."
                    },
                    "silence_final_message": {
                        "type": "string",
                        "description": "What the agent says at the final action after the last silence check-in, spoken as written. Blank uses the call language's default line. At most 300 characters."
                    },
                    "max_call_duration_seconds": {
                        "type": "integer",
                        "maximum": 21600,
                        "minimum": 60,
                        "nullable": true,
                        "description": "Maximum call length in seconds. Null means no limit."
                    },
                    "ring_duration_seconds": {
                        "type": "integer",
                        "maximum": 120,
                        "minimum": 5,
                        "nullable": true,
                        "description": "Outbound and transfer ringing time in seconds. Null uses platform defaults."
                    },
                    "max_hold_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "connect_tone_enabled": {
                        "type": "boolean",
                        "description": "Whether to play a short connection tone before the agent begins the call."
                    },
                    "typing_sounds_enabled": {
                        "type": "boolean"
                    },
                    "typing_sound": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/TypingSoundD48Enum"
                            }
                        ],
                        "description": "Which typing loop plays while a custom tool runs, when typing sounds are on.\n\n* `mechanical` - Mechanical keyboard\n* `desktop` - Desktop keyboard\n* `laptop` - Laptop\n* `keys_and_mouse` - Keyboard and mouse\n* `office` - Office keyboard\n* `quiet_room` - Quiet room"
                    },
                    "filler_phrases_enabled": {
                        "type": "boolean"
                    },
                    "pronunciation_dicts": {
                        "type": "boolean",
                        "description": "Whether calls use ThunderPhone's pronunciation dictionary for Cartesia speech (ThunderPhone's own Cartesia voices only)."
                    },
                    "tool_start_line": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ToolStartLineA57Enum"
                            }
                        ],
                        "description": "What the agent says when a tool call starts. always: a line at every tool call. only_if_slow: a line only if the tool is still running after a short wait. never: nothing at tool start.\n\n* `always` - Always\n* `only_if_slow` - Only if slow\n* `never` - Never"
                    },
                    "play_sound_asset": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/PlaySoundAsset4b4Enum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            }
                        ]
                    },
                    "intro_clip": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/IntroClipEnum"
                            }
                        ],
                        "description": "Prerecorded clip played at the start of inbound calls, before the agent speaks.\n\n* `none` - Off\n* `stock_recording_notice` - Recording notice (female)\n* `stock_recording_notice_male` - Recording notice (male)\n* `custom` - Custom clip"
                    },
                    "intro_ring_count": {
                        "type": "integer",
                        "maximum": 2,
                        "minimum": 0,
                        "description": "US rings played after the intro clip, before the agent speaks (0-2)."
                    },
                    "speak_uninterruptible_enabled": {
                        "type": "boolean"
                    },
                    "call_recording_enabled": {
                        "type": "boolean"
                    },
                    "ai_live_processing_disclosure_override": {
                        "$ref": "#/components/schemas/AiLiveProcessingDisclosureOverrideEnum"
                    },
                    "phi_processing_override": {
                        "$ref": "#/components/schemas/PhiProcessingOverrideEnum"
                    },
                    "send_email_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent may send an email to the configured recipient during a call."
                    },
                    "send_email_recipient": {
                        "type": "string",
                        "format": "email",
                        "maxLength": 254
                    },
                    "calculator_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent gets the calculate tool for exact arithmetic during a call."
                    },
                    "do_not_call_detection_enabled": {
                        "type": "boolean",
                        "description": "On outbound calls, add the number to the organization's call opt-out list when the person asks not to be called again. Off needs the organization's do-not-call detection attestation."
                    },
                    "faster_replies_enabled": {
                        "type": "boolean",
                        "description": "Bolt v2: on replies where it helps, send two requests and use whichever answers first. Those replies use twice the model tokens."
                    },
                    "call_setup_webhook_url": {
                        "type": "string",
                        "format": "uri",
                        "description": "URL ThunderPhone asks before each inbound phone call this agent answers on one of your numbers, to fill in the agent's {{variables}} and the call's context. Blank for none. Required while the agent answers a number and uses a {{variable}} with no default (see call_setup_webhook_variables).",
                        "maxLength": 2048
                    },
                    "call_setup_webhook_signing_secret": {
                        "type": "string",
                        "writeOnly": true,
                        "minLength": 16,
                        "description": "Secret that signs each call setup webhook request (X-ThunderPhone-Signature, the hex HMAC-SHA256 of the body). Write-only: it is never returned. Set one your endpoint checks; until you do, requests are signed with one ThunderPhone made, which nobody can read.",
                        "maxLength": 255
                    },
                    "system_tool_settings": {
                        "description": "Explicit on/off for the end_call, send_keypad_input and wait_on_hold system tools. An absent tool follows the call: end_call on, the other two on for outbound calls only."
                    },
                    "send_sms_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent may send SMS through a customer-connected carrier number."
                    },
                    "sms_from_number": {
                        "type": "string",
                        "maxLength": 32
                    },
                    "sms_allow_other_recipients": {
                        "type": "boolean",
                        "description": "Whether the send_sms tool may text a recipient other than the current telephone party."
                    },
                    "sms_allowed_recipients": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SmsAllowedRecipientRequest"
                        }
                    },
                    "transfer_destinations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TransferDestinationRequest"
                        }
                    },
                    "warm_transfer_style": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WarmTransferStyleEnum"
                            }
                        ],
                        "description": "What happens when a warm transfer is answered. introduce (default): the caller is connected as soon as the person answers, then the AI introduces the caller on the line, which both hear, and leaves. ask_first: the caller waits on hold while the AI privately asks the person who answers whether they can take the call; they can decline. On yes the caller is connected and the AI introduces them on the line. whisper: the caller waits on hold while the AI privately tells the person who answers who is calling and why, without asking; then the caller is connected and the AI leaves with nothing said on the line.\n\n* `introduce` - Introduce on the line\n* `ask_first` - Ask first\n* `whisper` - Whisper"
                    },
                    "warm_transfer_briefing": {
                        "type": "string",
                        "description": "What the AI should tell the person who answers a warm transfer about the caller: in the introduction on the line, or privately with ask_first and whisper, e.g. \"the caller's name and what they need\". Blank uses a very short default: who is calling and why. At most 300 characters."
                    },
                    "sms_followup_enabled": {
                        "type": "boolean"
                    },
                    "sms_followup_template": {
                        "type": "string"
                    },
                    "extraction_fields": {},
                    "extraction_blocks_completion": {
                        "$ref": "#/components/schemas/ExtractionBlocksCompletionEnum"
                    },
                    "call_summary_enabled": {
                        "type": "boolean"
                    },
                    "call_review_enabled": {
                        "type": "boolean"
                    },
                    "outcome_labels": {},
                    "report_instructions": {
                        "type": "string"
                    },
                    "attention_reasons": {},
                    "summary_language": {
                        "type": "string",
                        "maxLength": 16
                    },
                    "timezone": {
                        "type": "string",
                        "maxLength": 64
                    },
                    "business_hours": {
                        "nullable": true
                    },
                    "consent_announcement_enabled": {
                        "type": "boolean"
                    },
                    "consent_announcement_text": {
                        "type": "string",
                        "minLength": 1
                    },
                    "disclosure_voice": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureVoiceEnum"
                            }
                        ],
                        "description": "Voice the consent announcement plays in.\n\n* `female` - Female\n* `male` - Male"
                    },
                    "disclosure_style": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureStyleEnum"
                            }
                        ],
                        "description": "Version of the consent announcement: clean (high quality) or phone (corporate style, like a classic company phone system).\n\n* `clean` - High quality\n* `phone` - Corporate style"
                    },
                    "disclosure_ring_count": {
                        "type": "integer",
                        "maximum": 2,
                        "minimum": 0,
                        "description": "US rings played after the consent announcement, before the agent speaks (0-2)."
                    },
                    "audio_context_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AudioContextMode3d0Enum"
                            }
                        ],
                        "description": "Storm audio context window. 'reduced' lowers latency by using less prior audio context.\n\n* `full` - Full\n* `reduced` - Reduced"
                    },
                    "watchdog_enabled": {
                        "type": "boolean"
                    },
                    "additional_audio_context": {
                        "type": "boolean",
                        "nullable": true,
                        "description": "Override the direction-based depth of recent caller audio included in model context."
                    },
                    "widget_enabled": {
                        "type": "boolean"
                    },
                    "split_testing_enabled": {
                        "type": "boolean"
                    },
                    "steps": {
                        "nullable": true
                    },
                    "handoffs": {},
                    "words": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AgentWordRequest"
                        }
                    },
                    "draft_name": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "draft_prompt": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_voice": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 100
                    },
                    "draft_primary_language": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "draft_native_voice_switching": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_language_switching": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftLanguageSwitchingEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_audio_tier": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAudioTierEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_endpointing": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftEndpointingEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_eagerness": {
                        "nullable": true,
                        "description": "Deprecated: use draft_endpointing (same values).\n\n* `faster` - Faster (200 ms)\n* `fast` - Fast (300 ms)\n* `normal` - Normal (500 ms)\n* `patient` - Patient (800 ms)",
                        "deprecated": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftEagernessEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_intelligence": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftIntelligenceEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_product": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftProductEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_background_track": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "draft_thinking_level": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftThinkingLevelEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_acknowledgement_prompt_mode": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAcknowledgementPromptModeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_acknowledgement_prompt": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_acknowledgement_feedback_mode": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAcknowledgementFeedbackModeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_inbound_speak_order": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftInboundSpeakOrderEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_outbound_speak_order": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftOutboundSpeakOrderEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_voicemail_action": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftVoicemailActionEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_voicemail_message": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_silence_interval_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_silence_max_checkins": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_silence_checkins_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_silence_hangup_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_silence_final_action": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/SilenceFinalActionEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_silence_transfer_destination": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_silence_final_message": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_connect_tone_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_typing_sounds_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_typing_sound": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftTypingSoundEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_filler_phrases_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_pronunciation_dicts": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_tool_start_line": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftToolStartLineEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_play_sound_asset": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftPlaySoundAssetEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_intro_clip": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftIntroClipEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_intro_ring_count": {
                        "type": "integer",
                        "maximum": 32767,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_speak_uninterruptible_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_call_recording_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_ai_live_processing_disclosure_override": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAiLiveProcessingDisclosureOverrideEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_phi_processing_override": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftPhiProcessingOverrideEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_send_email_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_send_email_recipient": {
                        "type": "string",
                        "format": "email",
                        "nullable": true,
                        "maxLength": 254
                    },
                    "draft_calculator_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_do_not_call_detection_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_faster_replies_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_call_setup_webhook_url": {
                        "type": "string",
                        "format": "uri",
                        "nullable": true,
                        "maxLength": 2048
                    },
                    "draft_system_tool_settings": {
                        "nullable": true
                    },
                    "draft_send_sms_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_sms_from_number": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 32
                    },
                    "draft_sms_allow_other_recipients": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_sms_allowed_recipients": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SmsAllowedRecipientRequest"
                        },
                        "nullable": true
                    },
                    "draft_transfer_destinations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TransferDestinationRequest"
                        },
                        "nullable": true
                    },
                    "draft_warm_transfer_style": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftWarmTransferStyleEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_warm_transfer_briefing": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_sms_followup_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_sms_followup_template": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_extraction_fields": {
                        "nullable": true
                    },
                    "draft_extraction_blocks_completion": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftExtractionBlocksCompletionEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_call_summary_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_call_review_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_outcome_labels": {
                        "nullable": true
                    },
                    "draft_report_instructions": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_attention_reasons": {
                        "nullable": true
                    },
                    "draft_summary_language": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "draft_timezone": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 64
                    },
                    "draft_business_hours": {
                        "nullable": true
                    },
                    "draft_consent_announcement_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_consent_announcement_text": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_disclosure_voice": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureVoiceEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_disclosure_style": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureStyleEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_disclosure_ring_count": {
                        "type": "integer",
                        "maximum": 32767,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_audio_context_mode": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAudioContextModeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_watchdog_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_additional_audio_context": {
                        "type": "boolean",
                        "nullable": true,
                        "description": "Staged additional_audio_context: true or false, or null when nothing is staged. Responses carry {\"__inherit__\": true} for a staged change back to automatic (null)."
                    },
                    "draft_widget_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_split_testing_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_integration_ids": {
                        "nullable": true
                    },
                    "draft_knowledge_base_ids": {
                        "nullable": true
                    },
                    "draft_knowledge_document_ids": {
                        "nullable": true
                    },
                    "draft_mcp_server_ids": {
                        "nullable": true
                    },
                    "draft_reusable_instruction_ids": {
                        "nullable": true
                    }
                },
                "required": [
                    "name",
                    "prompt",
                    "voice"
                ]
            },
            "AgentTransfer": {
                "type": "object",
                "properties": {
                    "mode": {
                        "$ref": "#/components/schemas/ModeFfbEnum"
                    },
                    "source_org_id": {
                        "type": "integer"
                    },
                    "target_org_id": {
                        "type": "integer"
                    },
                    "agent": {
                        "$ref": "#/components/schemas/Agent"
                    },
                    "detached": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "integer"
                        }
                    }
                },
                "required": [
                    "agent",
                    "mode",
                    "source_org_id",
                    "target_org_id"
                ]
            },
            "AgentTransferRequestRequest": {
                "type": "object",
                "properties": {
                    "target_org_id": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ModeFfbEnum"
                            }
                        ],
                        "default": "copy"
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    }
                },
                "required": [
                    "target_org_id"
                ]
            },
            "AgentVariant": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "label": {
                        "type": "string",
                        "maxLength": 100
                    },
                    "weight": {
                        "type": "integer",
                        "maximum": 100,
                        "minimum": 0
                    },
                    "is_control": {
                        "type": "boolean"
                    },
                    "prompt": {
                        "type": "string",
                        "nullable": true
                    },
                    "voice": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 100
                    },
                    "product": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 32
                    },
                    "background_track": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "thinking_level": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 20
                    },
                    "acknowledgement_prompt_mode": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "acknowledgement_prompt": {
                        "type": "string",
                        "nullable": true
                    },
                    "inbound_speak_order": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "outbound_speak_order": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "silence_interval_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "silence_max_checkins": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "language": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "flow_note": {
                        "type": "string",
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "created_at",
                    "id",
                    "label",
                    "updated_at"
                ]
            },
            "AgentVariantRequest": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                    },
                    "weight": {
                        "type": "integer",
                        "maximum": 100,
                        "minimum": 0
                    },
                    "is_control": {
                        "type": "boolean"
                    },
                    "prompt": {
                        "type": "string",
                        "nullable": true
                    },
                    "voice": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 100
                    },
                    "product": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 32
                    },
                    "background_track": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "thinking_level": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 20
                    },
                    "acknowledgement_prompt_mode": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "acknowledgement_prompt": {
                        "type": "string",
                        "nullable": true
                    },
                    "inbound_speak_order": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "outbound_speak_order": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "silence_interval_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "silence_max_checkins": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "language": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "flow_note": {
                        "type": "string",
                        "nullable": true
                    }
                },
                "required": [
                    "label"
                ]
            },
            "AgentVersionRestore": {
                "type": "object",
                "properties": {
                    "status": {
                        "$ref": "#/components/schemas/AgentVersionRestoreStatusEnum"
                    },
                    "restored_revision": {
                        "type": "integer"
                    },
                    "revision": {
                        "type": "integer",
                        "nullable": true
                    },
                    "kept": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AgentVersionRestoreKept"
                        }
                    },
                    "also_published": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "discarded": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "agent": {
                        "$ref": "#/components/schemas/Agent"
                    }
                },
                "required": [
                    "agent",
                    "also_published",
                    "discarded",
                    "kept",
                    "restored_revision",
                    "revision",
                    "status"
                ]
            },
            "AgentVersionRestoreKept": {
                "type": "object",
                "properties": {
                    "field": {
                        "type": "string"
                    },
                    "reason": {
                        "type": "string"
                    }
                },
                "required": [
                    "field",
                    "reason"
                ]
            },
            "AgentVersionRestoreStatusEnum": {
                "enum": [
                    "deployed",
                    "draft_saved",
                    "no_change"
                ],
                "type": "string",
                "description": "* `deployed` - deployed\n* `draft_saved` - draft_saved\n* `no_change` - no_change"
            },
            "AgentWord": {
                "type": "object",
                "description": "How the agent says one word or phrase, and whether it listens for it.",
                "properties": {
                    "term": {
                        "type": "string",
                        "description": "The word as the agent writes it, e.g. Quayside.",
                        "maxLength": 80
                    },
                    "say_as": {
                        "type": "string",
                        "description": "How to say it, respelled in plain words of the language's own script, e.g. \"Kee side\".",
                        "maxLength": 80
                    },
                    "ipa": {
                        "type": "string",
                        "description": "Optional IPA, without slashes or brackets. Needs say_as.",
                        "maxLength": 80
                    },
                    "language": {
                        "type": "string",
                        "description": "Language code, e.g. en. Defaults to the agent's primary language."
                    },
                    "case_sensitive": {
                        "type": "boolean",
                        "default": false,
                        "description": "Match only this capitalization, e.g. for an acronym like US."
                    },
                    "speak_with": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AgentWordSpeakWithEnum"
                            }
                        ],
                        "default": "auto",
                        "description": "auto: the IPA where it is proven to work on the voice, otherwise say_as. ipa: the IPA wherever the voice can take it. say_as: always the respelling.\n\n* `auto` - auto\n* `ipa` - ipa\n* `say_as` - say_as"
                    },
                    "hear": {
                        "type": "boolean",
                        "default": false,
                        "description": "Also listen for this word in what the caller says: in its step, on turns where the agent says it, on turns whose agent line has a hear_when phrase, or on every turn with hear_always."
                    },
                    "step": {
                        "type": "string",
                        "nullable": true,
                        "description": "With hear: listen for it in this step (a step id), on every turn of it, and elsewhere only where hear_when matches. Null for no step."
                    },
                    "hear_always": {
                        "type": "boolean",
                        "default": false,
                        "description": "Listen for it on every turn, such as the company name. Needs hear; at most 3."
                    },
                    "hear_when": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "maxLength": 40
                        },
                        "nullable": true,
                        "description": "With hear: also listen for it on turns where the agent's line contains one of these phrases, such as [\"insurance\"] for an insurer list when the agent asks \"Who's your insurance with?\". Up to 5 phrases of up to 40 characters, each with a letter or digit, matched as whole words, ignoring case. With a step too, it is listened for in either case. Null (default) for none. On an edit, an entry sent without hear_when keeps the word's current phrases; send null or [] to clear them.",
                        "maxItems": 5
                    },
                    "checked": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AgentWordCheck"
                            }
                        ],
                        "nullable": true
                    },
                    "support": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AgentWordSupport"
                            }
                        ],
                        "readOnly": true
                    }
                },
                "required": [
                    "support",
                    "term"
                ]
            },
            "AgentWordCheck": {
                "type": "object",
                "description": "The last time someone listened to this entry, and what they heard.",
                "properties": {
                    "voice": {
                        "type": "string",
                        "description": "The voice that was listened to."
                    },
                    "model": {
                        "type": "string",
                        "nullable": true,
                        "description": "The voice model as the product names it, when known. Never a vendor name."
                    },
                    "result": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AgentWordCheckResultEnum"
                            }
                        ],
                        "description": "Whether it sounded right.\n\n* `right` - right\n* `wrong` - wrong\n* `unsure` - unsure"
                    },
                    "by": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AgentWordCheckByEnum"
                            }
                        ],
                        "description": "zeus (the assistant) or person.\n\n* `zeus` - zeus\n* `person` - person"
                    },
                    "at": {
                        "type": "string",
                        "description": "When, as an ISO 8601 date or date and time."
                    }
                },
                "required": [
                    "at",
                    "by",
                    "result",
                    "voice"
                ]
            },
            "AgentWordCheckByEnum": {
                "enum": [
                    "zeus",
                    "person"
                ],
                "type": "string",
                "description": "* `zeus` - zeus\n* `person` - person"
            },
            "AgentWordCheckRequest": {
                "type": "object",
                "description": "The last time someone listened to this entry, and what they heard.",
                "properties": {
                    "voice": {
                        "type": "string",
                        "minLength": 1,
                        "description": "The voice that was listened to."
                    },
                    "model": {
                        "type": "string",
                        "nullable": true,
                        "minLength": 1,
                        "description": "The voice model as the product names it, when known. Never a vendor name."
                    },
                    "result": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AgentWordCheckResultEnum"
                            }
                        ],
                        "description": "Whether it sounded right.\n\n* `right` - right\n* `wrong` - wrong\n* `unsure` - unsure"
                    },
                    "by": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AgentWordCheckByEnum"
                            }
                        ],
                        "description": "zeus (the assistant) or person.\n\n* `zeus` - zeus\n* `person` - person"
                    },
                    "at": {
                        "type": "string",
                        "minLength": 1,
                        "description": "When, as an ISO 8601 date or date and time."
                    }
                },
                "required": [
                    "at",
                    "by",
                    "result",
                    "voice"
                ]
            },
            "AgentWordCheckResultEnum": {
                "enum": [
                    "right",
                    "wrong",
                    "unsure"
                ],
                "type": "string",
                "description": "* `right` - right\n* `wrong` - wrong\n* `unsure` - unsure"
            },
            "AgentWordRequest": {
                "type": "object",
                "description": "How the agent says one word or phrase, and whether it listens for it.",
                "properties": {
                    "term": {
                        "type": "string",
                        "minLength": 1,
                        "description": "The word as the agent writes it, e.g. Quayside.",
                        "maxLength": 80
                    },
                    "say_as": {
                        "type": "string",
                        "description": "How to say it, respelled in plain words of the language's own script, e.g. \"Kee side\".",
                        "maxLength": 80
                    },
                    "ipa": {
                        "type": "string",
                        "description": "Optional IPA, without slashes or brackets. Needs say_as.",
                        "maxLength": 80
                    },
                    "language": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Language code, e.g. en. Defaults to the agent's primary language."
                    },
                    "case_sensitive": {
                        "type": "boolean",
                        "default": false,
                        "description": "Match only this capitalization, e.g. for an acronym like US."
                    },
                    "speak_with": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AgentWordSpeakWithEnum"
                            }
                        ],
                        "default": "auto",
                        "description": "auto: the IPA where it is proven to work on the voice, otherwise say_as. ipa: the IPA wherever the voice can take it. say_as: always the respelling.\n\n* `auto` - auto\n* `ipa` - ipa\n* `say_as` - say_as"
                    },
                    "hear": {
                        "type": "boolean",
                        "default": false,
                        "description": "Also listen for this word in what the caller says: in its step, on turns where the agent says it, on turns whose agent line has a hear_when phrase, or on every turn with hear_always."
                    },
                    "step": {
                        "type": "string",
                        "nullable": true,
                        "minLength": 1,
                        "description": "With hear: listen for it in this step (a step id), on every turn of it, and elsewhere only where hear_when matches. Null for no step."
                    },
                    "hear_always": {
                        "type": "boolean",
                        "default": false,
                        "description": "Listen for it on every turn, such as the company name. Needs hear; at most 3."
                    },
                    "hear_when": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40
                        },
                        "nullable": true,
                        "description": "With hear: also listen for it on turns where the agent's line contains one of these phrases, such as [\"insurance\"] for an insurer list when the agent asks \"Who's your insurance with?\". Up to 5 phrases of up to 40 characters, each with a letter or digit, matched as whole words, ignoring case. With a step too, it is listened for in either case. Null (default) for none. On an edit, an entry sent without hear_when keeps the word's current phrases; send null or [] to clear them.",
                        "maxItems": 5
                    },
                    "checked": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AgentWordCheckRequest"
                            }
                        ],
                        "nullable": true
                    }
                },
                "required": [
                    "term"
                ]
            },
            "AgentWordSpeakWithEnum": {
                "enum": [
                    "auto",
                    "ipa",
                    "say_as"
                ],
                "type": "string",
                "description": "* `auto` - auto\n* `ipa` - ipa\n* `say_as` - say_as"
            },
            "AgentWordSupport": {
                "type": "object",
                "description": "How well the agent's current voice can follow this entry. Never a promise: preview to check.",
                "properties": {
                    "level": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AgentWordSupportLevelEnum"
                            }
                        ],
                        "description": "phonetic: the voice gets the IPA (it usually follows it). respelling: the voice says say_as in place of the word. not_supported: the agent doesn't speak the entry's language. hear_only: an entry with no say_as, for listening only.\n\n* `phonetic` - phonetic\n* `respelling` - respelling\n* `not_supported` - not_supported\n* `hear_only` - hear_only"
                    },
                    "reason": {
                        "type": "string",
                        "description": "Why, in a sentence or two."
                    },
                    "step_missing": {
                        "type": "boolean",
                        "description": "The entry names a step this agent does not have."
                    }
                },
                "required": [
                    "level",
                    "reason",
                    "step_missing"
                ]
            },
            "AgentWordSupportLevelEnum": {
                "enum": [
                    "phonetic",
                    "respelling",
                    "not_supported",
                    "hear_only"
                ],
                "type": "string",
                "description": "* `phonetic` - phonetic\n* `respelling` - respelling\n* `not_supported` - not_supported\n* `hear_only` - hear_only"
            },
            "AgentWordSupportRequest": {
                "type": "object",
                "description": "How well the agent's current voice can follow this entry. Never a promise: preview to check.",
                "properties": {
                    "level": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AgentWordSupportLevelEnum"
                            }
                        ],
                        "description": "phonetic: the voice gets the IPA (it usually follows it). respelling: the voice says say_as in place of the word. not_supported: the agent doesn't speak the entry's language. hear_only: an entry with no say_as, for listening only.\n\n* `phonetic` - phonetic\n* `respelling` - respelling\n* `not_supported` - not_supported\n* `hear_only` - hear_only"
                    },
                    "reason": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Why, in a sentence or two."
                    },
                    "step_missing": {
                        "type": "boolean",
                        "description": "The entry names a step this agent does not have."
                    }
                },
                "required": [
                    "level",
                    "reason",
                    "step_missing"
                ]
            },
            "AgentWriteRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "prompt": {
                        "type": "string",
                        "minLength": 1
                    },
                    "voice": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                    },
                    "primary_language": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Primary language code (ISO 639, e.g. 'en', 'es'). Determines the default TTS provider and locale for the agent.",
                        "maxLength": 16
                    },
                    "additional_languages": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 16
                        }
                    },
                    "native_voice_switching": {
                        "type": "boolean"
                    },
                    "language_voices": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                        },
                        "description": "The voice a call uses when it starts in a given language, by language code, e.g. {\"es\": \"<voice>\"}. Used when a call names its language (a config webhook's agent_id answer, a widget or realtime session): before native voice switching's choice, and when the agent's voice does not speak that language. Each voice must speak its language."
                    },
                    "language_switching": {
                        "$ref": "#/components/schemas/LanguageSwitchingEnum"
                    },
                    "audio_tier": {
                        "$ref": "#/components/schemas/AudioTierEnum"
                    },
                    "endpointing": {
                        "$ref": "#/components/schemas/EndpointingEnum"
                    },
                    "eagerness": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/EagernessEnum"
                            }
                        ],
                        "description": "Deprecated: use endpointing (same values).\n\n* `faster` - Faster (200 ms)\n* `fast` - Fast (300 ms)\n* `normal` - Normal (500 ms)\n* `patient` - Patient (800 ms)",
                        "deprecated": true
                    },
                    "intelligence": {
                        "$ref": "#/components/schemas/IntelligenceEnum"
                    },
                    "product": {
                        "$ref": "#/components/schemas/ProductB5bEnum"
                    },
                    "thinking_level": {
                        "$ref": "#/components/schemas/ThinkingLevel477Enum"
                    },
                    "background_track": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "acknowledgement_prompt_mode": {
                        "$ref": "#/components/schemas/AcknowledgementPromptMode836Enum"
                    },
                    "acknowledgement_prompt": {
                        "type": "string"
                    },
                    "acknowledgement_feedback_mode": {
                        "$ref": "#/components/schemas/AcknowledgementFeedbackModeEnum"
                    },
                    "inbound_speak_order": {
                        "$ref": "#/components/schemas/InboundSpeakOrderEnum"
                    },
                    "outbound_speak_order": {
                        "$ref": "#/components/schemas/OutboundSpeakOrderEnum"
                    },
                    "voicemail_action": {
                        "$ref": "#/components/schemas/VoicemailAction89dEnum"
                    },
                    "voicemail_message": {
                        "type": "string",
                        "description": "Voicemail TTS template. Supported variables: {agent_name}, {org_name}."
                    },
                    "silence_interval_seconds": {
                        "type": "integer",
                        "maximum": 120,
                        "minimum": 5,
                        "nullable": true
                    },
                    "silence_max_checkins": {
                        "type": "integer",
                        "maximum": 10,
                        "minimum": 1
                    },
                    "silence_checkins_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent proactively checks in and eventually hangs up during caller silence."
                    },
                    "silence_hangup_seconds": {
                        "type": "integer",
                        "maximum": 3600,
                        "minimum": 60,
                        "description": "Caller-idle seconds before a silent hangup when silence check-ins are disabled."
                    },
                    "silence_final_action": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SilenceFinalActionEnum"
                            }
                        ],
                        "description": "What the agent does after its last silence check-in: hang_up (default) or transfer to silence_transfer_destination.\n\n* `hang_up` - Hang up\n* `transfer` - Transfer"
                    },
                    "silence_transfer_destination": {
                        "type": "string",
                        "description": "Name of one of this agent's transfer_destinations, used when silence_final_action is transfer. Matched case-insensitively."
                    },
                    "silence_final_message": {
                        "type": "string",
                        "description": "What the agent says at the final action after the last silence check-in, spoken as written. Blank uses the call language's default line. At most 300 characters."
                    },
                    "max_call_duration_seconds": {
                        "type": "integer",
                        "maximum": 21600,
                        "minimum": 60,
                        "nullable": true,
                        "description": "Maximum call length in seconds. Null means no limit."
                    },
                    "ring_duration_seconds": {
                        "type": "integer",
                        "maximum": 120,
                        "minimum": 5,
                        "nullable": true,
                        "description": "Outbound and transfer ringing time in seconds. Null uses platform defaults."
                    },
                    "max_hold_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "connect_tone_enabled": {
                        "type": "boolean",
                        "description": "Whether to play a short connection tone before the agent begins the call."
                    },
                    "typing_sounds_enabled": {
                        "type": "boolean"
                    },
                    "typing_sound": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/TypingSoundD48Enum"
                            }
                        ],
                        "description": "Which typing loop plays while a custom tool runs, when typing sounds are on.\n\n* `mechanical` - Mechanical keyboard\n* `desktop` - Desktop keyboard\n* `laptop` - Laptop\n* `keys_and_mouse` - Keyboard and mouse\n* `office` - Office keyboard\n* `quiet_room` - Quiet room"
                    },
                    "filler_phrases_enabled": {
                        "type": "boolean"
                    },
                    "pronunciation_dicts": {
                        "type": "boolean",
                        "description": "Whether calls use ThunderPhone's pronunciation dictionary for Cartesia speech (ThunderPhone's own Cartesia voices only)."
                    },
                    "tool_start_line": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ToolStartLineA57Enum"
                            }
                        ],
                        "description": "What the agent says when a tool call starts. always: a line at every tool call. only_if_slow: a line only if the tool is still running after a short wait. never: nothing at tool start.\n\n* `always` - Always\n* `only_if_slow` - Only if slow\n* `never` - Never"
                    },
                    "play_sound_asset": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/PlaySoundAsset4b4Enum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            }
                        ]
                    },
                    "intro_clip": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/IntroClipEnum"
                            }
                        ],
                        "description": "Prerecorded clip played at the start of inbound calls, before the agent speaks.\n\n* `none` - Off\n* `stock_recording_notice` - Recording notice (female)\n* `stock_recording_notice_male` - Recording notice (male)\n* `custom` - Custom clip"
                    },
                    "intro_ring_count": {
                        "type": "integer",
                        "maximum": 2,
                        "minimum": 0,
                        "description": "US rings played after the intro clip, before the agent speaks (0-2)."
                    },
                    "speak_uninterruptible_enabled": {
                        "type": "boolean"
                    },
                    "call_recording_enabled": {
                        "type": "boolean"
                    },
                    "ai_live_processing_disclosure_override": {
                        "$ref": "#/components/schemas/AiLiveProcessingDisclosureOverrideEnum"
                    },
                    "phi_processing_override": {
                        "$ref": "#/components/schemas/PhiProcessingOverrideEnum"
                    },
                    "send_email_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent may send an email to the configured recipient during a call."
                    },
                    "send_email_recipient": {
                        "type": "string",
                        "format": "email",
                        "maxLength": 254
                    },
                    "calculator_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent gets the calculate tool for exact arithmetic during a call."
                    },
                    "do_not_call_detection_enabled": {
                        "type": "boolean",
                        "description": "On outbound calls, add the number to the organization's call opt-out list when the person asks not to be called again. Off needs the organization's do-not-call detection attestation."
                    },
                    "faster_replies_enabled": {
                        "type": "boolean",
                        "description": "Bolt v2: on replies where it helps, send two requests and use whichever answers first. Those replies use twice the model tokens."
                    },
                    "call_setup_webhook_url": {
                        "type": "string",
                        "format": "uri",
                        "description": "URL ThunderPhone asks before each inbound phone call this agent answers on one of your numbers, to fill in the agent's {{variables}} and the call's context. Blank for none. Required while the agent answers a number and uses a {{variable}} with no default (see call_setup_webhook_variables).",
                        "maxLength": 2048
                    },
                    "call_setup_webhook_signing_secret": {
                        "type": "string",
                        "writeOnly": true,
                        "minLength": 16,
                        "description": "Secret that signs each call setup webhook request (X-ThunderPhone-Signature, the hex HMAC-SHA256 of the body). Write-only: it is never returned. Set one your endpoint checks; until you do, requests are signed with one ThunderPhone made, which nobody can read.",
                        "maxLength": 255
                    },
                    "system_tool_settings": {
                        "description": "Explicit on/off for the end_call, send_keypad_input and wait_on_hold system tools. An absent tool follows the call: end_call on, the other two on for outbound calls only."
                    },
                    "send_sms_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent may send SMS through a customer-connected carrier number."
                    },
                    "sms_from_number": {
                        "type": "string",
                        "maxLength": 32
                    },
                    "sms_allow_other_recipients": {
                        "type": "boolean",
                        "description": "Whether the send_sms tool may text a recipient other than the current telephone party."
                    },
                    "sms_allowed_recipients": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SmsAllowedRecipientRequest"
                        }
                    },
                    "transfer_destinations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TransferDestinationRequest"
                        }
                    },
                    "warm_transfer_style": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WarmTransferStyleEnum"
                            }
                        ],
                        "description": "What happens when a warm transfer is answered. introduce (default): the caller is connected as soon as the person answers, then the AI introduces the caller on the line, which both hear, and leaves. ask_first: the caller waits on hold while the AI privately asks the person who answers whether they can take the call; they can decline. On yes the caller is connected and the AI introduces them on the line. whisper: the caller waits on hold while the AI privately tells the person who answers who is calling and why, without asking; then the caller is connected and the AI leaves with nothing said on the line.\n\n* `introduce` - Introduce on the line\n* `ask_first` - Ask first\n* `whisper` - Whisper"
                    },
                    "warm_transfer_briefing": {
                        "type": "string",
                        "description": "What the AI should tell the person who answers a warm transfer about the caller: in the introduction on the line, or privately with ask_first and whisper, e.g. \"the caller's name and what they need\". Blank uses a very short default: who is calling and why. At most 300 characters."
                    },
                    "sms_followup_enabled": {
                        "type": "boolean"
                    },
                    "sms_followup_template": {
                        "type": "string"
                    },
                    "extraction_fields": {},
                    "extraction_blocks_completion": {
                        "$ref": "#/components/schemas/ExtractionBlocksCompletionEnum"
                    },
                    "call_summary_enabled": {
                        "type": "boolean"
                    },
                    "call_review_enabled": {
                        "type": "boolean"
                    },
                    "outcome_labels": {},
                    "report_instructions": {
                        "type": "string"
                    },
                    "attention_reasons": {},
                    "summary_language": {
                        "type": "string",
                        "maxLength": 16
                    },
                    "timezone": {
                        "type": "string",
                        "maxLength": 64
                    },
                    "business_hours": {
                        "nullable": true
                    },
                    "consent_announcement_enabled": {
                        "type": "boolean"
                    },
                    "consent_announcement_text": {
                        "type": "string",
                        "minLength": 1
                    },
                    "disclosure_voice": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureVoiceEnum"
                            }
                        ],
                        "description": "Voice the consent announcement plays in.\n\n* `female` - Female\n* `male` - Male"
                    },
                    "disclosure_style": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureStyleEnum"
                            }
                        ],
                        "description": "Version of the consent announcement: clean (high quality) or phone (corporate style, like a classic company phone system).\n\n* `clean` - High quality\n* `phone` - Corporate style"
                    },
                    "disclosure_ring_count": {
                        "type": "integer",
                        "maximum": 2,
                        "minimum": 0,
                        "description": "US rings played after the consent announcement, before the agent speaks (0-2)."
                    },
                    "audio_context_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AudioContextMode3d0Enum"
                            }
                        ],
                        "description": "Storm audio context window. 'reduced' lowers latency by using less prior audio context.\n\n* `full` - Full\n* `reduced` - Reduced"
                    },
                    "watchdog_enabled": {
                        "type": "boolean"
                    },
                    "additional_audio_context": {
                        "type": "boolean",
                        "nullable": true,
                        "description": "Override the direction-based depth of recent caller audio included in model context."
                    },
                    "widget_enabled": {
                        "type": "boolean"
                    },
                    "split_testing_enabled": {
                        "type": "boolean"
                    },
                    "steps": {
                        "nullable": true
                    },
                    "handoffs": {},
                    "words": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AgentWordRequest"
                        }
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "writeOnly": true
                    },
                    "draft_name": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "draft_prompt": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_voice": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 100
                    },
                    "draft_primary_language": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "draft_native_voice_switching": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_language_switching": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftLanguageSwitchingEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_audio_tier": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAudioTierEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_endpointing": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftEndpointingEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_eagerness": {
                        "nullable": true,
                        "description": "Deprecated: use draft_endpointing (same values).\n\n* `faster` - Faster (200 ms)\n* `fast` - Fast (300 ms)\n* `normal` - Normal (500 ms)\n* `patient` - Patient (800 ms)",
                        "deprecated": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftEagernessEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_intelligence": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftIntelligenceEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_product": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftProductEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_background_track": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "draft_thinking_level": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftThinkingLevelEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_acknowledgement_prompt_mode": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAcknowledgementPromptModeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_acknowledgement_prompt": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_acknowledgement_feedback_mode": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAcknowledgementFeedbackModeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_inbound_speak_order": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftInboundSpeakOrderEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_outbound_speak_order": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftOutboundSpeakOrderEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_voicemail_action": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftVoicemailActionEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_voicemail_message": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_silence_interval_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_silence_max_checkins": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_silence_checkins_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_silence_hangup_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_silence_final_action": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/SilenceFinalActionEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_silence_transfer_destination": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_silence_final_message": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_connect_tone_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_typing_sounds_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_typing_sound": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftTypingSoundEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_filler_phrases_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_pronunciation_dicts": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_tool_start_line": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftToolStartLineEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_play_sound_asset": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftPlaySoundAssetEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_intro_clip": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftIntroClipEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_intro_ring_count": {
                        "type": "integer",
                        "maximum": 32767,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_speak_uninterruptible_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_call_recording_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_ai_live_processing_disclosure_override": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAiLiveProcessingDisclosureOverrideEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_phi_processing_override": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftPhiProcessingOverrideEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_send_email_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_send_email_recipient": {
                        "type": "string",
                        "format": "email",
                        "nullable": true,
                        "maxLength": 254
                    },
                    "draft_calculator_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_do_not_call_detection_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_faster_replies_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_call_setup_webhook_url": {
                        "type": "string",
                        "format": "uri",
                        "nullable": true,
                        "maxLength": 2048
                    },
                    "draft_system_tool_settings": {
                        "nullable": true
                    },
                    "draft_send_sms_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_sms_from_number": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 32
                    },
                    "draft_sms_allow_other_recipients": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_sms_allowed_recipients": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SmsAllowedRecipientRequest"
                        },
                        "nullable": true
                    },
                    "draft_transfer_destinations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TransferDestinationRequest"
                        },
                        "nullable": true
                    },
                    "draft_warm_transfer_style": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftWarmTransferStyleEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_warm_transfer_briefing": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_sms_followup_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_sms_followup_template": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_extraction_fields": {
                        "nullable": true
                    },
                    "draft_extraction_blocks_completion": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftExtractionBlocksCompletionEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_call_summary_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_call_review_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_outcome_labels": {
                        "nullable": true
                    },
                    "draft_report_instructions": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_attention_reasons": {
                        "nullable": true
                    },
                    "draft_summary_language": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "draft_timezone": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 64
                    },
                    "draft_business_hours": {
                        "nullable": true
                    },
                    "draft_consent_announcement_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_consent_announcement_text": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_disclosure_voice": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureVoiceEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_disclosure_style": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureStyleEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_disclosure_ring_count": {
                        "type": "integer",
                        "maximum": 32767,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_audio_context_mode": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAudioContextModeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_watchdog_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_additional_audio_context": {
                        "type": "boolean",
                        "nullable": true,
                        "description": "Staged additional_audio_context: true or false, or null when nothing is staged. Responses carry {\"__inherit__\": true} for a staged change back to automatic (null)."
                    },
                    "draft_widget_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_split_testing_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_integration_ids": {
                        "nullable": true
                    },
                    "draft_knowledge_base_ids": {
                        "nullable": true
                    },
                    "draft_knowledge_document_ids": {
                        "nullable": true
                    },
                    "draft_mcp_server_ids": {
                        "nullable": true
                    },
                    "draft_reusable_instruction_ids": {
                        "nullable": true
                    },
                    "if_updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "writeOnly": true
                    }
                },
                "required": [
                    "name",
                    "prompt",
                    "voice"
                ]
            },
            "AiLiveProcessingDisclosureOverrideEnum": {
                "enum": [
                    "inherit",
                    "on",
                    "off"
                ],
                "type": "string",
                "description": "* `inherit` - Inherit organization setting\n* `on` - On\n* `off` - Off"
            },
            "AlertAcknowledgement": {
                "type": "object",
                "properties": {
                    "ok": {
                        "type": "boolean"
                    },
                    "acknowledged": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "acknowledged",
                    "ok"
                ]
            },
            "AlertDelivery": {
                "type": "object",
                "properties": {
                    "ok": {
                        "type": "boolean"
                    },
                    "delivered": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "delivered",
                    "ok"
                ]
            },
            "AllowedOverridesEnum": {
                "enum": [
                    "context",
                    "language",
                    "variables",
                    "voice"
                ],
                "type": "string",
                "description": "* `context` - context\n* `language` - language\n* `variables` - variables\n* `voice` - voice"
            },
            "AnsweredByEnum": {
                "enum": [
                    "human",
                    "voicemail",
                    "screener",
                    "ivr",
                    "unknown"
                ],
                "type": "string",
                "description": "* `human` - Person\n* `voicemail` - Voicemail\n* `screener` - Call screener\n* `ivr` - Phone menu\n* `unknown` - Unknown"
            },
            "ApiKeyCreated": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "readOnly": true
                    },
                    "key_prefix": {
                        "type": "string",
                        "readOnly": true
                    },
                    "is_active": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "created_by_name": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true,
                        "description": "Who made the key: their name, else their email. Null when unknown or the user was removed."
                    },
                    "last_used_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "revoked_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "include_held_out_calls": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "The key sees held-out calls in full. In an organization with the agent iteration toolkit, a call whose caller is in an agent's test split is held out: other keys get it as its call_id, start time and held_out only. Off by default; an admin turns it on from the dashboard for an integration that needs every call."
                    },
                    "key": {
                        "type": "string"
                    }
                },
                "required": [
                    "created_at",
                    "created_by_name",
                    "id",
                    "include_held_out_calls",
                    "is_active",
                    "key",
                    "key_prefix",
                    "last_used_at",
                    "name",
                    "revoked_at"
                ]
            },
            "ApplyInvestigationRequest": {
                "type": "object",
                "properties": {
                    "candidate_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "candidate_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    "deploy": {
                        "type": "boolean",
                        "default": false
                    },
                    "with_ack": {
                        "type": "boolean",
                        "default": false
                    }
                }
            },
            "ArmEnum": {
                "enum": [
                    "ours",
                    "vendor"
                ],
                "type": "string",
                "description": "* `ours` - ours\n* `vendor` - vendor"
            },
            "AssistantBaaAttestation": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "organization_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "user_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "user_email": {
                        "type": "string",
                        "format": "email",
                        "readOnly": true
                    },
                    "user_role": {
                        "type": "string",
                        "readOnly": true
                    },
                    "text_version": {
                        "type": "string",
                        "readOnly": true
                    },
                    "rendered_text_sha256": {
                        "type": "string",
                        "readOnly": true
                    },
                    "locale": {
                        "type": "string",
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Status95aEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "attested_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "status_updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "attested_at",
                    "id",
                    "locale",
                    "organization_id",
                    "rendered_text_sha256",
                    "status",
                    "status_updated_at",
                    "text_version",
                    "user_email",
                    "user_id",
                    "user_role"
                ]
            },
            "AssistantBaaAttestationCreateRequest": {
                "type": "object",
                "properties": {
                    "accepted": {
                        "type": "boolean"
                    },
                    "text_version": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                    },
                    "statement_sha256": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                    },
                    "locale": {
                        "type": "string",
                        "minLength": 1,
                        "default": "en",
                        "maxLength": 16
                    }
                },
                "required": [
                    "accepted",
                    "statement_sha256",
                    "text_version"
                ]
            },
            "AssistantBaaState": {
                "type": "object",
                "description": "Response shape of every method (schema only; the view builds a dict).",
                "properties": {
                    "text_version": {
                        "type": "string"
                    },
                    "statement_en": {
                        "type": "string"
                    },
                    "statement_sha256": {
                        "type": "string"
                    },
                    "connector_url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "phi_content_restricted": {
                        "type": "boolean"
                    },
                    "attested": {
                        "type": "boolean"
                    },
                    "attestation": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AssistantBaaAttestation"
                            }
                        ],
                        "nullable": true
                    }
                },
                "required": [
                    "attestation",
                    "attested",
                    "connector_url",
                    "phi_content_restricted",
                    "statement_en",
                    "statement_sha256",
                    "text_version"
                ]
            },
            "AudioConditionsRequest": {
                "type": "object",
                "properties": {
                    "noise_asset": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/NoiseAssetEnum"
                            }
                        ],
                        "default": "none"
                    },
                    "snr_db": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/SnrDbEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    }
                }
            },
            "AudioContextMode3d0Enum": {
                "enum": [
                    "full",
                    "reduced"
                ],
                "type": "string",
                "description": "* `full` - Full\n* `reduced` - Reduced"
            },
            "AudioTierEnum": {
                "enum": [
                    "lite",
                    "standard",
                    "plus",
                    "max",
                    "lean",
                    "hearing",
                    "deep_hearing"
                ],
                "type": "string",
                "description": "* `lite` - Lite\n* `standard` - Standard\n* `plus` - Plus\n* `max` - Max\n* `lean` - Older name for lite, still accepted; responses use lite\n* `hearing` - Older name for plus, still accepted; responses use plus\n* `deep_hearing` - Older name for max, still accepted; responses use max"
            },
            "AuthModeF69Enum": {
                "enum": [
                    "api_key",
                    "paste"
                ],
                "type": "string",
                "description": "* `api_key` - API key\n* `paste` - Pasted JSON"
            },
            "AutoAckRequest": {
                "type": "object",
                "properties": {
                    "rule": {
                        "type": "string"
                    },
                    "actor": {
                        "type": "string",
                        "minLength": 1,
                        "default": "incident-watcher",
                        "maxLength": 64
                    }
                }
            },
            "AutoReloadStatusEnum": {
                "enum": [
                    "off",
                    "ok",
                    "retrying",
                    "stopped",
                    "capped"
                ],
                "type": "string",
                "description": "* `off` - off\n* `ok` - ok\n* `retrying` - retrying\n* `stopped` - stopped\n* `capped` - capped"
            },
            "AvailableNumbers": {
                "type": "object",
                "properties": {
                    "results": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "provider_charge_note": {
                        "type": "string"
                    }
                },
                "required": [
                    "provider_charge_note",
                    "results"
                ]
            },
            "BaaStatusEnum": {
                "enum": [
                    "none",
                    "executed",
                    "executed_with_designation"
                ],
                "type": "string",
                "description": "* `none` - No BAA\n* `executed` - BAA executed (no designation clause; pinned to PHI)\n* `executed_with_designation` - BAA executed with PHI-designation clause"
            },
            "BalanceTransaction": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "kind": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/BalanceTransactionKindEnum"
                            }
                        ],
                        "readOnly": true,
                        "description": "The transaction's broad kind. Newer charges are reported as adjustment; charge_type says what they are.\n\n* `manual_topup` - Manual Top-Up\n* `auto_reload` - Auto Reload\n* `call_usage` - Call Usage\n* `phone_number_monthly` - Phone Number Monthly\n* `conversion_report` - Conversion Report\n* `voice_sample_usage` - Voice Sample Usage\n* `adjustment` - Adjustment\n* `transfer_bridge` - Transfer Bridge"
                    },
                    "description": {
                        "type": "string",
                        "readOnly": true
                    },
                    "amount_cents": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "amount_usd": {
                        "type": "string",
                        "readOnly": true
                    },
                    "call_id": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "phone_number_id": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "phone_number_value": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "metadata": {
                        "readOnly": true
                    },
                    "has_receipt": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "payment_method_brand": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "payment_method_last4": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "is_adjustment": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "True on a later increase to a call's charge (kind call_usage): usage that arrived after the call was billed. False on every other transaction.",
                        "default": false
                    },
                    "charge_type": {
                        "type": "string",
                        "readOnly": true,
                        "description": "What the transaction is, more specific than kind (a plain string, not an enum): the kind itself, or for a charge reported as adjustment one of simulation_caller (a side-by-side test call's simulated caller), caller_reputation (spam-label monitoring) or line_type_lookup (a campaign's number type lookups). More values may be added."
                    },
                    "agent_id": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true,
                        "description": "The agent on the call a call charge is for (call_usage, a transfer, a later increase); null for every other transaction, and for a call with no agent."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "amount_cents",
                    "amount_usd",
                    "call_id",
                    "created_at",
                    "description",
                    "has_receipt",
                    "id",
                    "kind",
                    "metadata",
                    "payment_method_brand",
                    "payment_method_last4",
                    "phone_number_id",
                    "phone_number_value"
                ]
            },
            "BalanceTransactionKindEnum": {
                "enum": [
                    "manual_topup",
                    "auto_reload",
                    "call_usage",
                    "phone_number_monthly",
                    "conversion_report",
                    "voice_sample_usage",
                    "adjustment",
                    "transfer_bridge"
                ],
                "type": "string",
                "description": "* `manual_topup` - Manual Top-Up\n* `auto_reload` - Auto Reload\n* `call_usage` - Call Usage\n* `phone_number_monthly` - Phone Number Monthly\n* `conversion_report` - Conversion Report\n* `voice_sample_usage` - Voice Sample Usage\n* `adjustment` - Adjustment\n* `transfer_bridge` - Transfer Bridge"
            },
            "BillingAccount": {
                "type": "object",
                "properties": {
                    "balance_cents": {
                        "type": "integer",
                        "maximum": 9223372036854775807,
                        "minimum": -9223372036854775808,
                        "format": "int64"
                    },
                    "available_cash_cents": {},
                    "test_call_budget_cents": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "test_call_budget_remaining_cents": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "balance_usd": {
                        "type": "string",
                        "readOnly": true
                    },
                    "currency": {
                        "type": "string",
                        "maxLength": 8
                    },
                    "auto_reload_enabled": {
                        "type": "boolean"
                    },
                    "auto_reload_minimum_cents": {
                        "type": "integer",
                        "maximum": 9223372036854775807,
                        "minimum": -9223372036854775808,
                        "format": "int64"
                    },
                    "auto_reload_amount_cents": {
                        "type": "integer",
                        "maximum": 9223372036854775807,
                        "minimum": -9223372036854775808,
                        "format": "int64"
                    },
                    "auto_reload_monthly_limit_cents": {
                        "type": "integer",
                        "maximum": 9223372036854775807,
                        "minimum": -9223372036854775808,
                        "format": "int64",
                        "nullable": true
                    },
                    "monthly_spending_limit_cents": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "current_month_usage_spend_cents": {
                        "type": "integer",
                        "description": "This UTC calendar month's usage debits: what the monthly spending limit counts.",
                        "readOnly": true
                    },
                    "month_spend_cents": {
                        "type": "integer",
                        "description": "Usage debits this month in the account's reporting time zone, today included: what Home, Billing\nand Zeus's chat say was spent this month (billing.services.month_usage_spend_cents). Number fees and\ncalls from the account's own test numbers are in; the customer paid for them.",
                        "readOnly": true
                    },
                    "average_daily_spend_cents_7d": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "balance_runway_days": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "last_top_up": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/LastTopUp"
                            }
                        ],
                        "nullable": true,
                        "readOnly": true
                    },
                    "spending_limit_reached": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "auto_reload_in_progress": {
                        "type": "boolean"
                    },
                    "auto_reload_last_error": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "auto_reload_paused": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "auto_reload_paused_until": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "auto_reload_failure_code": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "auto_reload_status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AutoReloadStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "auto_reload_next_retry_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true,
                        "readOnly": true
                    },
                    "auto_reload_failed_amount_cents": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "auto_reload_failed_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true,
                        "readOnly": true
                    },
                    "auto_reload_consecutive_declines": {
                        "type": "integer",
                        "minimum": 1,
                        "nullable": true,
                        "readOnly": true
                    },
                    "last_auto_reload": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/LastAutoReload"
                            }
                        ],
                        "nullable": true,
                        "readOnly": true
                    },
                    "auto_reload_month_spend_cents": {
                        "type": "integer",
                        "description": "Auto top-up credits this calendar month (UTC), as the monthly cap counts them.",
                        "readOnly": true
                    },
                    "last_manual_topup_error": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "last_manual_topup_intent_id": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "has_payment_method": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "has_ever_topped_up": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "pricing": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/BillingPricing"
                            }
                        ],
                        "readOnly": true
                    }
                },
                "required": [
                    "auto_reload_consecutive_declines",
                    "auto_reload_failed_amount_cents",
                    "auto_reload_failed_at",
                    "auto_reload_failure_code",
                    "auto_reload_last_error",
                    "auto_reload_month_spend_cents",
                    "auto_reload_next_retry_at",
                    "auto_reload_paused",
                    "auto_reload_paused_until",
                    "auto_reload_status",
                    "average_daily_spend_cents_7d",
                    "balance_runway_days",
                    "balance_usd",
                    "current_month_usage_spend_cents",
                    "has_ever_topped_up",
                    "has_payment_method",
                    "last_auto_reload",
                    "last_manual_topup_error",
                    "last_manual_topup_intent_id",
                    "last_top_up",
                    "monthly_spending_limit_cents",
                    "spending_limit_reached",
                    "test_call_budget_cents",
                    "test_call_budget_remaining_cents"
                ]
            },
            "BillingModeEnum": {
                "enum": [
                    "rate_card",
                    "metered"
                ],
                "type": "string",
                "description": "* `rate_card` - Rate card\n* `metered` - Metered"
            },
            "BillingPaymentMethod": {
                "type": "object",
                "description": "A saved card on the org's Stripe customer (read-only projection).",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "brand": {
                        "type": "string",
                        "nullable": true
                    },
                    "last4": {
                        "type": "string",
                        "nullable": true
                    },
                    "exp_month": {
                        "type": "integer",
                        "nullable": true
                    },
                    "exp_year": {
                        "type": "integer",
                        "nullable": true
                    },
                    "is_default": {
                        "type": "boolean"
                    },
                    "is_backup": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "brand",
                    "exp_month",
                    "exp_year",
                    "id",
                    "is_backup",
                    "is_default",
                    "last4"
                ]
            },
            "BillingPaymentMethodList": {
                "type": "object",
                "properties": {
                    "payment_methods": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/BillingPaymentMethod"
                        }
                    }
                },
                "required": [
                    "payment_methods"
                ]
            },
            "BillingPricing": {
                "type": "object",
                "description": "Which pricing the account bills on today (billing.cost_plus): ``grandfathered`` (its current pricing,\nuntil ``moves_on``, when it moves to the new pricing on its own), ``cost_plus`` (the new pricing:\nwhat each part of a call costs, plus a markup; ``moves_on`` null) or ``contract`` (a customer contract\nsets what the account pays; ``moves_on`` null). POST /v1/billing/new-pricing switches sooner, one way.",
                "properties": {
                    "model": {
                        "$ref": "#/components/schemas/BillingPricingModelEnum"
                    },
                    "moves_on": {
                        "type": "string",
                        "format": "date",
                        "nullable": true
                    }
                },
                "required": [
                    "model",
                    "moves_on"
                ]
            },
            "BillingPricingModelEnum": {
                "enum": [
                    "grandfathered",
                    "cost_plus",
                    "contract"
                ],
                "type": "string",
                "description": "* `grandfathered` - Current pricing\n* `cost_plus` - New pricing\n* `contract` - Contract"
            },
            "BillingTransactionReceipt": {
                "type": "object",
                "properties": {
                    "receipt_url": {
                        "type": "string",
                        "format": "uri"
                    }
                },
                "required": [
                    "receipt_url"
                ]
            },
            "BlankEnum": {
                "enum": [
                    ""
                ]
            },
            "BlockedCaller": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "number": {
                        "type": "string",
                        "readOnly": true,
                        "description": "Blocked caller number in E.164 form."
                    },
                    "note": {
                        "type": "string",
                        "readOnly": true
                    },
                    "created_by_email": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "created_at",
                    "created_by_email",
                    "id",
                    "note",
                    "number"
                ]
            },
            "BlockedCallerBulkItem": {
                "type": "object",
                "properties": {
                    "input": {
                        "type": "string"
                    },
                    "status": {
                        "$ref": "#/components/schemas/BlockedCallerBulkItemStatusEnum"
                    },
                    "number": {
                        "type": "string",
                        "nullable": true,
                        "description": "Normalized E.164 number, or null when invalid."
                    },
                    "id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "Blocked caller id when added or already blocked."
                    },
                    "error": {
                        "type": "string",
                        "nullable": true
                    }
                },
                "required": [
                    "error",
                    "id",
                    "input",
                    "number",
                    "status"
                ]
            },
            "BlockedCallerBulkItemStatusEnum": {
                "enum": [
                    "added",
                    "already_blocked",
                    "invalid",
                    "limit_reached"
                ],
                "type": "string",
                "description": "* `added` - added\n* `already_blocked` - already_blocked\n* `invalid` - invalid\n* `limit_reached` - limit_reached"
            },
            "BlockedCallerBulkRequest": {
                "type": "object",
                "properties": {
                    "numbers": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Up to 500 caller numbers, each in the same formats as a single add.",
                        "maxItems": 500,
                        "minItems": 1
                    },
                    "note": {
                        "type": "string",
                        "default": "",
                        "maxLength": 200
                    }
                },
                "required": [
                    "numbers"
                ]
            },
            "BlockedCallerBulkResult": {
                "type": "object",
                "properties": {
                    "added": {
                        "type": "integer"
                    },
                    "already_blocked": {
                        "type": "integer"
                    },
                    "invalid": {
                        "type": "integer"
                    },
                    "limit_reached": {
                        "type": "integer"
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/BlockedCallerBulkItem"
                        }
                    }
                },
                "required": [
                    "added",
                    "already_blocked",
                    "invalid",
                    "limit_reached",
                    "results"
                ]
            },
            "BlockedCallerCreateRequest": {
                "type": "object",
                "properties": {
                    "number": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Caller number to block. E.164 (+14155550123), or a national format when all of the organization's numbers are in one country.",
                        "maxLength": 64
                    },
                    "note": {
                        "type": "string",
                        "default": "",
                        "maxLength": 200
                    }
                },
                "required": [
                    "number"
                ]
            },
            "BlockedCallerList": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/BlockedCaller"
                        }
                    }
                },
                "required": [
                    "count",
                    "results"
                ]
            },
            "BlockedReasonEnum": {
                "type": "string",
                "enum": [
                    "per_number_daily_limit",
                    "org_daily_limit"
                ]
            },
            "BoltPipelineEnum": {
                "enum": [
                    "v1",
                    "v2"
                ],
                "type": "string",
                "description": "* `v1` - v1\n* `v2` - v2"
            },
            "BusinessDetailsRequest": {
                "type": "object",
                "properties": {
                    "legal_name": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Registered legal name, 3 to 64 characters.",
                        "maxLength": 64
                    },
                    "doing_business_as": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "organization_type": {
                        "$ref": "#/components/schemas/OrganizationTypeEnum"
                    },
                    "organization_legal_type": {
                        "$ref": "#/components/schemas/OrganizationLegalTypeEnum"
                    },
                    "ein": {
                        "type": "string",
                        "minLength": 1,
                        "description": "US Employer Identification Number, NN-NNNNNNN."
                    },
                    "jurisdiction": {
                        "type": "string",
                        "minLength": 1,
                        "description": "State or country of incorporation, e.g. Delaware."
                    },
                    "industry": {
                        "$ref": "#/components/schemas/IndustryEnum"
                    },
                    "number_of_employees": {
                        "$ref": "#/components/schemas/NumberOfEmployeesEnum"
                    },
                    "website": {
                        "type": "string",
                        "minLength": 1
                    },
                    "street_address": {
                        "type": "string",
                        "minLength": 1
                    },
                    "city": {
                        "type": "string",
                        "minLength": 1
                    },
                    "state": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Two-letter US state code."
                    },
                    "postal_code": {
                        "type": "string",
                        "minLength": 1
                    },
                    "contact_first_name": {
                        "type": "string",
                        "minLength": 1
                    },
                    "contact_last_name": {
                        "type": "string",
                        "minLength": 1
                    },
                    "contact_email": {
                        "type": "string",
                        "format": "email",
                        "minLength": 1
                    },
                    "contact_job_title": {
                        "type": "string",
                        "minLength": 1
                    },
                    "contact_phone": {
                        "type": "string",
                        "minLength": 1,
                        "description": "US phone number; stored in E.164."
                    }
                },
                "required": [
                    "city",
                    "contact_email",
                    "contact_first_name",
                    "contact_job_title",
                    "contact_last_name",
                    "contact_phone",
                    "ein",
                    "industry",
                    "jurisdiction",
                    "legal_name",
                    "number_of_employees",
                    "organization_legal_type",
                    "organization_type",
                    "postal_code",
                    "state",
                    "street_address",
                    "website"
                ]
            },
            "BusinessDetailsResponse": {
                "type": "object",
                "properties": {
                    "legal_name": {
                        "type": "string",
                        "description": "Registered legal name, 3 to 64 characters.",
                        "maxLength": 64
                    },
                    "doing_business_as": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "organization_type": {
                        "$ref": "#/components/schemas/OrganizationTypeEnum"
                    },
                    "organization_legal_type": {
                        "$ref": "#/components/schemas/OrganizationLegalTypeEnum"
                    },
                    "ein": {
                        "type": "string",
                        "description": "US Employer Identification Number, NN-NNNNNNN."
                    },
                    "jurisdiction": {
                        "type": "string",
                        "description": "State or country of incorporation, e.g. Delaware."
                    },
                    "industry": {
                        "$ref": "#/components/schemas/IndustryEnum"
                    },
                    "number_of_employees": {
                        "$ref": "#/components/schemas/NumberOfEmployeesEnum"
                    },
                    "website": {
                        "type": "string"
                    },
                    "street_address": {
                        "type": "string"
                    },
                    "city": {
                        "type": "string"
                    },
                    "state": {
                        "type": "string",
                        "description": "Two-letter US state code."
                    },
                    "postal_code": {
                        "type": "string"
                    },
                    "contact_first_name": {
                        "type": "string"
                    },
                    "contact_last_name": {
                        "type": "string"
                    },
                    "contact_email": {
                        "type": "string",
                        "format": "email"
                    },
                    "contact_job_title": {
                        "type": "string"
                    },
                    "contact_phone": {
                        "type": "string",
                        "description": "US phone number; stored in E.164."
                    },
                    "complete": {
                        "type": "boolean"
                    },
                    "missing_fields": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    }
                },
                "required": [
                    "city",
                    "complete",
                    "contact_email",
                    "contact_first_name",
                    "contact_job_title",
                    "contact_last_name",
                    "contact_phone",
                    "ein",
                    "industry",
                    "jurisdiction",
                    "legal_name",
                    "missing_fields",
                    "number_of_employees",
                    "organization_legal_type",
                    "organization_type",
                    "postal_code",
                    "state",
                    "street_address",
                    "updated_at",
                    "website"
                ]
            },
            "BusinessProfileOut": {
                "type": "object",
                "properties": {
                    "sid": {
                        "type": "string"
                    },
                    "friendly_name": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "description": "Twilio's status: draft, pending-review, in-review, twilio-approved or twilio-rejected."
                    },
                    "approved": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "approved",
                    "friendly_name",
                    "sid",
                    "status"
                ]
            },
            "Call": {
                "type": "object",
                "properties": {
                    "call_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "variables": {
                        "readOnly": true,
                        "nullable": true
                    },
                    "unresolved_variables": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "readOnly": true
                    },
                    "sip_headers": {
                        "readOnly": true,
                        "nullable": true
                    },
                    "external_call_id": {
                        "type": "string",
                        "readOnly": true
                    },
                    "agent_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "agent_variant_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "agent_variant_label": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "direction": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallDirectionEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "from_number": {
                        "type": "string",
                        "readOnly": true
                    },
                    "to_number": {
                        "type": "string",
                        "readOnly": true
                    },
                    "start_time": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "end_time": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "duration_seconds": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "queued_at": {
                        "type": "string",
                        "nullable": true,
                        "format": "date-time",
                        "description": "Set while an outbound call waits for room to dial, from when it began waiting. Its status reads in_progress meanwhile, and nothing has been dialed. Null otherwise.",
                        "readOnly": true
                    },
                    "outbound_dial_state": {
                        "readOnly": true,
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/OutboundDialStateEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "outbound_dial_sip_status": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "outbound_dial_sip_reason": {
                        "type": "string",
                        "readOnly": true
                    },
                    "outbound_dial_sip_kind": {
                        "nullable": true,
                        "readOnly": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/SipAnswerKindEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "sip_answered_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "answered_by": {
                        "readOnly": true,
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/AnsweredByEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "end_reason": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "recording_url": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "recording_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RecordingModeEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "recording_policy": {
                        "readOnly": true
                    },
                    "recording_retention_notice": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "recording_started_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "recording_stopped_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "recording_stopped_reason": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "consent_evidence": {
                        "readOnly": true,
                        "description": "Call-start consent announcement asset identity and ordered playback/capture timestamps."
                    },
                    "is_simulation": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "is_test_call": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "is_scenario_call": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "prompt_snapshot": {
                        "type": "string",
                        "readOnly": true
                    },
                    "tool_snapshot": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        },
                        "readOnly": true
                    },
                    "cloud_run_execution_name": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true,
                        "description": "Cloud Run Job execution name for cancellation (e.g. projects/.../executions/...)"
                    },
                    "livekit_room_name": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "livekit_room_sid": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "product": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "voice": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "locale": {
                        "type": "string",
                        "readOnly": true
                    },
                    "thinking_level": {
                        "type": "string",
                        "readOnly": true
                    },
                    "billable_minutes": {
                        "type": "number",
                        "format": "double",
                        "readOnly": true,
                        "nullable": true
                    },
                    "billing_total_cents": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "free_credit_cents": {
                        "type": "integer",
                        "nullable": true,
                        "description": "Cents of this call your free call credit paid, beside billing_total_cents (what was charged): the call cost the two together. 0 when the credit paid none or the call isn't billed yet; null when not read.",
                        "readOnly": true
                    },
                    "billed_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "transfer_outcome": {
                        "readOnly": true,
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/TransferOutcomeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "transfer_bridge_kind": {
                        "readOnly": true,
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/TransferBridgeKindEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "transfer_destination": {
                        "type": "string",
                        "readOnly": true
                    },
                    "transfer_sip_status": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "transfer_bridge_seconds": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "transfer_bridge_total_cents": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "voip_connection_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "grade_score": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "grade_status": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "grade_updated_at": {
                        "type": "string",
                        "nullable": true,
                        "format": "date-time",
                        "readOnly": true
                    },
                    "call_outcome": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "goal_achievement": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "goal_reasoning": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "issue_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "critical_issue_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "extracted_data": {
                        "type": "object",
                        "nullable": true,
                        "additionalProperties": true,
                        "readOnly": true
                    },
                    "summary": {},
                    "summary_status": {},
                    "report": {},
                    "steps_trace": {
                        "type": "array",
                        "nullable": true,
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        },
                        "readOnly": true
                    },
                    "collected_values": {
                        "type": "object",
                        "nullable": true,
                        "additionalProperties": true,
                        "readOnly": true
                    },
                    "call_start_tools": {
                        "type": "array",
                        "nullable": true,
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "arguments": {
                                    "type": "object",
                                    "additionalProperties": true
                                },
                                "result": {},
                                "failed": {
                                    "type": "boolean"
                                },
                                "duration_ms": {
                                    "type": "integer",
                                    "nullable": true
                                },
                                "completed_at_wall_ms": {
                                    "type": "integer",
                                    "nullable": true
                                },
                                "in_greeting": {
                                    "type": "boolean",
                                    "nullable": true
                                }
                            }
                        },
                        "readOnly": true
                    },
                    "context_report": {
                        "type": "object",
                        "nullable": true,
                        "properties": {
                            "budget_tokens": {
                                "type": "integer"
                            },
                            "peak_tokens_estimate": {
                                "type": "integer"
                            },
                            "near_full": {
                                "type": "boolean"
                            },
                            "aged_out_results": {
                                "type": "integer"
                            },
                            "aged_out_chars": {
                                "type": "integer"
                            },
                            "aged_out_tools": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "size_capped_results": {
                                "type": "integer"
                            },
                            "size_capped_tools": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            }
                        },
                        "readOnly": true
                    },
                    "follow_up": {
                        "type": "object",
                        "nullable": true,
                        "additionalProperties": true,
                        "readOnly": true
                    },
                    "callback": {
                        "type": "object",
                        "nullable": true,
                        "properties": {
                            "returning_call": {
                                "type": "object",
                                "properties": {
                                    "call_id": {
                                        "type": "string"
                                    },
                                    "agent_id": {
                                        "type": "string",
                                        "nullable": true
                                    },
                                    "started_at": {
                                        "type": "string",
                                        "format": "date-time"
                                    },
                                    "outcome": {
                                        "type": "string"
                                    }
                                }
                            },
                            "routed_as_callback": {
                                "type": "boolean"
                            },
                            "config_webhook_failure": {
                                "type": "object",
                                "nullable": true,
                                "properties": {
                                    "kind": {
                                        "type": "string"
                                    },
                                    "attempts": {
                                        "type": "integer",
                                        "nullable": true
                                    },
                                    "http_status": {
                                        "type": "integer",
                                        "nullable": true
                                    },
                                    "host": {
                                        "type": "string",
                                        "nullable": true
                                    },
                                    "source": {
                                        "type": "string",
                                        "enum": [
                                            "number",
                                            "agent_setup"
                                        ]
                                    },
                                    "reason": {
                                        "type": "string",
                                        "nullable": true
                                    },
                                    "fields": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        },
                        "readOnly": true
                    },
                    "config_webhook_failure": {
                        "type": "object",
                        "nullable": true,
                        "properties": {
                            "kind": {
                                "type": "string"
                            },
                            "attempts": {
                                "type": "integer",
                                "nullable": true
                            },
                            "http_status": {
                                "type": "integer",
                                "nullable": true
                            },
                            "host": {
                                "type": "string",
                                "nullable": true
                            },
                            "source": {
                                "type": "string",
                                "enum": [
                                    "number",
                                    "agent_setup"
                                ]
                            },
                            "reason": {
                                "type": "string",
                                "nullable": true
                            },
                            "fields": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            }
                        },
                        "readOnly": true
                    },
                    "call_setup_webhook": {
                        "type": "object",
                        "nullable": true,
                        "description": "What the answering agent's call setup webhook did: filled in that agent (assigned_agent), handed the call to another agent (other_agent) or to a full inline config (inline_config), or failed while the agent answered without it (webhook_failed). Null when the agent has no webhook.",
                        "properties": {
                            "outcome": {
                                "type": "string",
                                "enum": [
                                    "assigned_agent",
                                    "other_agent",
                                    "inline_config",
                                    "webhook_failed"
                                ]
                            },
                            "agent_id": {
                                "type": "integer",
                                "description": "The agent assigned to the number, whose webhook ran."
                            },
                            "failure": {
                                "type": "object",
                                "nullable": true,
                                "properties": {
                                    "kind": {
                                        "type": "string"
                                    },
                                    "attempts": {
                                        "type": "integer"
                                    },
                                    "http_status": {
                                        "type": "integer",
                                        "nullable": true
                                    },
                                    "host": {
                                        "type": "string",
                                        "nullable": true
                                    },
                                    "source": {
                                        "type": "string",
                                        "enum": [
                                            "number",
                                            "agent_setup"
                                        ]
                                    }
                                }
                            }
                        },
                        "readOnly": true
                    },
                    "failure": {
                        "type": "object",
                        "nullable": true,
                        "properties": {
                            "owner": {
                                "type": "string",
                                "enum": [
                                    "thunderphone",
                                    "configuration",
                                    "external",
                                    "unknown"
                                ]
                            },
                            "cause": {
                                "type": "string",
                                "enum": [
                                    "platform_error",
                                    "platform_cut_off",
                                    "out_of_balance",
                                    "spending_limit",
                                    "balance_ran_out",
                                    "call_limit",
                                    "caller_blocked",
                                    "scheduled_skipped",
                                    "destination_not_allowed",
                                    "number_cannot_dial",
                                    "webhook_failed",
                                    "not_answered",
                                    "busy",
                                    "declined",
                                    "number_unreachable",
                                    "carrier_refused",
                                    "unknown"
                                ]
                            }
                        },
                        "required": [
                            "owner",
                            "cause"
                        ],
                        "readOnly": true
                    },
                    "held_out": {
                        "type": "boolean",
                        "description": "Present only for organizations with the agent iteration toolkit: true when the call's caller is in one of the organization's agents' test splits. A held-out call is part of the test set: an API key or OAuth token gets it as its call_id, start_time and held_out only, without its transcript, recording, history, grade or report. People see it in full in the dashboard, and an API key an admin has given include_held_out_calls (for integrations that need every call) sees it in full. Organizations without the toolkit are unaffected."
                    }
                },
                "required": [
                    "agent_id",
                    "agent_variant_id",
                    "agent_variant_label",
                    "answered_by",
                    "billable_minutes",
                    "billed_at",
                    "billing_total_cents",
                    "call_id",
                    "call_outcome",
                    "call_setup_webhook",
                    "call_start_tools",
                    "callback",
                    "cloud_run_execution_name",
                    "collected_values",
                    "config_webhook_failure",
                    "consent_evidence",
                    "context_report",
                    "critical_issue_count",
                    "direction",
                    "duration_seconds",
                    "end_reason",
                    "end_time",
                    "external_call_id",
                    "extracted_data",
                    "failure",
                    "follow_up",
                    "free_credit_cents",
                    "from_number",
                    "goal_achievement",
                    "goal_reasoning",
                    "grade_score",
                    "grade_status",
                    "grade_updated_at",
                    "is_scenario_call",
                    "is_simulation",
                    "is_test_call",
                    "issue_count",
                    "livekit_room_name",
                    "livekit_room_sid",
                    "locale",
                    "outbound_dial_sip_kind",
                    "outbound_dial_sip_reason",
                    "outbound_dial_sip_status",
                    "outbound_dial_state",
                    "product",
                    "prompt_snapshot",
                    "recording_mode",
                    "recording_policy",
                    "recording_retention_notice",
                    "recording_started_at",
                    "recording_stopped_at",
                    "recording_stopped_reason",
                    "recording_url",
                    "sip_answered_at",
                    "sip_headers",
                    "start_time",
                    "status",
                    "steps_trace",
                    "thinking_level",
                    "to_number",
                    "tool_snapshot",
                    "transfer_bridge_kind",
                    "transfer_bridge_seconds",
                    "transfer_bridge_total_cents",
                    "transfer_destination",
                    "transfer_outcome",
                    "transfer_sip_status",
                    "unresolved_variables",
                    "variables",
                    "voice",
                    "voip_connection_id"
                ]
            },
            "CallAudio": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string"
                    }
                },
                "required": [
                    "url"
                ]
            },
            "CallBulkDeleteRequest": {
                "type": "object",
                "properties": {
                    "call_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "description": "Call ids to delete permanently (at most 100).",
                        "maxItems": 100,
                        "minItems": 1
                    }
                },
                "required": [
                    "call_ids"
                ]
            },
            "CallBulkDeleteResponse": {
                "type": "object",
                "properties": {
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CallBulkDeleteResult"
                        }
                    },
                    "deleted": {
                        "type": "integer",
                        "description": "Number of calls deleted by this request."
                    }
                },
                "required": [
                    "deleted",
                    "results"
                ]
            },
            "CallBulkDeleteResult": {
                "type": "object",
                "properties": {
                    "call_id": {
                        "type": "integer"
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallBulkDeleteResultStatusEnum"
                            }
                        ],
                        "description": "deleted: removed permanently. not_found: no such call in this organization (or already deleted). in_progress: the call is live or its billing is still being settled; retry later. legal_hold: the call is under a legal hold.\n\n* `deleted` - deleted\n* `not_found` - not_found\n* `in_progress` - in_progress\n* `legal_hold` - legal_hold"
                    },
                    "detail": {
                        "type": "string"
                    }
                },
                "required": [
                    "call_id",
                    "detail",
                    "status"
                ]
            },
            "CallBulkDeleteResultStatusEnum": {
                "enum": [
                    "deleted",
                    "not_found",
                    "in_progress",
                    "legal_hold"
                ],
                "type": "string",
                "description": "* `deleted` - deleted\n* `not_found` - not_found\n* `in_progress` - in_progress\n* `legal_hold` - legal_hold"
            },
            "CallDeletionPreview": {
                "type": "object",
                "properties": {
                    "validation_examples": {
                        "type": "integer",
                        "description": "Validation examples made from these calls, directly or through a test conversation. Deleting the calls deletes them too."
                    },
                    "test_conversations": {
                        "type": "integer",
                        "description": "Test conversations made from these calls. Deleting the calls deletes them too."
                    }
                },
                "required": [
                    "test_conversations",
                    "validation_examples"
                ]
            },
            "CallDirectionEnum": {
                "enum": [
                    "inbound",
                    "outbound",
                    "test",
                    "web"
                ],
                "type": "string",
                "description": "* `inbound` - Inbound\n* `outbound` - Outbound\n* `test` - Test call\n* `web` - Web call"
            },
            "CallExport": {
                "type": "object",
                "properties": {
                    "calls": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "total": {
                        "type": "integer"
                    },
                    "truncated": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "calls",
                    "total",
                    "truncated"
                ]
            },
            "CallExtraction": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "call_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "agent_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "schema_snapshot": {
                        "readOnly": true
                    },
                    "schema_version": {},
                    "data": {
                        "readOnly": true
                    },
                    "evidence": {
                        "readOnly": true
                    },
                    "verification": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/VerificationEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "field_reasons": {
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallExtractionStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "error_message": {
                        "type": "string",
                        "readOnly": true
                    },
                    "model": {
                        "type": "string",
                        "readOnly": true,
                        "description": "Opaque ThunderPhone label (thunderphone-extractor), not a vendor model id."
                    },
                    "extracted_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "agent_id",
                    "call_id",
                    "created_at",
                    "data",
                    "error_message",
                    "evidence",
                    "extracted_at",
                    "field_reasons",
                    "id",
                    "model",
                    "schema_snapshot",
                    "status",
                    "updated_at",
                    "verification"
                ]
            },
            "CallExtractionStatusEnum": {
                "enum": [
                    "completed",
                    "failed",
                    "exhausted",
                    "skipped",
                    "skipped_recording_disabled"
                ],
                "type": "string",
                "description": "* `completed` - Completed\n* `failed` - Failed\n* `exhausted` - Exhausted\n* `skipped` - Skipped\n* `skipped_recording_disabled` - Skipped (recording disabled)"
            },
            "CallGrade": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "call_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallGradeStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "score": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "call_outcome": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallOutcomeEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "outcome_reasoning": {
                        "type": "string",
                        "readOnly": true
                    },
                    "goal_achievement": {
                        "readOnly": true,
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/GoalAchievementEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "goal_reasoning": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "caller_welfare_violation": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "caller_welfare_reasoning": {
                        "type": "string",
                        "readOnly": true
                    },
                    "summary": {
                        "type": "string",
                        "readOnly": true
                    },
                    "rubric_breakdown": {
                        "readOnly": true
                    },
                    "detected_issues": {
                        "readOnly": true
                    },
                    "grader_model": {
                        "type": "string",
                        "readOnly": true,
                        "description": "Which grader produced the grade: heuristic-v1 (or another ThunderPhone rule-based grader) for a provisional grade, thunderphone-grader for the full model grade. An opaque ThunderPhone label, not a vendor model id."
                    },
                    "grader_version": {
                        "type": "string",
                        "readOnly": true
                    },
                    "error_message": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "graded_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "call_id",
                    "call_outcome",
                    "caller_welfare_reasoning",
                    "caller_welfare_violation",
                    "created_at",
                    "detected_issues",
                    "error_message",
                    "goal_achievement",
                    "goal_reasoning",
                    "graded_at",
                    "grader_model",
                    "grader_version",
                    "id",
                    "outcome_reasoning",
                    "rubric_breakdown",
                    "score",
                    "status",
                    "summary",
                    "updated_at"
                ]
            },
            "CallGradeStatusEnum": {
                "enum": [
                    "pending",
                    "completed",
                    "failed",
                    "skipped_recording_disabled"
                ],
                "type": "string",
                "description": "* `pending` - Pending\n* `completed` - Completed\n* `failed` - Failed\n* `skipped_recording_disabled` - Skipped — recording disabled"
            },
            "CallHandoff": {
                "type": "object",
                "properties": {
                    "call_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "external_call_id": {
                        "type": "string",
                        "readOnly": true
                    },
                    "handoff": {
                        "type": "object",
                        "nullable": true,
                        "description": "What the agent told the contact center when it transferred or returned the call: the id sent in the hand-off headers, its summary and intent (empty when the agent gave none; left out on a call that keeps no transcript), and when (UTC). The latest hand-off when there were several; null when the call was never handed off.",
                        "properties": {
                            "handoff_id": {
                                "type": "string"
                            },
                            "summary": {
                                "type": "string"
                            },
                            "intent": {
                                "type": "string"
                            },
                            "at": {
                                "type": "string",
                                "format": "date-time"
                            }
                        },
                        "readOnly": true
                    },
                    "sip_headers": {
                        "readOnly": true,
                        "nullable": true
                    },
                    "variables": {
                        "readOnly": true,
                        "nullable": true
                    },
                    "summary": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "extracted_data": {
                        "type": "object",
                        "nullable": true,
                        "additionalProperties": true,
                        "readOnly": true
                    }
                },
                "required": [
                    "call_id",
                    "external_call_id",
                    "extracted_data",
                    "handoff",
                    "sip_headers",
                    "status",
                    "summary",
                    "variables"
                ]
            },
            "CallIssueReport": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "trace_id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "cluster_id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true,
                        "nullable": true
                    },
                    "call_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "agent_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SourceE1aEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "severity": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SeverityEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Status83aEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "title": {
                        "type": "string",
                        "readOnly": true
                    },
                    "description": {
                        "type": "string",
                        "readOnly": true
                    },
                    "what_went_wrong": {
                        "type": "string",
                        "readOnly": true
                    },
                    "suggested_fix": {
                        "type": "string",
                        "readOnly": true
                    },
                    "evidence": {
                        "type": "string",
                        "readOnly": true
                    },
                    "timestamp_seconds": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "failing_turn_index": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "relevant_turn_indices": {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        },
                        "readOnly": true
                    },
                    "detected_issue_ref": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "metadata": {
                        "readOnly": true
                    },
                    "reported_by_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "linked_test_cases": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "readOnly": true
                    },
                    "regression_guarded": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "call_start_time": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "agent_id",
                    "call_id",
                    "call_start_time",
                    "cluster_id",
                    "created_at",
                    "description",
                    "detected_issue_ref",
                    "evidence",
                    "failing_turn_index",
                    "id",
                    "linked_test_cases",
                    "metadata",
                    "regression_guarded",
                    "relevant_turn_indices",
                    "reported_by_id",
                    "severity",
                    "source",
                    "status",
                    "suggested_fix",
                    "timestamp_seconds",
                    "title",
                    "trace_id",
                    "updated_at",
                    "what_went_wrong"
                ]
            },
            "CallIssueReportCreateRequest": {
                "type": "object",
                "properties": {
                    "source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SourceE1aEnum"
                            }
                        ],
                        "default": "user"
                    },
                    "severity": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SeverityEnum"
                            }
                        ],
                        "default": "warning"
                    },
                    "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "description": {
                        "type": "string",
                        "default": "",
                        "maxLength": 4000
                    },
                    "timestamp_seconds": {
                        "type": "integer",
                        "minimum": 0,
                        "nullable": true
                    },
                    "failing_turn_index": {
                        "type": "integer",
                        "minimum": 0,
                        "nullable": true
                    },
                    "detected_issue_ref": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 128
                    },
                    "metadata": {}
                },
                "required": [
                    "title"
                ]
            },
            "CallListResponse": {
                "type": "object",
                "properties": {
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Call"
                        }
                    },
                    "total": {
                        "type": "integer",
                        "nullable": true,
                        "description": "Every call the filters match. Null on a cursor page unless count=true: scrolling never counts the whole history again."
                    },
                    "limit": {
                        "type": "integer"
                    },
                    "offset": {
                        "type": "integer"
                    },
                    "next_cursor": {
                        "type": "string",
                        "nullable": true,
                        "description": "Pass as cursor for the next (older) page; null on the last page."
                    },
                    "head_cursor": {
                        "type": "string",
                        "nullable": true,
                        "description": "This page's first call. Pass as newer_than to list or count the calls that started since."
                    }
                },
                "required": [
                    "limit",
                    "offset",
                    "results",
                    "total"
                ]
            },
            "CallOutcomeEnum": {
                "enum": [
                    "success",
                    "failure",
                    "unknown",
                    "no_conversation"
                ],
                "type": "string",
                "description": "* `success` - Success\n* `failure` - Failure\n* `unknown` - Unknown\n* `no_conversation` - No Conversation"
            },
            "CallReportSummary": {
                "type": "object",
                "properties": {
                    "period": {
                        "$ref": "#/components/schemas/ReportPeriod"
                    },
                    "previous_period": {
                        "$ref": "#/components/schemas/ReportPreviousPeriod"
                    },
                    "timezone": {
                        "type": "string"
                    },
                    "has_business_hours": {
                        "type": "boolean"
                    },
                    "excluded_numbers": {
                        "type": "integer"
                    },
                    "metrics": {
                        "$ref": "#/components/schemas/ReportMetrics"
                    },
                    "needs_attention": {
                        "$ref": "#/components/schemas/ReportNeedsAttention"
                    },
                    "success_rate": {
                        "$ref": "#/components/schemas/ReportSuccessRate"
                    },
                    "outcomes": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ReportOutcomeCount"
                        }
                    },
                    "capabilities": {
                        "$ref": "#/components/schemas/ReportCapabilities"
                    },
                    "agents": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "numbers": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "daily": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "reported": {
                        "type": "integer"
                    },
                    "pending_reports": {
                        "type": "integer"
                    }
                },
                "required": [
                    "agents",
                    "capabilities",
                    "daily",
                    "excluded_numbers",
                    "has_business_hours",
                    "metrics",
                    "needs_attention",
                    "numbers",
                    "outcomes",
                    "pending_reports",
                    "period",
                    "previous_period",
                    "reported",
                    "success_rate",
                    "timezone"
                ]
            },
            "CallRoutingEnum": {
                "enum": [
                    "thunderphone",
                    "customer"
                ],
                "type": "string",
                "description": "* `thunderphone` - thunderphone\n* `customer` - customer"
            },
            "CallSetupRequiredVariables": {
                "type": "object",
                "properties": {
                    "draft": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "live": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "required": [
                    "draft",
                    "live"
                ]
            },
            "CallSetupSample": {
                "type": "object",
                "properties": {
                    "live": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallSetupSampleUse"
                            }
                        ],
                        "title": "Draft"
                    },
                    "id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "latest": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallSetupSampleRevision"
                            }
                        ],
                        "nullable": true
                    },
                    "revision_count": {
                        "type": "integer"
                    }
                },
                "required": [
                    "created_at",
                    "id",
                    "latest",
                    "live",
                    "name",
                    "revision_count",
                    "updated_at"
                ]
            },
            "CallSetupSampleCreateRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 80
                    },
                    "variables": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Like a call setup webhook's variables."
                    },
                    "context": {
                        "type": "string",
                        "nullable": true
                    },
                    "language": {
                        "type": "string",
                        "nullable": true
                    },
                    "from_call_id": {
                        "type": "integer",
                        "description": "Copy the variables and context a past call of this agent ran with, instead of sending them."
                    }
                },
                "required": [
                    "name"
                ]
            },
            "CallSetupSampleList": {
                "type": "object",
                "properties": {
                    "required_variables": {
                        "$ref": "#/components/schemas/CallSetupRequiredVariables"
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CallSetupSample"
                        }
                    }
                },
                "required": [
                    "required_variables",
                    "results"
                ]
            },
            "CallSetupSampleRevision": {
                "type": "object",
                "properties": {
                    "revision": {
                        "type": "integer"
                    },
                    "variables": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "context": {
                        "type": "string"
                    },
                    "language": {
                        "type": "string",
                        "description": "The language the call starts in, or blank for the agent's."
                    },
                    "source": {
                        "type": "string",
                        "description": "dashboard, zeus, api or call (copied from a past call)."
                    },
                    "captured_from_call_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "agent_revision": {
                        "type": "integer",
                        "nullable": true,
                        "description": "The agent's published version when this was saved."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "created_by_name": {
                        "type": "string",
                        "nullable": true
                    }
                },
                "required": [
                    "agent_revision",
                    "captured_from_call_id",
                    "context",
                    "created_at",
                    "created_by_name",
                    "language",
                    "revision",
                    "source",
                    "variables"
                ]
            },
            "CallSetupSampleRevisionList": {
                "type": "object",
                "properties": {
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CallSetupSampleRevision"
                        }
                    }
                },
                "required": [
                    "results"
                ]
            },
            "CallSetupSampleUse": {
                "type": "object",
                "properties": {
                    "revision": {
                        "type": "integer",
                        "nullable": true,
                        "description": "The sample version a test of these settings runs with."
                    },
                    "missing_variables": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Variables these settings use that the sample does not set."
                    }
                },
                "required": [
                    "missing_variables",
                    "revision"
                ]
            },
            "CallSetupSampleUsed": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string"
                    },
                    "revision": {
                        "type": "integer",
                        "description": "The sample version the call ran with."
                    },
                    "missing_variables": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Variables the agent uses that the sample does not set; they stay blank."
                    }
                },
                "required": [
                    "id",
                    "missing_variables",
                    "name",
                    "revision"
                ]
            },
            "CallStatusEnum": {
                "enum": [
                    "in_progress",
                    "completed",
                    "failed"
                ],
                "type": "string",
                "description": "* `in_progress` - In Progress\n* `completed` - Completed\n* `failed` - Failed"
            },
            "CallToolResultRequest": {
                "type": "object",
                "properties": {
                    "request_id": {
                        "type": "string",
                        "minLength": 1,
                        "description": "The request_id your tool endpoint returned with its pending answer.",
                        "maxLength": 200
                    },
                    "result": {
                        "nullable": true,
                        "description": "The tool's result, any JSON value (an object is best). The agent reads it as the tool's answer."
                    }
                },
                "required": [
                    "request_id",
                    "result"
                ]
            },
            "CallToolRun": {
                "type": "object",
                "properties": {
                    "call_id": {
                        "type": "integer"
                    },
                    "turn": {
                        "type": "integer"
                    },
                    "tool": {
                        "type": "string"
                    },
                    "arguments": {},
                    "response": {
                        "nullable": true
                    },
                    "outcome": {
                        "type": "string"
                    },
                    "duration_ms": {
                        "type": "integer",
                        "nullable": true
                    },
                    "at": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    },
                    "lines": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CallToolRunLine"
                        }
                    },
                    "next_line": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallToolRunNextLine"
                            }
                        ],
                        "nullable": true
                    }
                },
                "required": [
                    "arguments",
                    "at",
                    "call_id",
                    "duration_ms",
                    "lines",
                    "next_line",
                    "outcome",
                    "response",
                    "tool",
                    "turn"
                ]
            },
            "CallToolRunLine": {
                "type": "object",
                "properties": {
                    "text": {
                        "type": "string"
                    },
                    "at": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    }
                },
                "required": [
                    "at",
                    "text"
                ]
            },
            "CallToolRunNextLine": {
                "type": "object",
                "properties": {
                    "text": {
                        "type": "string"
                    },
                    "at": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    }
                },
                "required": [
                    "at",
                    "text"
                ]
            },
            "CallTranscript": {
                "type": "object",
                "properties": {
                    "call_id": {
                        "type": "integer"
                    },
                    "transcripts": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TranscriptEntry"
                        }
                    },
                    "held_out": {
                        "type": "boolean",
                        "description": "Present only for organizations with the agent iteration toolkit: true when the call's caller is in one of the organization's agents' test splits. A held-out call is part of the test set: an API key or OAuth token gets it as its call_id, start_time and held_out only, without its transcript, recording, history, grade or report. People see it in full in the dashboard, and an API key an admin has given include_held_out_calls (for integrations that need every call) sees it in full. Organizations without the toolkit are unaffected."
                    }
                },
                "required": [
                    "call_id",
                    "transcripts"
                ]
            },
            "CallWhisperRequest": {
                "type": "object",
                "properties": {
                    "text": {}
                },
                "required": [
                    "text"
                ]
            },
            "CallerBehaviorRequest": {
                "type": "object",
                "properties": {
                    "long_silence_seconds": {
                        "type": "integer",
                        "maximum": 15,
                        "minimum": 0,
                        "default": 0
                    },
                    "dtmf_sequence": {
                        "type": "string",
                        "default": "",
                        "pattern": "^[0-9*#]{0,12}$"
                    },
                    "topic_change": {
                        "type": "string",
                        "default": "",
                        "maxLength": 500
                    }
                }
            },
            "CallerNameOut": {
                "type": "object",
                "properties": {
                    "caller_name": {
                        "type": "string",
                        "description": "The saved name; blank uses the organization's name."
                    },
                    "enabled": {
                        "type": "boolean"
                    },
                    "default_caller_name": {
                        "type": "string"
                    },
                    "effective_caller_name": {
                        "type": "string",
                        "description": "What ThunderPhone numbers show; blank when off."
                    },
                    "max_length": {
                        "type": "integer"
                    }
                },
                "required": [
                    "caller_name",
                    "default_caller_name",
                    "effective_caller_name",
                    "enabled",
                    "max_length"
                ]
            },
            "CallerNameSettingRequest": {
                "type": "object",
                "properties": {
                    "caller_name": {
                        "type": "string",
                        "maxLength": 64
                    },
                    "enabled": {
                        "type": "boolean"
                    }
                }
            },
            "CallerRegistrationOverview": {
                "type": "object",
                "properties": {
                    "caller_name": {
                        "$ref": "#/components/schemas/CallerNameOut"
                    },
                    "numbers": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/RegistrationNumber"
                        }
                    },
                    "voice_integrity_use_cases": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "twilio_trust_hub_url": {
                        "type": "string"
                    }
                },
                "required": [
                    "caller_name",
                    "numbers",
                    "twilio_trust_hub_url",
                    "voice_integrity_use_cases"
                ]
            },
            "CallerReputationOverview": {
                "type": "object",
                "properties": {
                    "business": {
                        "$ref": "#/components/schemas/BusinessDetailsResponse"
                    },
                    "spam_monitoring": {
                        "$ref": "#/components/schemas/SpamMonitoring"
                    },
                    "can_manage": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "business",
                    "can_manage",
                    "spam_monitoring"
                ]
            },
            "CallingHoursModeEnum": {
                "enum": [
                    "state_defaults",
                    "campaign_window"
                ],
                "type": "string",
                "description": "* `state_defaults` - Each state's default calling hours and the campaign window\n* `campaign_window` - The campaign window only"
            },
            "Campaign": {
                "type": "object",
                "properties": {
                    "public_id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "agent": {
                        "type": "integer"
                    },
                    "agent_name": {
                        "type": "string",
                        "readOnly": true
                    },
                    "from_number": {
                        "type": "string",
                        "description": "The first number of the caller ID pool. Sending only from_number makes a pool of that one number.",
                        "maxLength": 32
                    },
                    "from_numbers": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "maxLength": 32
                        },
                        "description": "The caller ID pool, in order: E.164 numbers of this organization, at most 50. Each contact is dialed from the number it was last called from, else one with its area code, else one in its timezone, else the least used. Send this or from_number.",
                        "maxItems": 50,
                        "minItems": 1
                    },
                    "max_calls_per_number_per_day": {
                        "type": "integer",
                        "maximum": 500,
                        "minimum": 1,
                        "nullable": true,
                        "description": "Outbound calls each pool number may place in a rolling 24 hours, counting every outbound call from that number in your organization (1-500, default 75 for new campaigns; null for no per-number limit). Numbers with less than a week of outbound calls start lower and ramp up. Contacts wait when every number is at its limit."
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Status3f0Enum"
                            }
                        ],
                        "readOnly": true
                    },
                    "blocked_reason": {
                        "nullable": true,
                        "readOnly": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/BlockedReasonEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "blocked_detail": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "timezone": {
                        "type": "string",
                        "description": "IANA timezone the daily window runs in. When omitted on create it defaults to the from number's area-code or country zone, else UTC.",
                        "maxLength": 64
                    },
                    "window_timezone_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WindowTimezoneModeEnum"
                            }
                        ],
                        "description": "\"contact\" runs the daily window in each contact's local time, from the contact's US or Canadian area code (other contacts use the campaign timezone); \"campaign\" runs it in the campaign timezone for everyone. Default \"contact\" for new campaigns; campaigns created before this setting keep \"campaign\".\n\n* `campaign` - Campaign timezone\n* `contact` - Each contact's local time"
                    },
                    "calling_hours_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallingHoursModeEnum"
                            }
                        ],
                        "description": "\"state_defaults\" also holds each US contact to its state's default calling hours in its local time (from its area code, and its state variable when it names another state): a call starts only when the daily window and the state's hours both allow it, and a contact outside them waits. US numbers with no state get 8am-9pm. Numbers outside the US get only the daily window. \"campaign_window\" uses the daily window alone. Default \"state_defaults\" for new campaigns; campaigns created before this setting keep \"campaign_window\". The hours are listed at https://docs.thunderphone.com/guides/outbound-calling-laws.\n\n* `state_defaults` - Each state's default calling hours and the campaign window\n* `campaign_window` - The campaign window only",
                        "default": "campaign_window"
                    },
                    "calling_hours_exempt_states": {
                        "description": "Two-letter US state codes whose default hours this campaign skips in state_defaults mode: contacts there get only the daily window. Default [].",
                        "default": []
                    },
                    "daily_window_start": {
                        "type": "string",
                        "format": "time",
                        "description": "Start of the daily window. Send both window fields or neither; neither means 09:00-17:00 on create."
                    },
                    "daily_window_end": {
                        "type": "string",
                        "format": "time",
                        "description": "End of the daily window (exclusive); neither window field on create means 09:00-17:00. An end earlier than daily_window_start makes an overnight window, dialed from the start until the end the next day; it is saved with a warning."
                    },
                    "start_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "end_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "max_concurrent_calls": {
                        "type": "integer",
                        "maximum": 10,
                        "minimum": 1
                    },
                    "max_attempts": {
                        "type": "integer",
                        "maximum": 32767,
                        "minimum": 1,
                        "description": "Total tries per contact. At most 10 unless staff raised your organization's limit."
                    },
                    "retry_backoff_minutes": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "description": "Minutes before a retry. At least 30 unless staff lowered your organization's minimum."
                    },
                    "retry_strategy": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RetryStrategyEnum"
                            }
                        ],
                        "description": "\"spread\" moves each retry to a later day and a different part of the contact's day (morning, midday, late afternoon), at least retry_backoff_minutes after the last attempt; \"fixed\" retries exactly retry_backoff_minutes later. Default \"spread\" for new campaigns; campaigns created before this setting keep \"fixed\".\n\n* `fixed` - Fixed backoff\n* `spread` - Spread across days and times of day"
                    },
                    "retry_on": {},
                    "double_dial": {
                        "type": "boolean",
                        "description": "After a call rings out unanswered, call once more from the same number 30-60 seconds later. The redial is not an attempt. It can ring through iPhone Do Not Disturb when Allow Repeated Calls is on."
                    },
                    "total_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "completed_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "failed_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "in_progress_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "pre_call_sms_enabled": {
                        "type": "boolean",
                        "description": "Text each contact before their first call (never before retries). Needs pre_call_sms_from_number. A failed text never stops the call."
                    },
                    "pre_call_sms_from_number": {
                        "type": "string",
                        "description": "E.164 number that sends the pre-call text: an SMS-capable number on your own Twilio or Telnyx connection. ThunderPhone numbers cannot text.",
                        "maxLength": 32
                    },
                    "pre_call_sms_template": {
                        "type": "string",
                        "description": "The pre-call text, up to 1600 characters. Uses {{variable}} placeholders: the contact's variables plus {{org_name}}, {{agent_name}} and {{call_from_number}}. A missing variable renders as nothing; {{name|default}} sets a fallback. Blank means the default text."
                    },
                    "pre_call_sms_lead_minutes": {
                        "type": "integer",
                        "maximum": 60,
                        "minimum": 1,
                        "description": "Minutes between the text and the call, 1-60. The call goes out on the first campaign tick (every 5 minutes) after that."
                    },
                    "line_type_filter": {
                        "description": "Look up each contact's number before its first call and skip some types. \"skip_mobile\" calls landlines, VoIP and toll-free numbers and skips mobiles and numbers the lookup cannot classify (for campaigns without consent to call mobiles with an AI voice); \"skip_landline\" skips landlines; \"\" (default) looks nothing up. Each lookup is charged to the balance (a fraction of a cent: Telnyx's list price with your pricing's markup); a result your organization paid for in the last 90 days is reused free. Skipped contacts end as \"failed\" with last_outcome \"skipped_mobile\", \"skipped_landline\" or \"skipped_unknown_line_type\", and are counted in skipped_count.\n\n* `` - Off\n* `skip_mobile` - Skip mobile numbers\n* `skip_landline` - Skip landlines",
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/LineTypeFilterEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            }
                        ]
                    },
                    "skipped_count": {
                        "type": "integer",
                        "readOnly": true,
                        "description": "Contacts the number-type filter skipped without calling. Also counted in failed_count.",
                        "default": 0
                    },
                    "warnings": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CampaignWarning"
                        },
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "agent",
                    "agent_name",
                    "blocked_detail",
                    "blocked_reason",
                    "completed_count",
                    "created_at",
                    "failed_count",
                    "in_progress_count",
                    "name",
                    "public_id",
                    "status",
                    "total_count",
                    "updated_at",
                    "warnings"
                ]
            },
            "CampaignActionRequest": {
                "type": "object",
                "properties": {
                    "consent_to_charge": {
                        "type": "boolean",
                        "description": "Must be true for start; ignored for pause and cancel."
                    }
                }
            },
            "CampaignContact": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "phone_number": {
                        "type": "string",
                        "readOnly": true
                    },
                    "from_number": {
                        "type": "string",
                        "readOnly": true
                    },
                    "variables": {
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CampaignContactStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "attempts": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "next_attempt_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "last_outcome": {
                        "type": "string",
                        "readOnly": true,
                        "description": "How the latest attempt ended: success, no_answer, voicemail, failed, destination_not_allowed; or, never called, skipped_mobile, skipped_landline, skipped_unknown_line_type (the number-type filter) and line_type_check_failed (its lookup kept failing). More values may be added."
                    },
                    "call_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "dial_sip_status": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "dial_sip_reason": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "dial_sip_kind": {
                        "nullable": true,
                        "readOnly": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/SipAnswerKindEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "pre_call_sms": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CampaignContactPreCallSms"
                            }
                        ],
                        "nullable": true,
                        "readOnly": true
                    },
                    "line_type": {
                        "type": "string",
                        "readOnly": true,
                        "description": "The number's type from the number-type filter's lookup: mobile, fixed, voip, toll_free or unknown; \"\" when not looked up. More values may be added."
                    },
                    "line_type_checked_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true,
                        "description": "When the number's type was looked up (null when it was not)."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "attempts",
                    "call_id",
                    "created_at",
                    "dial_sip_kind",
                    "dial_sip_reason",
                    "dial_sip_status",
                    "from_number",
                    "id",
                    "last_outcome",
                    "next_attempt_at",
                    "phone_number",
                    "pre_call_sms",
                    "status",
                    "updated_at",
                    "variables"
                ]
            },
            "CampaignContactInputRequest": {
                "type": "object",
                "properties": {
                    "phone": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Provide phone or phone_number; other flat fields become call variables."
                    },
                    "phone_number": {
                        "type": "string",
                        "minLength": 1
                    },
                    "name": {
                        "type": "string",
                        "minLength": 1
                    }
                },
                "additionalProperties": {
                    "oneOf": [
                        {
                            "type": "string"
                        },
                        {
                            "type": "number"
                        },
                        {
                            "type": "boolean"
                        }
                    ],
                    "nullable": true
                }
            },
            "CampaignContactPreCallSms": {
                "type": "object",
                "description": "Schema only: the outcome of a contact's pre-call text.",
                "properties": {
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CampaignContactPreCallSmsStatusEnum"
                            }
                        ],
                        "description": "\"sent\" (the carrier accepted it), \"failed\", \"unknown\" (the carrier may have sent it) or \"skipped\" (not sent, e.g. a landline or a sender that cannot text yet).\n\n* `sent` - sent\n* `failed` - failed\n* `unknown` - unknown\n* `skipped` - skipped"
                    },
                    "error_code": {
                        "type": "string",
                        "nullable": true
                    },
                    "error_message": {
                        "type": "string",
                        "nullable": true
                    },
                    "sms_id": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": true,
                        "description": "The SMS message, readable at GET /v1/sms/{id}."
                    },
                    "delivery_status": {
                        "type": "string",
                        "nullable": true,
                        "description": "What the carrier later reported (Twilio only), e.g. delivered or undelivered."
                    },
                    "at": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "required": [
                    "at",
                    "delivery_status",
                    "error_code",
                    "error_message",
                    "sms_id",
                    "status"
                ]
            },
            "CampaignContactPreCallSmsStatusEnum": {
                "enum": [
                    "sent",
                    "failed",
                    "unknown",
                    "skipped"
                ],
                "type": "string",
                "description": "* `sent` - sent\n* `failed` - failed\n* `unknown` - unknown\n* `skipped` - skipped"
            },
            "CampaignContactStatusEnum": {
                "enum": [
                    "pending",
                    "scheduled",
                    "calling",
                    "completed",
                    "failed",
                    "exhausted"
                ],
                "type": "string",
                "description": "* `pending` - Pending\n* `scheduled` - Scheduled\n* `calling` - Calling\n* `completed` - Completed\n* `failed` - Failed\n* `exhausted` - Exhausted"
            },
            "CampaignContactsAdded": {
                "type": "object",
                "properties": {
                    "accepted": {
                        "type": "integer"
                    },
                    "rejected": {
                        "type": "integer"
                    },
                    "errors": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "errors_truncated": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "accepted",
                    "errors",
                    "errors_truncated",
                    "rejected"
                ]
            },
            "CampaignContactsRequest": {
                "type": "object",
                "properties": {
                    "contacts": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CampaignContactInputRequest"
                        }
                    }
                }
            },
            "CampaignContactsUploadRequest": {
                "type": "object",
                "properties": {
                    "file": {
                        "type": "string",
                        "format": "binary"
                    },
                    "mapping": {}
                },
                "required": [
                    "file"
                ]
            },
            "CampaignDetailResponse": {
                "type": "object",
                "properties": {
                    "public_id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "agent": {
                        "type": "integer"
                    },
                    "agent_name": {
                        "type": "string",
                        "readOnly": true
                    },
                    "from_number": {
                        "type": "string",
                        "description": "The first number of the caller ID pool. Sending only from_number makes a pool of that one number.",
                        "maxLength": 32
                    },
                    "from_numbers": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "maxLength": 32
                        },
                        "description": "The caller ID pool, in order: E.164 numbers of this organization, at most 50. Each contact is dialed from the number it was last called from, else one with its area code, else one in its timezone, else the least used. Send this or from_number.",
                        "maxItems": 50,
                        "minItems": 1
                    },
                    "max_calls_per_number_per_day": {
                        "type": "integer",
                        "maximum": 500,
                        "minimum": 1,
                        "nullable": true,
                        "description": "Outbound calls each pool number may place in a rolling 24 hours, counting every outbound call from that number in your organization (1-500, default 75 for new campaigns; null for no per-number limit). Numbers with less than a week of outbound calls start lower and ramp up. Contacts wait when every number is at its limit."
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Status3f0Enum"
                            }
                        ],
                        "readOnly": true
                    },
                    "blocked_reason": {
                        "nullable": true,
                        "readOnly": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/BlockedReasonEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "blocked_detail": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "timezone": {
                        "type": "string",
                        "description": "IANA timezone the daily window runs in. When omitted on create it defaults to the from number's area-code or country zone, else UTC.",
                        "maxLength": 64
                    },
                    "window_timezone_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WindowTimezoneModeEnum"
                            }
                        ],
                        "description": "\"contact\" runs the daily window in each contact's local time, from the contact's US or Canadian area code (other contacts use the campaign timezone); \"campaign\" runs it in the campaign timezone for everyone. Default \"contact\" for new campaigns; campaigns created before this setting keep \"campaign\".\n\n* `campaign` - Campaign timezone\n* `contact` - Each contact's local time"
                    },
                    "calling_hours_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallingHoursModeEnum"
                            }
                        ],
                        "description": "\"state_defaults\" also holds each US contact to its state's default calling hours in its local time (from its area code, and its state variable when it names another state): a call starts only when the daily window and the state's hours both allow it, and a contact outside them waits. US numbers with no state get 8am-9pm. Numbers outside the US get only the daily window. \"campaign_window\" uses the daily window alone. Default \"state_defaults\" for new campaigns; campaigns created before this setting keep \"campaign_window\". The hours are listed at https://docs.thunderphone.com/guides/outbound-calling-laws.\n\n* `state_defaults` - Each state's default calling hours and the campaign window\n* `campaign_window` - The campaign window only",
                        "default": "campaign_window"
                    },
                    "calling_hours_exempt_states": {
                        "description": "Two-letter US state codes whose default hours this campaign skips in state_defaults mode: contacts there get only the daily window. Default [].",
                        "default": []
                    },
                    "daily_window_start": {
                        "type": "string",
                        "format": "time",
                        "description": "Start of the daily window. Send both window fields or neither; neither means 09:00-17:00 on create."
                    },
                    "daily_window_end": {
                        "type": "string",
                        "format": "time",
                        "description": "End of the daily window (exclusive); neither window field on create means 09:00-17:00. An end earlier than daily_window_start makes an overnight window, dialed from the start until the end the next day; it is saved with a warning."
                    },
                    "start_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "end_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "max_concurrent_calls": {
                        "type": "integer",
                        "maximum": 10,
                        "minimum": 1
                    },
                    "max_attempts": {
                        "type": "integer",
                        "maximum": 32767,
                        "minimum": 1,
                        "description": "Total tries per contact. At most 10 unless staff raised your organization's limit."
                    },
                    "retry_backoff_minutes": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "description": "Minutes before a retry. At least 30 unless staff lowered your organization's minimum."
                    },
                    "retry_strategy": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RetryStrategyEnum"
                            }
                        ],
                        "description": "\"spread\" moves each retry to a later day and a different part of the contact's day (morning, midday, late afternoon), at least retry_backoff_minutes after the last attempt; \"fixed\" retries exactly retry_backoff_minutes later. Default \"spread\" for new campaigns; campaigns created before this setting keep \"fixed\".\n\n* `fixed` - Fixed backoff\n* `spread` - Spread across days and times of day"
                    },
                    "retry_on": {},
                    "double_dial": {
                        "type": "boolean",
                        "description": "After a call rings out unanswered, call once more from the same number 30-60 seconds later. The redial is not an attempt. It can ring through iPhone Do Not Disturb when Allow Repeated Calls is on."
                    },
                    "total_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "completed_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "failed_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "in_progress_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "pre_call_sms_enabled": {
                        "type": "boolean",
                        "description": "Text each contact before their first call (never before retries). Needs pre_call_sms_from_number. A failed text never stops the call."
                    },
                    "pre_call_sms_from_number": {
                        "type": "string",
                        "description": "E.164 number that sends the pre-call text: an SMS-capable number on your own Twilio or Telnyx connection. ThunderPhone numbers cannot text.",
                        "maxLength": 32
                    },
                    "pre_call_sms_template": {
                        "type": "string",
                        "description": "The pre-call text, up to 1600 characters. Uses {{variable}} placeholders: the contact's variables plus {{org_name}}, {{agent_name}} and {{call_from_number}}. A missing variable renders as nothing; {{name|default}} sets a fallback. Blank means the default text."
                    },
                    "pre_call_sms_lead_minutes": {
                        "type": "integer",
                        "maximum": 60,
                        "minimum": 1,
                        "description": "Minutes between the text and the call, 1-60. The call goes out on the first campaign tick (every 5 minutes) after that."
                    },
                    "line_type_filter": {
                        "description": "Look up each contact's number before its first call and skip some types. \"skip_mobile\" calls landlines, VoIP and toll-free numbers and skips mobiles and numbers the lookup cannot classify (for campaigns without consent to call mobiles with an AI voice); \"skip_landline\" skips landlines; \"\" (default) looks nothing up. Each lookup is charged to the balance (a fraction of a cent: Telnyx's list price with your pricing's markup); a result your organization paid for in the last 90 days is reused free. Skipped contacts end as \"failed\" with last_outcome \"skipped_mobile\", \"skipped_landline\" or \"skipped_unknown_line_type\", and are counted in skipped_count.\n\n* `` - Off\n* `skip_mobile` - Skip mobile numbers\n* `skip_landline` - Skip landlines",
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/LineTypeFilterEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            }
                        ]
                    },
                    "skipped_count": {
                        "type": "integer",
                        "readOnly": true,
                        "description": "Contacts the number-type filter skipped without calling. Also counted in failed_count.",
                        "default": 0
                    },
                    "warnings": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CampaignWarning"
                        },
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "contacts": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CampaignContact"
                        }
                    }
                },
                "required": [
                    "agent",
                    "agent_name",
                    "blocked_detail",
                    "blocked_reason",
                    "completed_count",
                    "contacts",
                    "created_at",
                    "failed_count",
                    "in_progress_count",
                    "name",
                    "public_id",
                    "status",
                    "total_count",
                    "updated_at",
                    "warnings"
                ]
            },
            "CampaignRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "agent": {
                        "type": "integer"
                    },
                    "from_number": {
                        "type": "string",
                        "minLength": 1,
                        "description": "The first number of the caller ID pool. Sending only from_number makes a pool of that one number.",
                        "maxLength": 32
                    },
                    "from_numbers": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 32
                        },
                        "description": "The caller ID pool, in order: E.164 numbers of this organization, at most 50. Each contact is dialed from the number it was last called from, else one with its area code, else one in its timezone, else the least used. Send this or from_number.",
                        "maxItems": 50,
                        "minItems": 1
                    },
                    "max_calls_per_number_per_day": {
                        "type": "integer",
                        "maximum": 500,
                        "minimum": 1,
                        "nullable": true,
                        "description": "Outbound calls each pool number may place in a rolling 24 hours, counting every outbound call from that number in your organization (1-500, default 75 for new campaigns; null for no per-number limit). Numbers with less than a week of outbound calls start lower and ramp up. Contacts wait when every number is at its limit."
                    },
                    "timezone": {
                        "type": "string",
                        "minLength": 1,
                        "description": "IANA timezone the daily window runs in. When omitted on create it defaults to the from number's area-code or country zone, else UTC.",
                        "maxLength": 64
                    },
                    "window_timezone_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WindowTimezoneModeEnum"
                            }
                        ],
                        "description": "\"contact\" runs the daily window in each contact's local time, from the contact's US or Canadian area code (other contacts use the campaign timezone); \"campaign\" runs it in the campaign timezone for everyone. Default \"contact\" for new campaigns; campaigns created before this setting keep \"campaign\".\n\n* `campaign` - Campaign timezone\n* `contact` - Each contact's local time"
                    },
                    "calling_hours_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallingHoursModeEnum"
                            }
                        ],
                        "description": "\"state_defaults\" also holds each US contact to its state's default calling hours in its local time (from its area code, and its state variable when it names another state): a call starts only when the daily window and the state's hours both allow it, and a contact outside them waits. US numbers with no state get 8am-9pm. Numbers outside the US get only the daily window. \"campaign_window\" uses the daily window alone. Default \"state_defaults\" for new campaigns; campaigns created before this setting keep \"campaign_window\". The hours are listed at https://docs.thunderphone.com/guides/outbound-calling-laws.\n\n* `state_defaults` - Each state's default calling hours and the campaign window\n* `campaign_window` - The campaign window only"
                    },
                    "calling_hours_exempt_states": {
                        "description": "Two-letter US state codes whose default hours this campaign skips in state_defaults mode: contacts there get only the daily window. Default []."
                    },
                    "daily_window_start": {
                        "type": "string",
                        "format": "time",
                        "description": "Start of the daily window. Send both window fields or neither; neither means 09:00-17:00 on create."
                    },
                    "daily_window_end": {
                        "type": "string",
                        "format": "time",
                        "description": "End of the daily window (exclusive); neither window field on create means 09:00-17:00. An end earlier than daily_window_start makes an overnight window, dialed from the start until the end the next day; it is saved with a warning."
                    },
                    "start_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "end_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "max_concurrent_calls": {
                        "type": "integer",
                        "maximum": 10,
                        "minimum": 1
                    },
                    "max_attempts": {
                        "type": "integer",
                        "maximum": 32767,
                        "minimum": 1,
                        "description": "Total tries per contact. At most 10 unless staff raised your organization's limit."
                    },
                    "retry_backoff_minutes": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "description": "Minutes before a retry. At least 30 unless staff lowered your organization's minimum."
                    },
                    "retry_strategy": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RetryStrategyEnum"
                            }
                        ],
                        "description": "\"spread\" moves each retry to a later day and a different part of the contact's day (morning, midday, late afternoon), at least retry_backoff_minutes after the last attempt; \"fixed\" retries exactly retry_backoff_minutes later. Default \"spread\" for new campaigns; campaigns created before this setting keep \"fixed\".\n\n* `fixed` - Fixed backoff\n* `spread` - Spread across days and times of day"
                    },
                    "retry_on": {},
                    "double_dial": {
                        "type": "boolean",
                        "description": "After a call rings out unanswered, call once more from the same number 30-60 seconds later. The redial is not an attempt. It can ring through iPhone Do Not Disturb when Allow Repeated Calls is on."
                    },
                    "pre_call_sms_enabled": {
                        "type": "boolean",
                        "description": "Text each contact before their first call (never before retries). Needs pre_call_sms_from_number. A failed text never stops the call."
                    },
                    "pre_call_sms_from_number": {
                        "type": "string",
                        "description": "E.164 number that sends the pre-call text: an SMS-capable number on your own Twilio or Telnyx connection. ThunderPhone numbers cannot text.",
                        "maxLength": 32
                    },
                    "pre_call_sms_template": {
                        "type": "string",
                        "description": "The pre-call text, up to 1600 characters. Uses {{variable}} placeholders: the contact's variables plus {{org_name}}, {{agent_name}} and {{call_from_number}}. A missing variable renders as nothing; {{name|default}} sets a fallback. Blank means the default text."
                    },
                    "pre_call_sms_lead_minutes": {
                        "type": "integer",
                        "maximum": 60,
                        "minimum": 1,
                        "description": "Minutes between the text and the call, 1-60. The call goes out on the first campaign tick (every 5 minutes) after that."
                    },
                    "line_type_filter": {
                        "description": "Look up each contact's number before its first call and skip some types. \"skip_mobile\" calls landlines, VoIP and toll-free numbers and skips mobiles and numbers the lookup cannot classify (for campaigns without consent to call mobiles with an AI voice); \"skip_landline\" skips landlines; \"\" (default) looks nothing up. Each lookup is charged to the balance (a fraction of a cent: Telnyx's list price with your pricing's markup); a result your organization paid for in the last 90 days is reused free. Skipped contacts end as \"failed\" with last_outcome \"skipped_mobile\", \"skipped_landline\" or \"skipped_unknown_line_type\", and are counted in skipped_count.\n\n* `` - Off\n* `skip_mobile` - Skip mobile numbers\n* `skip_landline` - Skip landlines",
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/LineTypeFilterEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            }
                        ]
                    }
                },
                "required": [
                    "agent",
                    "name"
                ]
            },
            "CampaignStats": {
                "type": "object",
                "properties": {
                    "total": {
                        "type": "integer"
                    },
                    "completed": {
                        "type": "integer"
                    },
                    "failed": {
                        "type": "integer"
                    },
                    "in_progress": {
                        "type": "integer"
                    },
                    "skipped": {
                        "type": "integer",
                        "description": "Contacts the number-type filter skipped without calling (also counted in failed).",
                        "default": 0
                    },
                    "by_status": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "integer"
                        }
                    },
                    "recent_calls": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "by_status",
                    "completed",
                    "failed",
                    "in_progress",
                    "recent_calls",
                    "total"
                ]
            },
            "CampaignWarning": {
                "type": "object",
                "description": "Schema only: a saved setting worth a second look (see Campaign.warnings).",
                "properties": {
                    "code": {
                        "type": "string",
                        "description": "\"outside_calling_hours\", \"window_crosses_midnight\", \"empty_window\", \"outside_state_hours\" or \"pre_call_sms_sender_not_ready\"."
                    },
                    "field": {
                        "type": "string",
                        "description": "The campaign field the warning is about."
                    },
                    "detail": {
                        "type": "string"
                    }
                },
                "required": [
                    "code",
                    "detail",
                    "field"
                ]
            },
            "CarrierRegistrationKindEnum": {
                "enum": [
                    "cnam",
                    "shaken_stir",
                    "voice_integrity"
                ],
                "type": "string",
                "description": "* `cnam` - Caller name\n* `shaken_stir` - SHAKEN/STIR\n* `voice_integrity` - Spam-filter registration"
            },
            "CarrierRegistrationProviderEnum": {
                "enum": [
                    "telnyx",
                    "twilio"
                ],
                "type": "string",
                "description": "* `telnyx` - Telnyx\n* `twilio` - Twilio"
            },
            "CarrierRegistrationStatusEnum": {
                "enum": [
                    "pending",
                    "submitted",
                    "in_review",
                    "approved",
                    "rejected",
                    "failed",
                    "off"
                ],
                "type": "string",
                "description": "* `pending` - Pending\n* `submitted` - Submitted\n* `in_review` - In review\n* `approved` - Approved\n* `rejected` - Rejected\n* `failed` - Failed\n* `off` - Off"
            },
            "CarrierRoutingEnum": {
                "enum": [
                    "direct",
                    "migration_split",
                    "customer"
                ],
                "type": "string",
                "description": "* `direct` - Direct\n* `migration_split` - Migration split\n* `customer` - Routed by the customer"
            },
            "ChannelEnum": {
                "enum": [
                    "web",
                    "telephony"
                ],
                "type": "string",
                "description": "* `web` - web\n* `telephony` - telephony"
            },
            "CleanupRequest": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "numbers": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "call_purpose": {
                        "type": "string"
                    },
                    "status": {
                        "$ref": "#/components/schemas/CleanupStatusEnum"
                    },
                    "results": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "nullable": true,
                        "description": "remediated, not_flagged, requires_review, ineligible and refused, each a list of numbers."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "required": [
                    "call_purpose",
                    "created_at",
                    "id",
                    "numbers",
                    "results",
                    "status",
                    "updated_at"
                ]
            },
            "CleanupRequestCreateRequest": {
                "type": "object",
                "properties": {
                    "monitored_number_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        },
                        "minItems": 1
                    },
                    "call_purpose": {
                        "type": "string",
                        "minLength": 1,
                        "description": "How the numbers are used, in plain words.",
                        "maxLength": 2000
                    }
                },
                "required": [
                    "call_purpose",
                    "monitored_number_ids"
                ]
            },
            "CleanupRequestList": {
                "type": "object",
                "properties": {
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CleanupRequest"
                        }
                    }
                },
                "required": [
                    "results"
                ]
            },
            "CleanupStatusEnum": {
                "enum": [
                    "pending",
                    "in_progress",
                    "completed",
                    "failed",
                    "cancelled"
                ],
                "type": "string",
                "description": "* `pending` - pending\n* `in_progress` - in_progress\n* `completed` - completed\n* `failed` - failed\n* `cancelled` - cancelled"
            },
            "ConfigSourceEnum": {
                "enum": [
                    "draft"
                ],
                "type": "string",
                "description": "* `draft` - draft"
            },
            "ConfirmPriceRequest": {
                "type": "object",
                "properties": {
                    "confirm_price": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/MonitoringPriceRequest"
                            }
                        ],
                        "description": "The price object from the overview, unchanged."
                    }
                },
                "required": [
                    "confirm_price"
                ]
            },
            "ConnectionNameSuggestion": {
                "type": "object",
                "properties": {
                    "suggested_connection_name": {
                        "type": "string"
                    },
                    "suggested_connection_name_inferred": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "suggested_connection_name",
                    "suggested_connection_name_inferred"
                ]
            },
            "ConnectionTest": {
                "type": "object",
                "properties": {
                    "verification_evidence": {
                        "$ref": "#/components/schemas/VoipVerificationEvidence"
                    },
                    "test_result": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "suggested_connection_name": {
                        "type": "string"
                    },
                    "suggested_connection_name_inferred": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "suggested_connection_name",
                    "suggested_connection_name_inferred",
                    "test_result",
                    "verification_evidence"
                ]
            },
            "ConsentAnnouncementAttestation": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "organization_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "user_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "agent_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "attestation_text_version": {
                        "type": "string",
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ConsentAnnouncementAttestationStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "attested_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "status_updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "affirmed": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "attestation_text_sha256": {
                        "type": "string",
                        "readOnly": true
                    },
                    "locale": {
                        "type": "string",
                        "readOnly": true
                    },
                    "user_role": {
                        "type": "string",
                        "readOnly": true
                    },
                    "status_reason": {
                        "type": "string",
                        "readOnly": true
                    }
                },
                "required": [
                    "affirmed",
                    "agent_id",
                    "attestation_text_sha256",
                    "attestation_text_version",
                    "attested_at",
                    "id",
                    "locale",
                    "organization_id",
                    "status",
                    "status_reason",
                    "status_updated_at",
                    "user_id",
                    "user_role"
                ]
            },
            "ConsentAnnouncementAttestationCreateRequest": {
                "type": "object",
                "description": "v2 attestation payload (Sol r1 finding 5 / r2 finding 4, as amended\nby Alex's single-checkbox ruling, 2026-07-31 / PR #1096): the\nconsolidated statement is affirmed by one explicit ``affirmed: true``\n(the legacy ``accepted`` field no longer exists, so legacy payloads\n400), and the client must assent to the SERVER-OWNED canonical\nstatement package for its display locale — by echoing the\n``statement_sha256`` returned by GET consent-attestations, or by\nsending ``rendered_text`` that hashes to it. Blank or mismatched\nevidence is rejected; the server stores its own canonical hash, never a\nclient assertion.",
                "properties": {
                    "affirmed": {
                        "type": "boolean"
                    },
                    "attestation_text_version": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                    },
                    "locale": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 16
                    },
                    "statement_sha256": {
                        "type": "string",
                        "maxLength": 64
                    },
                    "rendered_text": {
                        "type": "string",
                        "maxLength": 20000
                    }
                },
                "required": [
                    "affirmed",
                    "attestation_text_version",
                    "locale"
                ]
            },
            "ConsentAnnouncementAttestationStatusEnum": {
                "enum": [
                    "active",
                    "suspended",
                    "revoked"
                ],
                "type": "string",
                "description": "* `active` - Active\n* `suspended` - Suspended by ThunderPhone\n* `revoked` - Revoked by ThunderPhone"
            },
            "ContactOptOut": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "number": {
                        "type": "string",
                        "readOnly": true
                    },
                    "channel": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ContactOptOutChannelEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ContactOptOutSourceEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "source_reference": {
                        "type": "string",
                        "readOnly": true
                    },
                    "blocks": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "blocks",
                    "channel",
                    "created_at",
                    "id",
                    "number",
                    "source",
                    "source_reference",
                    "updated_at"
                ]
            },
            "ContactOptOutChannelEnum": {
                "enum": [
                    "sms",
                    "call"
                ],
                "type": "string",
                "description": "* `sms` - Texts\n* `call` - Calls"
            },
            "ContactOptOutCreateRequest": {
                "type": "object",
                "properties": {
                    "number": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                    },
                    "channel": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ContactOptOutRequestChannelEnum"
                            }
                        ],
                        "default": "both"
                    }
                },
                "required": [
                    "number"
                ]
            },
            "ContactOptOutCreateResult": {
                "type": "object",
                "properties": {
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ContactOptOut"
                        }
                    }
                },
                "required": [
                    "results"
                ]
            },
            "ContactOptOutList": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ContactOptOut"
                        }
                    }
                },
                "required": [
                    "count",
                    "results"
                ]
            },
            "ContactOptOutRequestChannelEnum": {
                "enum": [
                    "sms",
                    "call",
                    "both"
                ],
                "type": "string",
                "description": "* `sms` - sms\n* `call` - call\n* `both` - both"
            },
            "ContactOptOutSourceEnum": {
                "enum": [
                    "api",
                    "manual",
                    "carrier",
                    "inbound_stop",
                    "call_request"
                ],
                "type": "string",
                "description": "* `api` - API\n* `manual` - Added in the dashboard\n* `carrier` - Carrier opt-out\n* `inbound_stop` - Replied STOP\n* `call_request` - Asked on a call"
            },
            "ConversationGenerateRequest": {
                "type": "object",
                "properties": {
                    "dry_run": {
                        "type": "boolean",
                        "default": false,
                        "description": "Return the cost quote and its quote_id only. Nothing runs and nothing is spent."
                    },
                    "quote_id": {
                        "type": "string",
                        "minLength": 1,
                        "description": "The quote_id the dry run returned; required unless dry_run. Good for 15 minutes, only for the same arguments, and for one job: used up durably as the job starts; a start that is refused or fails first leaves it usable. Refused when the run would now cost more than it quoted."
                    },
                    "max_cost_cents": {
                        "type": "integer",
                        "maximum": 10000,
                        "minimum": 1,
                        "description": "Hard spend cap in US cents; required unless dry_run. Each request first sets aside the most it can cost, and the job stops instead of sending one that does not fit, keeping what it already wrote; it is charged what its requests really cost. Leave about twice the quote's largest_reservation_cents of headroom."
                    },
                    "count": {
                        "type": "integer",
                        "maximum": 20,
                        "minimum": 1,
                        "default": 5,
                        "description": "Conversations to write."
                    },
                    "style": {
                        "type": "string",
                        "minLength": 1,
                        "default": "normal",
                        "description": "\"normal\" or \"adversarial\": callers who push on the prompt's weak spots. Adversarial conversations always go to the dev split."
                    },
                    "target": {
                        "type": "string",
                        "nullable": true,
                        "minLength": 1,
                        "description": "\"changed_behaviors\" aims the callers at the passages changed in the last prompt edit."
                    },
                    "use_draft": {
                        "type": "boolean",
                        "default": true,
                        "description": "Talk to the draft configuration (default) or the deployed one."
                    },
                    "direction": {
                        "type": "string",
                        "minLength": 1,
                        "default": "inbound",
                        "description": "\"inbound\" (the caller rings the agent) or \"outbound\" (the agent places the call)."
                    },
                    "max_caller_turns": {
                        "type": "integer",
                        "maximum": 16,
                        "minimum": 1,
                        "default": 16,
                        "description": "Caller turns per conversation at most."
                    },
                    "max_moments": {
                        "type": "integer",
                        "maximum": 5,
                        "minimum": 0,
                        "default": 3,
                        "description": "Hard moments per conversation turned into validation examples."
                    }
                }
            },
            "ConversationImportRequest": {
                "type": "object",
                "properties": {
                    "dry_run": {
                        "type": "boolean",
                        "default": false,
                        "description": "Return the cost quote and its quote_id only. Nothing runs and nothing is spent."
                    },
                    "quote_id": {
                        "type": "string",
                        "minLength": 1,
                        "description": "The quote_id the dry run returned; required unless dry_run. Good for 15 minutes, only for the same arguments, and for one job: used up durably as the job starts; a start that is refused or fails first leaves it usable. Refused when the run would now cost more than it quoted."
                    },
                    "max_cost_cents": {
                        "type": "integer",
                        "maximum": 10000,
                        "minimum": 1,
                        "description": "Hard spend cap in US cents; required unless dry_run. Each request first sets aside the most it can cost, and the job stops instead of sending one that does not fit, keeping what it already wrote; it is charged what its requests really cost. Leave about twice the quote's largest_reservation_cents of headroom."
                    },
                    "since_days": {
                        "type": "integer",
                        "maximum": 365,
                        "minimum": 1,
                        "default": 30,
                        "description": "How far back to look for calls."
                    },
                    "max_calls": {
                        "type": "integer",
                        "maximum": 200,
                        "minimum": 1,
                        "default": 40,
                        "description": "Calls to import at most."
                    },
                    "include_test_calls": {
                        "type": "boolean",
                        "default": false,
                        "description": "Also import the agent's builder test calls."
                    },
                    "call_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "description": "Import only these calls (call ids), from any day, instead of a spread of recent calls; since_days does not apply and max_calls defaults to their number. The dry run's call_ids_not_taken lists the ones it cannot import.",
                        "maxItems": 200,
                        "minItems": 1
                    },
                    "max_moments": {
                        "type": "integer",
                        "maximum": 5,
                        "minimum": 0,
                        "default": 3,
                        "description": "Hard moments per call turned into validation examples, plus one ordinary moment."
                    }
                }
            },
            "ConversationJob": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "agent_id": {
                        "type": "integer"
                    },
                    "kind": {
                        "type": "string",
                        "description": "generate, import or refresh."
                    },
                    "status": {
                        "type": "string",
                        "description": "pending, running, completed, stopped (at the cost cap) or failed."
                    },
                    "params": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "estimate_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "max_cost_cents": {
                        "type": "integer"
                    },
                    "cost_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "progress": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "error": {
                        "type": "string"
                    },
                    "result": {
                        "$ref": "#/components/schemas/ConversationJobResult"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "started_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "completed_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    }
                },
                "required": [
                    "agent_id",
                    "completed_at",
                    "cost_cents",
                    "created_at",
                    "error",
                    "estimate_cents",
                    "id",
                    "kind",
                    "max_cost_cents",
                    "params",
                    "progress",
                    "result",
                    "started_at",
                    "status"
                ]
            },
            "ConversationJobResult": {
                "type": "object",
                "properties": {
                    "conversations": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "description": "What the job wrote. For API keys and OAuth tokens a test-split conversation is its hidden shape (ids and counts, no example count, no refresh outcome)."
                    },
                    "conversation_count": {
                        "type": "integer"
                    },
                    "example_count": {
                        "type": "integer",
                        "description": "Examples of the conversations this caller can see."
                    },
                    "split_counts": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "integer"
                        }
                    },
                    "outcome_counts": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "integer"
                        },
                        "description": "A refresh job: how many of the conversations this caller can see were current, repointed, restored, rewritten, retired, skipped or failed."
                    },
                    "errors": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "description": "Failures that did not stop the job: conversation_id, split and message. Errors about test-split conversations are left out for API keys and OAuth tokens."
                    },
                    "hidden_error_count": {
                        "type": "integer",
                        "description": "How many errors were left out for this caller."
                    }
                },
                "required": [
                    "conversation_count",
                    "conversations",
                    "errors",
                    "example_count",
                    "hidden_error_count",
                    "split_counts"
                ]
            },
            "ConversationJobStart": {
                "type": "object",
                "properties": {
                    "dry_run": {
                        "type": "boolean"
                    },
                    "kind": {
                        "type": "string"
                    },
                    "params": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "estimate_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "estimate": {
                        "$ref": "#/components/schemas/ToolkitCostEstimate"
                    },
                    "quote_id": {
                        "type": "string",
                        "description": "A dry run's signed quote; the real run sends it back."
                    },
                    "quote_expires_in_seconds": {
                        "type": "integer"
                    },
                    "next_step": {
                        "type": "string"
                    },
                    "id": {
                        "type": "integer"
                    },
                    "agent_id": {
                        "type": "integer"
                    },
                    "status": {
                        "type": "string"
                    },
                    "max_cost_cents": {
                        "type": "integer"
                    },
                    "cost_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "progress": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "error": {
                        "type": "string"
                    },
                    "result": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "started_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "completed_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    }
                }
            },
            "ConversationRefreshRequest": {
                "type": "object",
                "properties": {
                    "dry_run": {
                        "type": "boolean",
                        "default": false,
                        "description": "Return the cost quote and its quote_id only. Nothing runs and nothing is spent."
                    },
                    "quote_id": {
                        "type": "string",
                        "minLength": 1,
                        "description": "The quote_id the dry run returned; required unless dry_run. Good for 15 minutes, only for the same arguments, and for one job: used up durably as the job starts; a start that is refused or fails first leaves it usable. Refused when the run would now cost more than it quoted."
                    },
                    "max_cost_cents": {
                        "type": "integer",
                        "maximum": 10000,
                        "minimum": 1,
                        "description": "Hard spend cap in US cents; required unless dry_run. Each request first sets aside the most it can cost, and the job stops instead of sending one that does not fit, keeping what it already wrote; it is charged what its requests really cost. Leave about twice the quote's largest_reservation_cents of headroom."
                    },
                    "conversation_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "description": "Refresh only these conversations of the agent (at most 500). Default: every active one.",
                        "maxItems": 500
                    },
                    "from_prompt_revision_id": {
                        "type": "integer",
                        "minimum": 1,
                        "nullable": true,
                        "description": "Refresh only the conversations written for this prompt revision of the agent."
                    },
                    "use_draft": {
                        "type": "boolean",
                        "default": true,
                        "description": "Bring conversations up to the draft prompt (default) or the deployed one."
                    }
                }
            },
            "CreateAgentFromCallRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "description": "The new agent's name. Defaults to the config's agent_name, else \"Agent from call <call_id>\".",
                        "maxLength": 255
                    }
                }
            },
            "CreateAgentFromCallResponse": {
                "type": "object",
                "properties": {
                    "agent": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Agent"
                            }
                        ],
                        "description": "The agent made from the call (deployed as version 1 when it was made)."
                    },
                    "already_existed": {
                        "type": "boolean",
                        "description": "True when an earlier request already made this agent from the call (status 200, nothing created)."
                    },
                    "source_call_id": {
                        "type": "integer",
                        "description": "The call the agent was made from."
                    },
                    "not_copied": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/NotCopiedField"
                        },
                        "description": "Fields of the call's config the agent does not have; it uses its defaults for them."
                    },
                    "next_step": {
                        "type": "string",
                        "description": "What to change in your integration now that the agent exists."
                    }
                },
                "required": [
                    "agent",
                    "already_existed",
                    "next_step",
                    "not_copied",
                    "source_call_id"
                ]
            },
            "CreateInviteRequest": {
                "type": "object",
                "properties": {
                    "email": {
                        "type": "string",
                        "format": "email",
                        "minLength": 1
                    },
                    "role": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Role0b4Enum"
                            }
                        ],
                        "default": "member"
                    }
                },
                "required": [
                    "email"
                ]
            },
            "CreateValidationExampleRequest": {
                "type": "object",
                "properties": {
                    "turn_index": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "kind": {
                        "$ref": "#/components/schemas/KindC85Enum"
                    },
                    "source_issue_id": {
                        "type": "integer",
                        "minimum": 0,
                        "nullable": true
                    }
                },
                "required": [
                    "kind",
                    "turn_index"
                ]
            },
            "CredentialKindEnum": {
                "enum": [
                    "api_key",
                    "session",
                    "oauth"
                ],
                "type": "string",
                "description": "* `api_key` - api_key\n* `session` - session\n* `oauth` - oauth"
            },
            "CustomVoice": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "public_id": {
                        "type": "string"
                    },
                    "display_name": {
                        "type": "string"
                    },
                    "language": {
                        "type": "string"
                    },
                    "gender": {
                        "type": "string",
                        "nullable": true
                    },
                    "status": {
                        "type": "string"
                    },
                    "failure_reason": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "sample_url": {
                        "type": "string",
                        "nullable": true
                    },
                    "agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "warnings": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "required": [
                    "agent_id",
                    "created_at",
                    "display_name",
                    "failure_reason",
                    "gender",
                    "language",
                    "name",
                    "public_id",
                    "sample_url",
                    "status"
                ]
            },
            "DefaultPaymentMethodRequest": {
                "type": "object",
                "properties": {
                    "payment_method_id": {
                        "type": "string",
                        "minLength": 1
                    }
                },
                "required": [
                    "payment_method_id"
                ]
            },
            "DeliveryStatusEnum": {
                "enum": [
                    "queued",
                    "sending",
                    "sent",
                    "delivered",
                    "undelivered",
                    "failed"
                ],
                "type": "string",
                "description": "* `queued` - Queued\n* `sending` - Sending\n* `sent` - Sent\n* `delivered` - Delivered\n* `undelivered` - Undelivered\n* `failed` - Failed"
            },
            "DeployAgentRequest": {
                "type": "object",
                "properties": {
                    "if_updated_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Alias for if_updated_at."
                    },
                    "confirm_price_change": {
                        "type": "boolean",
                        "default": false,
                        "description": "The person agreed to the higher per-minute price this deploy brings. A deploy that raises the price without it deploys nothing and answers 409 price_change_needs_confirmation with the price before and after."
                    }
                }
            },
            "DetailMessage": {
                "type": "object",
                "properties": {
                    "detail": {
                        "type": "string"
                    }
                },
                "required": [
                    "detail"
                ]
            },
            "DeveloperApiKey": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "readOnly": true
                    },
                    "key_prefix": {
                        "type": "string",
                        "readOnly": true
                    },
                    "is_active": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "created_by_name": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true,
                        "description": "Who made the key: their name, else their email. Null when unknown or the user was removed."
                    },
                    "last_used_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "revoked_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "include_held_out_calls": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "The key sees held-out calls in full. In an organization with the agent iteration toolkit, a call whose caller is in an agent's test split is held out: other keys get it as its call_id, start time and held_out only. Off by default; an admin turns it on from the dashboard for an integration that needs every call."
                    }
                },
                "required": [
                    "created_at",
                    "created_by_name",
                    "id",
                    "include_held_out_calls",
                    "is_active",
                    "key_prefix",
                    "last_used_at",
                    "name",
                    "revoked_at"
                ]
            },
            "DeveloperApiKeyCreateRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 120
                    }
                }
            },
            "DeveloperWebhookDeliveriesResendBodyRequest": {
                "type": "object",
                "properties": {
                    "idempotency_key": {
                        "type": "string",
                        "description": "A value unique to this click or request. Repeating a request with the key of the delivery's latest Resend sends nothing new and returns `resent: false`.",
                        "maxLength": 64
                    }
                }
            },
            "DeveloperWebhookDelivery": {
                "type": "object",
                "properties": {
                    "source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DeveloperWebhookDeliverySourceEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "endpoint_id": {
                        "type": "string",
                        "readOnly": true
                    },
                    "endpoint_label": {
                        "type": "string",
                        "readOnly": true
                    },
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "readOnly": true,
                        "nullable": true
                    },
                    "event_type": {
                        "type": "string",
                        "readOnly": true
                    },
                    "call_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DeveloperWebhookDeliveryStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "attempt_count": {
                        "type": "integer",
                        "minimum": 0,
                        "readOnly": true
                    },
                    "http_status": {
                        "type": "integer",
                        "maximum": 599,
                        "minimum": 100,
                        "readOnly": true,
                        "nullable": true
                    },
                    "failure_category": {
                        "readOnly": true,
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/FailureCategoryEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "last_attempt_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "next_retry_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "id": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true,
                        "description": "The event's `event_id`, which identifies this delivery together with `endpoint_id`. Null for the legacy call-finished webhook."
                    },
                    "duration_ms": {
                        "type": "integer",
                        "minimum": 0,
                        "readOnly": true,
                        "nullable": true,
                        "description": "How long the endpoint took on the latest attempt, in milliseconds. Null before an attempt reached it."
                    },
                    "is_test": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "A test send from the dashboard or the test endpoint."
                    },
                    "can_resend": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "True for a real delivery whose retries ran out (`failed`). Resend also needs the endpoint to be active."
                    },
                    "was_resent": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "Someone resent this delivery by hand."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true,
                        "description": "When the event was first queued for this endpoint. A resend changes `last_attempt_at`, not this."
                    },
                    "resent_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true,
                        "description": "When it was last resent by hand."
                    }
                },
                "required": [
                    "attempt_count",
                    "call_id",
                    "can_resend",
                    "created_at",
                    "duration_ms",
                    "endpoint_id",
                    "endpoint_label",
                    "event_type",
                    "failure_category",
                    "http_status",
                    "id",
                    "is_test",
                    "last_attempt_at",
                    "next_retry_at",
                    "resent_at",
                    "source",
                    "status",
                    "url",
                    "was_resent"
                ]
            },
            "DeveloperWebhookDeliverySourceEnum": {
                "enum": [
                    "endpoint",
                    "legacy"
                ],
                "type": "string",
                "description": "* `endpoint` - endpoint\n* `legacy` - legacy"
            },
            "DeveloperWebhookDeliveryStatusEnum": {
                "enum": [
                    "delivered",
                    "retrying",
                    "failed"
                ],
                "type": "string",
                "description": "* `delivered` - delivered\n* `retrying` - retrying\n* `failed` - failed"
            },
            "DeveloperWebhookEndpoint": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "label": {
                        "type": "string",
                        "maxLength": 120
                    },
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 200
                    },
                    "events": {},
                    "status": {
                        "$ref": "#/components/schemas/Status51eEnum"
                    },
                    "agent_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "agent_name": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "secret_hint": {
                        "type": "string",
                        "readOnly": true
                    },
                    "paused_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true,
                        "description": "When ThunderPhone set the endpoint to `failing` after a delivery used up its 24 h retry schedule. Null while active or disabled."
                    },
                    "pause_last_error": {
                        "type": "string",
                        "readOnly": true,
                        "description": "Last delivery error when the endpoint was paused (query strings removed)."
                    },
                    "pause_undelivered_count": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true,
                        "description": "Events not delivered since the endpoint's last successful delivery, counted when it was paused."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "agent_id",
                    "agent_name",
                    "created_at",
                    "id",
                    "label",
                    "pause_last_error",
                    "pause_undelivered_count",
                    "paused_at",
                    "secret_hint",
                    "updated_at",
                    "url"
                ]
            },
            "DeveloperWebhookEndpointCreateUpdateRequest": {
                "type": "object",
                "properties": {
                    "agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120
                    },
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "minLength": 1,
                        "maxLength": 2048
                    },
                    "events": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/EventsEnum"
                        }
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DeveloperWebhookEndpointCreateUpdateStatusEnum"
                            }
                        ],
                        "default": "active"
                    }
                },
                "required": [
                    "label",
                    "url"
                ]
            },
            "DeveloperWebhookEndpointCreateUpdateStatusEnum": {
                "enum": [
                    "active",
                    "disabled",
                    "failing"
                ],
                "type": "string",
                "description": "* `active` - active\n* `disabled` - disabled\n* `failing` - failing"
            },
            "DeveloperWebhookEndpointsRotateSecretBodyRequest": {
                "type": "object",
                "properties": {
                    "include_copies": {
                        "type": "boolean",
                        "default": true,
                        "description": "Also give the new secret to this organization's other endpoints that have the same URL and the same current secret (copies of this endpoint on other agents), so one receiver keeps verifying with one secret."
                    }
                }
            },
            "DeveloperWebhookEndpointsTestBody": {
                "type": "object",
                "properties": {
                    "event_type": {
                        "$ref": "#/components/schemas/EventTypeEnum"
                    },
                    "agent_id": {
                        "type": "integer",
                        "minimum": 1
                    }
                }
            },
            "DeveloperWebhookResendResponse": {
                "type": "object",
                "properties": {
                    "source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DeveloperWebhookDeliverySourceEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "endpoint_id": {
                        "type": "string",
                        "readOnly": true
                    },
                    "endpoint_label": {
                        "type": "string",
                        "readOnly": true
                    },
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "readOnly": true,
                        "nullable": true
                    },
                    "event_type": {
                        "type": "string",
                        "readOnly": true
                    },
                    "call_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DeveloperWebhookDeliveryStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "attempt_count": {
                        "type": "integer",
                        "minimum": 0,
                        "readOnly": true
                    },
                    "http_status": {
                        "type": "integer",
                        "maximum": 599,
                        "minimum": 100,
                        "readOnly": true,
                        "nullable": true
                    },
                    "failure_category": {
                        "readOnly": true,
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/FailureCategoryEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "last_attempt_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "next_retry_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "id": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true,
                        "description": "The event's `event_id`, which identifies this delivery together with `endpoint_id`. Null for the legacy call-finished webhook."
                    },
                    "duration_ms": {
                        "type": "integer",
                        "minimum": 0,
                        "readOnly": true,
                        "nullable": true,
                        "description": "How long the endpoint took on the latest attempt, in milliseconds. Null before an attempt reached it."
                    },
                    "is_test": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "A test send from the dashboard or the test endpoint."
                    },
                    "can_resend": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "True for a real delivery whose retries ran out (`failed`). Resend also needs the endpoint to be active."
                    },
                    "was_resent": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "Someone resent this delivery by hand."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true,
                        "description": "When the event was first queued for this endpoint. A resend changes `last_attempt_at`, not this."
                    },
                    "resent_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true,
                        "description": "When it was last resent by hand."
                    },
                    "resent": {
                        "type": "boolean",
                        "readOnly": true,
                        "description": "False when this idempotency key already resent the delivery and nothing new was sent."
                    }
                },
                "required": [
                    "attempt_count",
                    "call_id",
                    "can_resend",
                    "created_at",
                    "duration_ms",
                    "endpoint_id",
                    "endpoint_label",
                    "event_type",
                    "failure_category",
                    "http_status",
                    "id",
                    "is_test",
                    "last_attempt_at",
                    "next_retry_at",
                    "resent",
                    "resent_at",
                    "source",
                    "status",
                    "url",
                    "was_resent"
                ]
            },
            "DeveloperWebhookRotateSecretResponse": {
                "type": "object",
                "properties": {
                    "endpoint": {
                        "$ref": "#/components/schemas/DeveloperWebhookEndpoint"
                    },
                    "secret": {
                        "type": "string",
                        "description": "The new signing secret. Returned once."
                    },
                    "rotated_endpoint_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                },
                "required": [
                    "endpoint",
                    "rotated_endpoint_ids",
                    "secret"
                ]
            },
            "DeveloperWebhookTestDelivery": {
                "type": "object",
                "properties": {
                    "success": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "event_id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "event_type": {
                        "type": "string",
                        "readOnly": true
                    },
                    "status": {
                        "type": "string",
                        "readOnly": true
                    },
                    "response_code": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "error": {
                        "type": "string",
                        "readOnly": true
                    }
                },
                "required": [
                    "error",
                    "event_id",
                    "event_type",
                    "response_code",
                    "status",
                    "success"
                ]
            },
            "DirectionA4bEnum": {
                "enum": [
                    "inbound",
                    "outbound"
                ],
                "type": "string",
                "description": "* `inbound` - inbound\n* `outbound` - outbound"
            },
            "DirectionD75Enum": {
                "enum": [
                    "outbound",
                    "inbound"
                ],
                "type": "string",
                "description": "* `outbound` - Outbound\n* `inbound` - Inbound"
            },
            "DisclosureStyleEnum": {
                "enum": [
                    "clean",
                    "phone"
                ],
                "type": "string",
                "description": "* `clean` - High quality\n* `phone` - Corporate style"
            },
            "DisclosureVoiceEnum": {
                "enum": [
                    "female",
                    "male"
                ],
                "type": "string",
                "description": "* `female` - Female\n* `male` - Male"
            },
            "DisfluenciesEnum": {
                "enum": [
                    "none",
                    "light"
                ],
                "type": "string",
                "description": "* `none` - none\n* `light` - light"
            },
            "DoNotCallDetectionDisableAttestation": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "organization_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "user_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "user_role": {
                        "type": "string",
                        "readOnly": true
                    },
                    "text_version": {
                        "type": "string",
                        "readOnly": true
                    },
                    "rendered_text_sha256": {
                        "type": "string",
                        "readOnly": true
                    },
                    "locale": {
                        "type": "string",
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Status494Enum"
                            }
                        ],
                        "readOnly": true
                    },
                    "attested_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "status_updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "attested_at",
                    "id",
                    "locale",
                    "organization_id",
                    "rendered_text_sha256",
                    "status",
                    "status_updated_at",
                    "text_version",
                    "user_id",
                    "user_role"
                ]
            },
            "DoNotCallDetectionDisableAttestationCreateRequest": {
                "type": "object",
                "properties": {
                    "accepted": {
                        "type": "boolean"
                    },
                    "text_version": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                    },
                    "statement_sha256": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                    },
                    "locale": {
                        "type": "string",
                        "minLength": 1,
                        "default": "en",
                        "maxLength": 16
                    }
                },
                "required": [
                    "accepted",
                    "statement_sha256",
                    "text_version"
                ]
            },
            "DoNotCallDetectionDisableAttestationStatus": {
                "type": "object",
                "properties": {
                    "text_version": {
                        "type": "string"
                    },
                    "statement_en": {
                        "type": "string"
                    },
                    "statement_sha256": {
                        "type": "string"
                    },
                    "attested": {
                        "type": "boolean"
                    },
                    "attestation": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DoNotCallDetectionDisableAttestation"
                            }
                        ],
                        "nullable": true
                    }
                },
                "required": [
                    "attestation",
                    "attested",
                    "statement_en",
                    "statement_sha256",
                    "text_version"
                ]
            },
            "DocumentBatchUploadRequest": {
                "type": "object",
                "properties": {
                    "file": {
                        "type": "string",
                        "format": "binary"
                    },
                    "name": {
                        "type": "string",
                        "minLength": 1
                    },
                    "files[]": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "binary"
                        }
                    }
                }
            },
            "DocumentImported": {
                "type": "object",
                "properties": {
                    "document": {
                        "$ref": "#/components/schemas/KnowledgeDocument"
                    },
                    "warnings": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "document"
                ]
            },
            "DocumentTextRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "content": {
                        "type": "string",
                        "minLength": 1
                    }
                },
                "required": [
                    "content",
                    "name"
                ]
            },
            "DocumentUploadRequest": {
                "type": "object",
                "properties": {
                    "file": {
                        "type": "string",
                        "format": "binary"
                    },
                    "name": {
                        "type": "string",
                        "minLength": 1
                    }
                },
                "required": [
                    "file"
                ]
            },
            "DocumentsCreated": {
                "type": "object",
                "properties": {
                    "documents": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/KnowledgeDocument"
                        }
                    },
                    "warnings": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "documents"
                ]
            },
            "DraftAcknowledgementFeedbackModeEnum": {
                "enum": [
                    "acknowledgement",
                    "tick",
                    "none"
                ],
                "type": "string",
                "description": "* `acknowledgement` - Spoken acknowledgement\n* `tick` - Ticking sound\n* `none` - Silence"
            },
            "DraftAcknowledgementPromptModeEnum": {
                "enum": [
                    "auto",
                    "manual"
                ],
                "type": "string",
                "description": "* `auto` - Auto\n* `manual` - Manual"
            },
            "DraftAiLiveProcessingDisclosureOverrideEnum": {
                "enum": [
                    "inherit",
                    "on",
                    "off"
                ],
                "type": "string",
                "description": "* `inherit` - Inherit organization setting\n* `on` - On\n* `off` - Off"
            },
            "DraftAudioContextModeEnum": {
                "enum": [
                    "full",
                    "reduced"
                ],
                "type": "string",
                "description": "* `full` - Full\n* `reduced` - Reduced"
            },
            "DraftAudioTierEnum": {
                "enum": [
                    "lite",
                    "standard",
                    "plus",
                    "max",
                    "lean",
                    "hearing",
                    "deep_hearing"
                ],
                "type": "string",
                "description": "* `lite` - Lite\n* `standard` - Standard\n* `plus` - Plus\n* `max` - Max\n* `lean` - Older name for lite, still accepted; responses use lite\n* `hearing` - Older name for plus, still accepted; responses use plus\n* `deep_hearing` - Older name for max, still accepted; responses use max"
            },
            "DraftEagernessEnum": {
                "enum": [
                    "faster",
                    "fast",
                    "normal",
                    "patient"
                ],
                "type": "string",
                "description": "* `faster` - Faster (200 ms)\n* `fast` - Fast (300 ms)\n* `normal` - Normal (500 ms)\n* `patient` - Patient (800 ms)"
            },
            "DraftEndpointingEnum": {
                "enum": [
                    "faster",
                    "fast",
                    "normal",
                    "patient"
                ],
                "type": "string",
                "description": "* `faster` - Faster (200 ms)\n* `fast` - Fast (300 ms)\n* `normal` - Normal (500 ms)\n* `patient` - Patient (800 ms)"
            },
            "DraftExtractionBlocksCompletionEnum": {
                "enum": [
                    "except_transfers",
                    "always",
                    "never"
                ],
                "type": "string",
                "description": "* `except_transfers` - Except transfers\n* `always` - Always\n* `never` - Never"
            },
            "DraftInboundSpeakOrderEnum": {
                "enum": [
                    "agent_first",
                    "caller_first"
                ],
                "type": "string",
                "description": "* `agent_first` - Agent First\n* `caller_first` - Caller First"
            },
            "DraftIntelligenceEnum": {
                "enum": [
                    "core",
                    "pro",
                    "lite",
                    "standard"
                ],
                "type": "string",
                "description": "* `core` - Core\n* `pro` - Pro\n* `lite` - Older name for core, still accepted; responses use core\n* `standard` - Older name for pro, still accepted; responses use pro"
            },
            "DraftIntroClipEnum": {
                "enum": [
                    "none",
                    "stock_recording_notice",
                    "stock_recording_notice_male",
                    "custom"
                ],
                "type": "string",
                "description": "* `none` - Off\n* `stock_recording_notice` - Recording notice (female)\n* `stock_recording_notice_male` - Recording notice (male)\n* `custom` - Custom clip"
            },
            "DraftLanguageSwitchingEnum": {
                "enum": [
                    "ask_first",
                    "follow_caller"
                ],
                "type": "string",
                "description": "* `ask_first` - Ask first\n* `follow_caller` - Follow caller"
            },
            "DraftOutboundSpeakOrderEnum": {
                "enum": [
                    "agent_first",
                    "caller_first"
                ],
                "type": "string",
                "description": "* `agent_first` - Agent First\n* `caller_first` - Caller First"
            },
            "DraftPhiProcessingOverrideEnum": {
                "enum": [
                    "inherit",
                    "phi",
                    "no_phi"
                ],
                "type": "string",
                "description": "* `inherit` - Use organization setting\n* `phi` - Processes PHI\n* `no_phi` - Does not process PHI"
            },
            "DraftPlaySoundAssetEnum": {
                "enum": [
                    "chime",
                    "ding",
                    "beep"
                ],
                "type": "string",
                "description": "* `` - None\n* `chime` - Chime\n* `ding` - Ding\n* `beep` - Beep"
            },
            "DraftProductEnum": {
                "enum": [
                    "spark",
                    "bolt",
                    "storm-base",
                    "storm-base-with-ack",
                    "storm-extra",
                    "storm-extra-with-ack",
                    "full-duplex"
                ],
                "type": "string",
                "description": "* `spark` - Spark\n* `bolt` - Bolt\n* `storm-base` - Storm Base\n* `storm-base-with-ack` - Storm Base + Ack\n* `storm-extra` - Storm Extra\n* `storm-extra-with-ack` - Storm Extra + Ack\n* `full-duplex` - Full duplex"
            },
            "DraftThinkingLevelEnum": {
                "enum": [
                    "base",
                    "extra"
                ],
                "type": "string",
                "description": "* `base` - Base\n* `extra` - Extra"
            },
            "DraftToolStartLineEnum": {
                "enum": [
                    "always",
                    "only_if_slow",
                    "never"
                ],
                "type": "string",
                "description": "* `always` - Always\n* `only_if_slow` - Only if slow\n* `never` - Never"
            },
            "DraftTypingSoundEnum": {
                "enum": [
                    "mechanical",
                    "desktop",
                    "laptop",
                    "keys_and_mouse",
                    "office",
                    "quiet_room"
                ],
                "type": "string",
                "description": "* `mechanical` - Mechanical keyboard\n* `desktop` - Desktop keyboard\n* `laptop` - Laptop\n* `keys_and_mouse` - Keyboard and mouse\n* `office` - Office keyboard\n* `quiet_room` - Quiet room"
            },
            "DraftVoicemailActionEnum": {
                "enum": [
                    "prompt",
                    "hangup",
                    "message"
                ],
                "type": "string",
                "description": "* `prompt` - Let the agent decide\n* `hangup` - Hang up\n* `message` - Leave a message"
            },
            "DraftWarmTransferStyleEnum": {
                "enum": [
                    "introduce",
                    "ask_first",
                    "whisper"
                ],
                "type": "string",
                "description": "* `introduce` - Introduce on the line\n* `ask_first` - Ask first\n* `whisper` - Whisper"
            },
            "DuplicateAgentRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "EagernessEnum": {
                "enum": [
                    "faster",
                    "fast",
                    "normal",
                    "patient"
                ],
                "type": "string",
                "description": "* `faster` - Faster (200 ms)\n* `fast` - Fast (300 ms)\n* `normal` - Normal (500 ms)\n* `patient` - Patient (800 ms)"
            },
            "ElevenLabsVoice": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "display_name": {
                        "type": "string"
                    },
                    "tagline": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "gender": {
                        "type": "string",
                        "nullable": true
                    },
                    "age": {
                        "type": "string",
                        "nullable": true
                    },
                    "accent": {
                        "type": "string",
                        "nullable": true
                    },
                    "native_language": {
                        "type": "string",
                        "nullable": true
                    },
                    "use_case": {
                        "type": "string",
                        "nullable": true
                    },
                    "sample_url": {
                        "type": "string",
                        "nullable": true
                    }
                },
                "required": [
                    "accent",
                    "age",
                    "description",
                    "display_name",
                    "gender",
                    "name",
                    "native_language",
                    "sample_url",
                    "tagline",
                    "use_case"
                ]
            },
            "ElevenLabsVoiceCatalog": {
                "type": "object",
                "properties": {
                    "provider": {
                        "type": "string"
                    },
                    "model": {
                        "type": "string"
                    },
                    "model_label": {
                        "type": "string"
                    },
                    "surcharge_cents": {
                        "type": "integer"
                    },
                    "hipaa_eligible": {
                        "type": "boolean"
                    },
                    "available": {
                        "type": "boolean"
                    },
                    "unavailable_reason": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/UnavailableReasonEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "languages": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "voices": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ElevenLabsVoice"
                        }
                    }
                },
                "required": [
                    "available",
                    "hipaa_eligible",
                    "languages",
                    "model",
                    "model_label",
                    "provider",
                    "surcharge_cents",
                    "unavailable_reason",
                    "voices"
                ]
            },
            "EndpointMethodEnum": {
                "enum": [
                    "GET",
                    "POST",
                    "PUT",
                    "PATCH",
                    "DELETE"
                ],
                "type": "string",
                "description": "* `GET` - GET\n* `POST` - POST\n* `PUT` - PUT\n* `PATCH` - PATCH\n* `DELETE` - DELETE"
            },
            "EndpointingEnum": {
                "enum": [
                    "faster",
                    "fast",
                    "normal",
                    "patient"
                ],
                "type": "string",
                "description": "* `faster` - Faster (200 ms)\n* `fast` - Fast (300 ms)\n* `normal` - Normal (500 ms)\n* `patient` - Patient (800 ms)"
            },
            "EnrollNumbersRequest": {
                "type": "object",
                "properties": {
                    "phone_number_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        },
                        "minItems": 1
                    },
                    "confirm_price": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Only past the included numbers: the price object from the 409 response."
                    }
                },
                "required": [
                    "phone_number_ids"
                ]
            },
            "EventTypeEnum": {
                "enum": [
                    "telephony.incoming",
                    "telephony.complete",
                    "telephony.tool",
                    "telephony.turn",
                    "web.incoming",
                    "web.complete",
                    "web.tool",
                    "web.turn",
                    "sms.sent",
                    "sms.failed",
                    "sms.received",
                    "call.graded",
                    "call.data_extracted",
                    "call.transfer_completed",
                    "call.billed",
                    "campaign.completed",
                    "issue.reported",
                    "issue.escalated",
                    "test-call.completed",
                    "migration.call.complete",
                    "migration.rollback",
                    "alert.triggered",
                    "phone_number.spam_risk_changed",
                    "scheduled.skipped",
                    "scheduled.failed",
                    "call.status_changed"
                ],
                "type": "string",
                "description": "* `telephony.incoming` - telephony.incoming\n* `telephony.complete` - telephony.complete\n* `telephony.tool` - telephony.tool\n* `telephony.turn` - telephony.turn\n* `web.incoming` - web.incoming\n* `web.complete` - web.complete\n* `web.tool` - web.tool\n* `web.turn` - web.turn\n* `sms.sent` - sms.sent\n* `sms.failed` - sms.failed\n* `sms.received` - sms.received\n* `call.graded` - call.graded\n* `call.data_extracted` - call.data_extracted\n* `call.transfer_completed` - call.transfer_completed\n* `call.billed` - call.billed\n* `campaign.completed` - campaign.completed\n* `issue.reported` - issue.reported\n* `issue.escalated` - issue.escalated\n* `test-call.completed` - test-call.completed\n* `migration.call.complete` - migration.call.complete\n* `migration.rollback` - migration.rollback\n* `alert.triggered` - alert.triggered\n* `phone_number.spam_risk_changed` - phone_number.spam_risk_changed\n* `scheduled.skipped` - scheduled.skipped\n* `scheduled.failed` - scheduled.failed\n* `call.status_changed` - call.status_changed"
            },
            "EventsEnum": {
                "enum": [
                    "telephony.incoming",
                    "telephony.complete",
                    "telephony.tool",
                    "telephony.turn",
                    "web.incoming",
                    "web.complete",
                    "web.tool",
                    "web.turn",
                    "sms.sent",
                    "sms.failed",
                    "sms.received",
                    "call.graded",
                    "call.data_extracted",
                    "call.transfer_completed",
                    "call.billed",
                    "campaign.completed",
                    "issue.reported",
                    "issue.escalated",
                    "test-call.completed",
                    "migration.call.complete",
                    "migration.rollback",
                    "alert.triggered",
                    "phone_number.spam_risk_changed",
                    "scheduled.skipped",
                    "scheduled.failed",
                    "call.status_changed"
                ],
                "type": "string",
                "description": "* `telephony.incoming` - telephony.incoming\n* `telephony.complete` - telephony.complete\n* `telephony.tool` - telephony.tool\n* `telephony.turn` - telephony.turn\n* `web.incoming` - web.incoming\n* `web.complete` - web.complete\n* `web.tool` - web.tool\n* `web.turn` - web.turn\n* `sms.sent` - sms.sent\n* `sms.failed` - sms.failed\n* `sms.received` - sms.received\n* `call.graded` - call.graded\n* `call.data_extracted` - call.data_extracted\n* `call.transfer_completed` - call.transfer_completed\n* `call.billed` - call.billed\n* `campaign.completed` - campaign.completed\n* `issue.reported` - issue.reported\n* `issue.escalated` - issue.escalated\n* `test-call.completed` - test-call.completed\n* `migration.call.complete` - migration.call.complete\n* `migration.rollback` - migration.rollback\n* `alert.triggered` - alert.triggered\n* `phone_number.spam_risk_changed` - phone_number.spam_risk_changed\n* `scheduled.skipped` - scheduled.skipped\n* `scheduled.failed` - scheduled.failed\n* `call.status_changed` - call.status_changed"
            },
            "ExecuteTestScenariosRequest": {
                "type": "object",
                "properties": {
                    "channel": {
                        "$ref": "#/components/schemas/ChannelEnum"
                    },
                    "phone_number_id": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "scenario_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "maxItems": 50
                    },
                    "stagger_seconds": {
                        "type": "integer",
                        "maximum": 60,
                        "minimum": 0,
                        "default": 5
                    },
                    "matrix": {
                        "$ref": "#/components/schemas/VoiceMatrixRequest"
                    },
                    "consent_to_charge": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "channel",
                    "consent_to_charge"
                ]
            },
            "ExpectedAttestation": {
                "type": "object",
                "description": "Schema only: the STIR/SHAKEN attestation to expect on calls from a number\n(phone_numbers.attestation).",
                "properties": {
                    "level": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ExpectedAttestationLevelEnum"
                            }
                        ],
                        "description": "`full` (a ThunderPhone number: A), `full_expected` (a number on your Telnyx, SignalWire or Vonage account, or a registered Twilio number: your carrier should sign A), `carrier` (a manual SIP trunk: your carrier decides), `partial_likely` (a caller ID your carrier account does not own: B likely), `partial_until_registered` (a Twilio number without an approved SHAKEN/STIR registration: Twilio signs B), or `unknown`.\n\n* `full` - full\n* `full_expected` - full_expected\n* `carrier` - carrier\n* `partial_likely` - partial_likely\n* `partial_until_registered` - partial_until_registered\n* `unknown` - unknown"
                    },
                    "label": {
                        "type": "string",
                        "description": "The same in plain English."
                    }
                },
                "required": [
                    "label",
                    "level"
                ]
            },
            "ExpectedAttestationLevelEnum": {
                "enum": [
                    "full",
                    "full_expected",
                    "carrier",
                    "partial_likely",
                    "partial_until_registered",
                    "unknown"
                ],
                "type": "string",
                "description": "* `full` - full\n* `full_expected` - full_expected\n* `carrier` - carrier\n* `partial_likely` - partial_likely\n* `partial_until_registered` - partial_until_registered\n* `unknown` - unknown"
            },
            "Experiment": {
                "type": "object",
                "description": "Full experiment with nested samples.",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "candidate_id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "candidate_ids": {
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ExperimentStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "config": {
                        "readOnly": true
                    },
                    "samples": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ExperimentSample"
                        },
                        "readOnly": true
                    },
                    "summary": {
                        "readOnly": true
                    },
                    "progress": {
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "completed_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "error_message": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    }
                },
                "required": [
                    "candidate_id",
                    "candidate_ids",
                    "completed_at",
                    "config",
                    "created_at",
                    "error_message",
                    "id",
                    "progress",
                    "samples",
                    "status",
                    "summary"
                ]
            },
            "ExperimentSample": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "call_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "sample_index": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "user_input": {
                        "type": "string",
                        "readOnly": true
                    },
                    "original_output": {
                        "type": "string",
                        "readOnly": true
                    },
                    "replayed_output": {
                        "type": "string",
                        "readOnly": true
                    },
                    "grade": {
                        "readOnly": true,
                        "nullable": true
                    },
                    "metadata": {
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "call_id",
                    "created_at",
                    "grade",
                    "id",
                    "metadata",
                    "original_output",
                    "replayed_output",
                    "sample_index",
                    "user_input"
                ]
            },
            "ExperimentStatusEnum": {
                "enum": [
                    "queued",
                    "running",
                    "completed",
                    "failed"
                ],
                "type": "string",
                "description": "* `queued` - Queued\n* `running` - Running\n* `completed` - Completed\n* `failed` - Failed"
            },
            "ExtractionBlocksCompletionEnum": {
                "enum": [
                    "except_transfers",
                    "always",
                    "never"
                ],
                "type": "string",
                "description": "* `except_transfers` - Except transfers\n* `always` - Always\n* `never` - Never"
            },
            "FailureCategoryEnum": {
                "enum": [
                    "timeout",
                    "dns",
                    "tls",
                    "connection",
                    "http_error",
                    "other"
                ],
                "type": "string",
                "description": "* `timeout` - timeout\n* `dns` - dns\n* `tls` - tls\n* `connection` - connection\n* `http_error` - http_error\n* `other` - other"
            },
            "FileUploadRequest": {
                "type": "object",
                "properties": {
                    "file": {
                        "type": "string",
                        "format": "binary",
                        "description": "The signed letter, as a PDF of at most 10 MB."
                    }
                },
                "required": [
                    "file"
                ]
            },
            "FixLaneEnum": {
                "enum": [
                    "prompt",
                    "runtime",
                    "model",
                    "audio",
                    "config",
                    "infra",
                    "other"
                ],
                "type": "string",
                "description": "* `prompt` - Prompt\n* `runtime` - Runtime\n* `model` - Model\n* `audio` - Audio\n* `config` - Config\n* `infra` - Infrastructure\n* `other` - Other"
            },
            "FlattenStepsRequestRequest": {
                "type": "object",
                "properties": {
                    "prompt": {
                        "type": "string",
                        "maxLength": 100000
                    },
                    "steps": {
                        "nullable": true
                    }
                },
                "required": [
                    "prompt",
                    "steps"
                ]
            },
            "FlattenedStepsPrompt": {
                "type": "object",
                "properties": {
                    "prompt": {
                        "type": "string"
                    }
                },
                "required": [
                    "prompt"
                ]
            },
            "FrequencyEnum": {
                "enum": [
                    "hourly",
                    "daily",
                    "weekly"
                ],
                "type": "string",
                "description": "* `hourly` - Hourly\n* `daily` - Daily\n* `weekly` - Weekly"
            },
            "FunctionSpecRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1
                    },
                    "description": {
                        "type": "string",
                        "default": ""
                    },
                    "parameters": {
                        "$ref": "#/components/schemas/ToolParametersRequest"
                    }
                },
                "required": [
                    "name"
                ]
            },
            "GenderEnum": {
                "enum": [
                    "male",
                    "female"
                ],
                "type": "string",
                "description": "* `male` - male\n* `female` - female"
            },
            "GenerateTestScenariosRequest": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer",
                        "maximum": 12,
                        "minimum": 1,
                        "default": 6
                    },
                    "include_edge_cases": {
                        "type": "boolean",
                        "default": true
                    },
                    "locale": {
                        "type": "string",
                        "minLength": 1,
                        "default": "en",
                        "maxLength": 10
                    }
                }
            },
            "GlitchTipDelivery": {
                "type": "object",
                "properties": {
                    "ok": {
                        "type": "boolean"
                    },
                    "delivered": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "delivered",
                    "ok"
                ]
            },
            "GoalAchievementEnum": {
                "enum": [
                    "achieved",
                    "no_opportunity",
                    "missed"
                ],
                "type": "string",
                "description": "* `achieved` - Achieved\n* `no_opportunity` - No Opportunity\n* `missed` - Missed"
            },
            "GroupEnum": {
                "enum": [
                    "platform",
                    "cartesia",
                    "elevenlabs"
                ],
                "type": "string",
                "description": "* `platform` - platform\n* `cartesia` - cartesia\n* `elevenlabs` - elevenlabs"
            },
            "Health": {
                "type": "object",
                "properties": {
                    "ok": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "ok"
                ]
            },
            "Heartbeat": {
                "type": "object",
                "properties": {
                    "products": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "products"
                ]
            },
            "ImportedNumbers": {
                "type": "object",
                "properties": {
                    "imported_count": {
                        "type": "integer"
                    },
                    "provider_charge_estimate_cents": {
                        "type": "integer"
                    },
                    "provider_charge_note": {
                        "type": "string"
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/NumberSummary"
                        }
                    }
                },
                "required": [
                    "imported_count",
                    "provider_charge_estimate_cents",
                    "provider_charge_note",
                    "results"
                ]
            },
            "InboundProbeLoopbackAttempt": {
                "type": "object",
                "properties": {
                    "outcome": {
                        "$ref": "#/components/schemas/OutcomeEnum"
                    },
                    "detail": {
                        "type": "string"
                    },
                    "sip_status_code": {
                        "type": "integer",
                        "nullable": true
                    },
                    "carrier_message": {
                        "type": "string"
                    }
                },
                "required": [
                    "carrier_message",
                    "detail",
                    "outcome",
                    "sip_status_code"
                ]
            },
            "InboundProbeResult": {
                "type": "object",
                "properties": {
                    "status": {
                        "$ref": "#/components/schemas/InboundProbeResultStatusEnum"
                    },
                    "reason": {
                        "type": "string"
                    },
                    "detail": {
                        "type": "string"
                    },
                    "seconds_to_arrival": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    },
                    "from_number": {
                        "type": "string"
                    },
                    "tested_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "method": {
                        "type": "string",
                        "description": "\"loopback\" (the number called itself) or \"platform\" (a ThunderPhone number called)."
                    },
                    "loopback": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/InboundProbeLoopbackAttempt"
                            }
                        ],
                        "nullable": true
                    },
                    "proves_outbound": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "detail",
                    "from_number",
                    "loopback",
                    "method",
                    "proves_outbound",
                    "reason",
                    "seconds_to_arrival",
                    "status",
                    "tested_at"
                ]
            },
            "InboundProbeResultStatusEnum": {
                "enum": [
                    "pass",
                    "fail",
                    "unavailable"
                ],
                "type": "string",
                "description": "* `pass` - pass\n* `fail` - fail\n* `unavailable` - unavailable"
            },
            "InboundSpeakOrderEnum": {
                "enum": [
                    "agent_first",
                    "caller_first"
                ],
                "type": "string",
                "description": "* `agent_first` - Agent First\n* `caller_first` - Caller First"
            },
            "InboundStatusEnum": {
                "enum": [
                    "pass",
                    "fail"
                ],
                "type": "string",
                "description": "* `pass` - Pass\n* `fail` - Fail"
            },
            "IndustryEnum": {
                "enum": [
                    "accounting",
                    "finance",
                    "billing",
                    "collections",
                    "business",
                    "charity",
                    "nonprofit",
                    "communications",
                    "telecom",
                    "customer service",
                    "support",
                    "delivery",
                    "shipping",
                    "logistics",
                    "education",
                    "financial",
                    "banking",
                    "government",
                    "public",
                    "healthcare",
                    "health",
                    "pharmacy",
                    "medical",
                    "insurance",
                    "legal",
                    "law",
                    "notifications",
                    "scheduling",
                    "real estate",
                    "property",
                    "retail",
                    "ecommerce",
                    "sales",
                    "marketing",
                    "software",
                    "technology",
                    "tech",
                    "media",
                    "surveys",
                    "market research",
                    "travel",
                    "hospitality",
                    "hotel"
                ],
                "type": "string",
                "description": "* `accounting` - accounting\n* `finance` - finance\n* `billing` - billing\n* `collections` - collections\n* `business` - business\n* `charity` - charity\n* `nonprofit` - nonprofit\n* `communications` - communications\n* `telecom` - telecom\n* `customer service` - customer service\n* `support` - support\n* `delivery` - delivery\n* `shipping` - shipping\n* `logistics` - logistics\n* `education` - education\n* `financial` - financial\n* `banking` - banking\n* `government` - government\n* `public` - public\n* `healthcare` - healthcare\n* `health` - health\n* `pharmacy` - pharmacy\n* `medical` - medical\n* `insurance` - insurance\n* `legal` - legal\n* `law` - law\n* `notifications` - notifications\n* `scheduling` - scheduling\n* `real estate` - real estate\n* `property` - property\n* `retail` - retail\n* `ecommerce` - ecommerce\n* `sales` - sales\n* `marketing` - marketing\n* `software` - software\n* `technology` - technology\n* `tech` - tech\n* `media` - media\n* `surveys` - surveys\n* `market research` - market research\n* `travel` - travel\n* `hospitality` - hospitality\n* `hotel` - hotel"
            },
            "IntegrationCreateUpdateRequest": {
                "type": "object",
                "properties": {
                    "display_name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "spec": {},
                    "wizard_input": {
                        "type": "string",
                        "default": ""
                    },
                    "endpoint_url": {
                        "type": "string",
                        "format": "uri",
                        "default": "",
                        "maxLength": 2048
                    },
                    "endpoint_method": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/EndpointMethodEnum"
                            }
                        ],
                        "default": "POST"
                    },
                    "request_format": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RequestFormatEnum"
                            }
                        ],
                        "default": "standard"
                    },
                    "headers": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/IntegrationHeaderRequest"
                        }
                    },
                    "validation_status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/IntegrationCreateUpdateValidationStatusEnum"
                            }
                        ],
                        "default": "untested"
                    },
                    "trigger": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/IntegrationTriggerEnum"
                            }
                        ],
                        "description": "\"agent\" (default): the agent calls the tool when it decides to. \"call_start\": ThunderPhone also runs it at the start of every phone call, before the greeting, with call_start_arguments, and gives the result to the agent.\n\n* `agent` - When the agent calls it\n* `call_start` - At the start of every phone call"
                    },
                    "call_start_arguments": {
                        "nullable": true,
                        "description": "With trigger \"call_start\": the arguments sent at the start of the call, one value per tool parameter, and every required parameter. Strings may use {{caller_number}} (the other party, E.164), {{caller_number_national}} and {{agent_number}}. Ignored and cleared for trigger \"agent\"."
                    },
                    "copy_header_values_from": {
                        "type": "string",
                        "format": "uuid",
                        "writeOnly": true,
                        "description": "Create only. Another integration in the same organization: a header sent without a value takes that integration's stored value for the same name."
                    }
                },
                "required": [
                    "display_name",
                    "spec"
                ]
            },
            "IntegrationCreateUpdateValidationStatusEnum": {
                "enum": [
                    "untested",
                    "validated",
                    "error"
                ],
                "type": "string",
                "description": "* `untested` - untested\n* `validated` - validated\n* `error` - error"
            },
            "IntegrationHeader": {
                "type": "object",
                "description": "HTTP header sent with the integration's endpoint request.\n\nThe value is write-only: it is encrypted at rest and responses carry\n``key`` only, the same shape as MCP server headers. On create every\nheader needs a value (or ``copy_header_values_from``); on update an\nomitted or blank value keeps the stored value for that header name\n(case-insensitive), and a header left out of the list is removed.",
                "properties": {
                    "key": {
                        "type": "string",
                        "maxLength": 255
                    }
                },
                "required": [
                    "key"
                ]
            },
            "IntegrationHeaderRequest": {
                "type": "object",
                "description": "HTTP header sent with the integration's endpoint request.\n\nThe value is write-only: it is encrypted at rest and responses carry\n``key`` only, the same shape as MCP server headers. On create every\nheader needs a value (or ``copy_header_values_from``); on update an\nomitted or blank value keeps the stored value for that header name\n(case-insensitive), and a header left out of the list is removed.",
                "properties": {
                    "key": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "value": {
                        "type": "string",
                        "writeOnly": true,
                        "maxLength": 4096
                    }
                },
                "required": [
                    "key"
                ]
            },
            "IntegrationTest": {
                "type": "object",
                "properties": {
                    "ok": {
                        "type": "boolean"
                    },
                    "status_code": {
                        "type": "integer"
                    },
                    "reason": {
                        "type": "string"
                    },
                    "latency_ms": {
                        "type": "integer"
                    },
                    "response_headers": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string"
                        }
                    },
                    "response_body_preview": {
                        "type": "string"
                    },
                    "response_truncated": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "latency_ms",
                    "ok",
                    "reason",
                    "response_body_preview",
                    "response_headers",
                    "response_truncated",
                    "status_code"
                ]
            },
            "IntegrationTestRequestRequest": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "minLength": 1,
                        "maxLength": 2048
                    },
                    "method": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/MethodEnum"
                            }
                        ],
                        "default": "POST"
                    },
                    "headers": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string",
                            "maxLength": 2048
                        }
                    },
                    "body": {
                        "nullable": true
                    },
                    "tool_name": {
                        "type": "string",
                        "default": "test_tool"
                    },
                    "request_format": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RequestFormatEnum"
                            }
                        ],
                        "default": "standard"
                    },
                    "timeout_seconds": {
                        "type": "integer",
                        "maximum": 60,
                        "minimum": 1,
                        "default": 20
                    },
                    "integration_id": {
                        "type": "string",
                        "format": "uuid",
                        "description": "A saved integration in this organization. Headers sent with an empty value are filled with its stored value for the same name. Requires admin."
                    }
                },
                "required": [
                    "url"
                ]
            },
            "IntegrationTransfer": {
                "type": "object",
                "properties": {
                    "mode": {
                        "$ref": "#/components/schemas/ModeFfbEnum"
                    },
                    "source_org_id": {
                        "type": "integer"
                    },
                    "target_org_id": {
                        "type": "integer"
                    },
                    "integration": {
                        "$ref": "#/components/schemas/OrganizationIntegration"
                    }
                },
                "required": [
                    "integration",
                    "mode",
                    "source_org_id",
                    "target_org_id"
                ]
            },
            "IntegrationTransferRequest": {
                "type": "object",
                "properties": {
                    "target_org_id": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ModeFfbEnum"
                            }
                        ],
                        "default": "copy"
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    }
                },
                "required": [
                    "target_org_id"
                ]
            },
            "IntegrationTriggerEnum": {
                "enum": [
                    "agent",
                    "call_start"
                ],
                "type": "string",
                "description": "* `agent` - When the agent calls it\n* `call_start` - At the start of every phone call"
            },
            "IntegrationWarning": {
                "type": "object",
                "description": "Schema only: a saved setting worth a second look (see Integration.warnings).",
                "properties": {
                    "code": {
                        "type": "string",
                        "description": "\"tool_has_no_inputs\": the tool declares no parameters, so the agent calls it with no data."
                    },
                    "field": {
                        "type": "string",
                        "description": "The integration field the warning is about."
                    },
                    "detail": {
                        "type": "string"
                    }
                },
                "required": [
                    "code",
                    "detail",
                    "field"
                ]
            },
            "IntelligenceEnum": {
                "enum": [
                    "core",
                    "pro",
                    "lite",
                    "standard"
                ],
                "type": "string",
                "description": "* `core` - Core\n* `pro` - Pro\n* `lite` - Older name for core, still accepted; responses use core\n* `standard` - Older name for pro, still accepted; responses use pro"
            },
            "IntroClipEnum": {
                "enum": [
                    "none",
                    "stock_recording_notice",
                    "stock_recording_notice_male",
                    "custom"
                ],
                "type": "string",
                "description": "* `none` - Off\n* `stock_recording_notice` - Recording notice (female)\n* `stock_recording_notice_male` - Recording notice (male)\n* `custom` - Custom clip"
            },
            "IntroClipGenerateRequest": {
                "type": "object",
                "properties": {
                    "voice": {
                        "type": "string",
                        "minLength": 1,
                        "description": "A platform voice name (catalog, platform:..., custom:...). Not ElevenLabs."
                    },
                    "text": {
                        "type": "string",
                        "minLength": 1,
                        "description": "The words to say, at most 15 seconds of speech.",
                        "maxLength": 200
                    },
                    "language": {
                        "type": "string",
                        "minLength": 1,
                        "description": "The language of the words, which the voice must speak. Default: the agent's."
                    }
                },
                "required": [
                    "text",
                    "voice"
                ]
            },
            "IntroClipGenerated": {
                "type": "object",
                "properties": {
                    "artifact_path": {
                        "type": "string"
                    },
                    "sha256": {
                        "type": "string"
                    },
                    "duration_seconds": {
                        "type": "number",
                        "format": "double"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "charged_cents": {
                        "type": "integer"
                    }
                },
                "required": [
                    "artifact_path",
                    "charged_cents",
                    "duration_seconds",
                    "sha256",
                    "updated_at"
                ]
            },
            "IntroClipRemoved": {
                "type": "object",
                "properties": {
                    "intro_clip": {
                        "$ref": "#/components/schemas/IntroClipEnum"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "required": [
                    "intro_clip",
                    "updated_at"
                ]
            },
            "IntroClipUploadRequest": {
                "type": "object",
                "properties": {
                    "audio": {
                        "type": "string",
                        "format": "binary",
                        "description": "PCM WAV, 48000 Hz, mono, 16-bit, 0.5-15 s, at most 2 MB."
                    }
                },
                "required": [
                    "audio"
                ]
            },
            "IntroClipUploaded": {
                "type": "object",
                "properties": {
                    "artifact_path": {
                        "type": "string"
                    },
                    "sha256": {
                        "type": "string"
                    },
                    "duration_seconds": {
                        "type": "number",
                        "format": "double"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "required": [
                    "artifact_path",
                    "duration_seconds",
                    "sha256",
                    "updated_at"
                ]
            },
            "InvestigationDetail": {
                "type": "object",
                "description": "Full investigation with nested candidates and experiments.\n\nMatches the IssueInvestigation TypeScript interface including\ncandidates[] and experiments[].",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "issue_trace_ids": {
                        "readOnly": true
                    },
                    "issue_pattern_id": {
                        "type": "string",
                        "readOnly": true
                    },
                    "agent_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "baseline_prompt": {
                        "type": "string",
                        "readOnly": true
                    },
                    "call_ids": {
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/StatusE8cEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "experiment_config": {
                        "readOnly": true
                    },
                    "hypotheses": {
                        "readOnly": true
                    },
                    "progress": {
                        "readOnly": true
                    },
                    "baseline_results": {
                        "readOnly": true
                    },
                    "baseline_repro_rate": {
                        "type": "number",
                        "format": "double",
                        "readOnly": true,
                        "nullable": true
                    },
                    "replay_explanation": {
                        "type": "string",
                        "readOnly": true
                    },
                    "suggested_lane_change": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "prompt_drift": {
                        "type": "object",
                        "additionalProperties": {},
                        "readOnly": true
                    },
                    "search_result": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true,
                        "readOnly": true
                    },
                    "baseline_stale": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "candidates": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PromptCandidate"
                        },
                        "readOnly": true
                    },
                    "experiments": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "description": "Collect all experiments across all candidates.",
                        "readOnly": true
                    },
                    "applied_candidate_id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true,
                        "nullable": true
                    },
                    "applied_agent_version": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "error_message": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "held_out": {
                        "type": "boolean",
                        "description": "Present only for organizations with the agent iteration toolkit: true when a held-out call (one whose caller is in an agent's test split) went into this. For an API key, held-out calls and their issue reports are left out of every count, id and sample here, and text a model wrote partly from them reads [held out] or is empty. People see it in full in the dashboard. Organizations without the toolkit are unaffected."
                    },
                    "next_step": {
                        "type": "string",
                        "description": "Present when text is withheld because of held-out calls: where to read it instead."
                    }
                },
                "required": [
                    "agent_id",
                    "applied_agent_version",
                    "applied_candidate_id",
                    "baseline_prompt",
                    "baseline_repro_rate",
                    "baseline_results",
                    "baseline_stale",
                    "call_ids",
                    "candidates",
                    "created_at",
                    "error_message",
                    "experiment_config",
                    "experiments",
                    "hypotheses",
                    "id",
                    "issue_pattern_id",
                    "issue_trace_ids",
                    "progress",
                    "prompt_drift",
                    "replay_explanation",
                    "search_result",
                    "status",
                    "suggested_lane_change",
                    "updated_at"
                ]
            },
            "InvestigationList": {
                "type": "object",
                "description": "Lightweight serializer for the list endpoint (no nested children).",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "issue_trace_ids": {
                        "readOnly": true
                    },
                    "issue_pattern_id": {
                        "type": "string",
                        "readOnly": true
                    },
                    "agent_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "baseline_prompt": {
                        "type": "string",
                        "readOnly": true
                    },
                    "call_ids": {
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/StatusE8cEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "experiment_config": {
                        "readOnly": true
                    },
                    "hypotheses": {
                        "readOnly": true
                    },
                    "progress": {
                        "readOnly": true
                    },
                    "baseline_results": {
                        "readOnly": true
                    },
                    "baseline_repro_rate": {
                        "type": "number",
                        "format": "double",
                        "readOnly": true,
                        "nullable": true
                    },
                    "replay_explanation": {
                        "type": "string",
                        "readOnly": true
                    },
                    "suggested_lane_change": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "applied_candidate_id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true,
                        "nullable": true
                    },
                    "applied_agent_version": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "baseline_stale": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "error_message": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "held_out": {
                        "type": "boolean",
                        "description": "Present only for organizations with the agent iteration toolkit: true when a held-out call (one whose caller is in an agent's test split) went into this. For an API key, held-out calls and their issue reports are left out of every count, id and sample here, and text a model wrote partly from them reads [held out] or is empty. People see it in full in the dashboard. Organizations without the toolkit are unaffected."
                    },
                    "next_step": {
                        "type": "string",
                        "description": "Present when text is withheld because of held-out calls: where to read it instead."
                    }
                },
                "required": [
                    "agent_id",
                    "applied_agent_version",
                    "applied_candidate_id",
                    "baseline_prompt",
                    "baseline_repro_rate",
                    "baseline_results",
                    "baseline_stale",
                    "call_ids",
                    "created_at",
                    "error_message",
                    "experiment_config",
                    "hypotheses",
                    "id",
                    "issue_pattern_id",
                    "issue_trace_ids",
                    "progress",
                    "replay_explanation",
                    "status",
                    "suggested_lane_change",
                    "updated_at"
                ]
            },
            "InviteAccepted": {
                "type": "object",
                "properties": {
                    "detail": {
                        "type": "string"
                    },
                    "org_id": {
                        "type": "integer"
                    }
                }
            },
            "InviteDetail": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "org_name": {
                        "type": "string",
                        "readOnly": true
                    },
                    "email": {
                        "type": "string",
                        "format": "email",
                        "maxLength": 254
                    },
                    "role": {
                        "$ref": "#/components/schemas/Role13fEnum"
                    },
                    "status": {
                        "$ref": "#/components/schemas/StatusDe4Enum"
                    },
                    "invited_by_email": {
                        "type": "string",
                        "format": "email",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "required": [
                    "created_at",
                    "email",
                    "expires_at",
                    "id",
                    "invited_by_email",
                    "org_name"
                ]
            },
            "IssueClusterCard": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "readOnly": true
                    },
                    "failure_mode": {
                        "type": "string",
                        "readOnly": true
                    },
                    "fix_lane": {
                        "readOnly": true,
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/FixLaneEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "fix_lane_source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/IssueClusterCardFixLaneSourceEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/IssueClusterCardStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "severity": {
                        "type": "string",
                        "readOnly": true
                    },
                    "source": {
                        "type": "string",
                        "readOnly": true
                    },
                    "report_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "call_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "first_seen": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "last_seen": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "agents": {
                        "readOnly": true
                    },
                    "recent_trace_ids": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "readOnly": true
                    },
                    "recent_call_ids": {
                        "readOnly": true
                    },
                    "primary_action": {
                        "type": "string",
                        "readOnly": true
                    },
                    "recurred_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "recurrence_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "resolving_investigation_id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true,
                        "nullable": true
                    },
                    "investigation_summary": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true,
                        "readOnly": true
                    },
                    "flagged_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "held_out": {
                        "type": "boolean",
                        "description": "Present only for organizations with the agent iteration toolkit: true when a held-out call (one whose caller is in an agent's test split) went into this. For an API key, held-out calls and their issue reports are left out of every count, id and sample here, and text a model wrote partly from them reads [held out] or is empty. People see it in full in the dashboard. Organizations without the toolkit are unaffected."
                    },
                    "next_step": {
                        "type": "string",
                        "description": "Present when text is withheld because of held-out calls: where to read it instead."
                    }
                },
                "required": [
                    "agents",
                    "call_count",
                    "failure_mode",
                    "first_seen",
                    "fix_lane",
                    "fix_lane_source",
                    "flagged_at",
                    "id",
                    "investigation_summary",
                    "last_seen",
                    "name",
                    "primary_action",
                    "recent_call_ids",
                    "recent_trace_ids",
                    "recurred_at",
                    "recurrence_count",
                    "report_count",
                    "resolving_investigation_id",
                    "severity",
                    "source",
                    "status"
                ]
            },
            "IssueClusterCardFixLaneSourceEnum": {
                "enum": [
                    "llm",
                    "investigation",
                    "staff"
                ],
                "type": "string",
                "description": "* `llm` - LLM\n* `investigation` - Investigation\n* `staff` - Staff"
            },
            "IssueClusterCardStatusEnum": {
                "enum": [
                    "open",
                    "acknowledged",
                    "resolved",
                    "escalated",
                    "dismissed"
                ],
                "type": "string",
                "description": "* `open` - Open\n* `acknowledged` - Acknowledged\n* `resolved` - Resolved\n* `escalated` - Escalated\n* `dismissed` - Dismissed"
            },
            "IssueClusterPage": {
                "type": "object",
                "properties": {
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/IssueClusterCard"
                        }
                    },
                    "total": {
                        "type": "integer"
                    },
                    "limit": {
                        "type": "integer"
                    },
                    "offset": {
                        "type": "integer"
                    }
                },
                "required": [
                    "limit",
                    "offset",
                    "results",
                    "total"
                ]
            },
            "IssueClusterUpdate": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "fix_lane": {
                        "type": "string"
                    },
                    "fix_lane_source": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "primary_action": {}
                },
                "required": [
                    "fix_lane",
                    "fix_lane_source",
                    "id",
                    "primary_action",
                    "status"
                ]
            },
            "IssueClusterUpdateFixLaneSourceEnum": {
                "enum": [
                    "investigation",
                    "staff"
                ],
                "type": "string",
                "description": "* `investigation` - investigation\n* `staff` - staff"
            },
            "IssueClusterUpdateStatusEnum": {
                "enum": [
                    "open",
                    "acknowledged",
                    "resolved",
                    "dismissed"
                ],
                "type": "string",
                "description": "* `open` - open\n* `acknowledged` - acknowledged\n* `resolved` - resolved\n* `dismissed` - dismissed"
            },
            "IssueEscalation": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "cluster_id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "organization_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "escalated_by_id": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "note": {
                        "type": "string",
                        "readOnly": true
                    },
                    "evidence_bundle": {
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/IssueEscalationStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "cluster_id",
                    "created_at",
                    "escalated_by_id",
                    "evidence_bundle",
                    "id",
                    "note",
                    "organization_id",
                    "status",
                    "updated_at"
                ]
            },
            "IssueEscalationCreateRequest": {
                "type": "object",
                "properties": {
                    "note": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 10000
                    }
                },
                "required": [
                    "note"
                ]
            },
            "IssueEscalationStatusEnum": {
                "enum": [
                    "open",
                    "acknowledged",
                    "resolved"
                ],
                "type": "string",
                "description": "* `open` - Open\n* `acknowledged` - Acknowledged\n* `resolved` - Resolved"
            },
            "IssueReportPage": {
                "type": "object",
                "properties": {
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CallIssueReport"
                        }
                    },
                    "total": {
                        "type": "integer"
                    },
                    "limit": {
                        "type": "integer"
                    },
                    "offset": {
                        "type": "integer"
                    }
                },
                "required": [
                    "limit",
                    "offset",
                    "results",
                    "total"
                ]
            },
            "IssueReportsUpdated": {
                "type": "object",
                "properties": {
                    "updated": {
                        "type": "integer"
                    }
                },
                "required": [
                    "updated"
                ]
            },
            "IvrModeEnum": {
                "enum": [
                    "auto",
                    "on",
                    "off"
                ],
                "type": "string",
                "description": "* `auto` - auto\n* `on` - on\n* `off` - off"
            },
            "JsonRpcResponse": {
                "type": "object",
                "properties": {
                    "jsonrpc": {
                        "$ref": "#/components/schemas/JsonrpcEnum"
                    },
                    "id": {
                        "nullable": true
                    },
                    "result": {},
                    "error": {}
                },
                "required": [
                    "id",
                    "jsonrpc"
                ]
            },
            "JsonrpcEnum": {
                "enum": [
                    "2.0"
                ],
                "type": "string",
                "description": "* `2.0` - 2.0"
            },
            "KindC85Enum": {
                "enum": [
                    "failure",
                    "golden",
                    "manual"
                ],
                "type": "string",
                "description": "* `failure` - failure\n* `golden` - golden\n* `manual` - manual"
            },
            "KnowledgeBase": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "description": {
                        "type": "string"
                    },
                    "document_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "created_at",
                    "document_count",
                    "id",
                    "name",
                    "updated_at"
                ]
            },
            "KnowledgeBaseRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "description": {
                        "type": "string"
                    }
                },
                "required": [
                    "name"
                ]
            },
            "KnowledgeDocument": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "source_type": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SourceTypeEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "original_filename": {
                        "type": "string",
                        "readOnly": true
                    },
                    "mime_type": {
                        "type": "string",
                        "readOnly": true
                    },
                    "byte_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "estimated_chunk_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/StatusDf2Enum"
                            }
                        ],
                        "readOnly": true
                    },
                    "error": {
                        "type": "string",
                        "readOnly": true
                    },
                    "chunk_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "source_origin": {
                        "readOnly": true,
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/SourceOriginEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "source_url": {
                        "type": "string",
                        "format": "uri",
                        "readOnly": true,
                        "nullable": true
                    },
                    "fetched_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "byte_count",
                    "chunk_count",
                    "created_at",
                    "error",
                    "estimated_chunk_count",
                    "fetched_at",
                    "id",
                    "mime_type",
                    "name",
                    "original_filename",
                    "source_origin",
                    "source_type",
                    "source_url",
                    "status",
                    "updated_at"
                ]
            },
            "KnowledgeDocumentDetail": {
                "type": "object",
                "description": "Adds the canonical extracted `content` for the single-document viewer.\n\nThe list serializer keeps `content` write-only to stay lean, so this read\nvariant exposes it (read-only) for the detail endpoint only.",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "source_type": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SourceTypeEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "original_filename": {
                        "type": "string",
                        "readOnly": true
                    },
                    "mime_type": {
                        "type": "string",
                        "readOnly": true
                    },
                    "content": {
                        "type": "string",
                        "readOnly": true
                    },
                    "byte_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "estimated_chunk_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/StatusDf2Enum"
                            }
                        ],
                        "readOnly": true
                    },
                    "error": {
                        "type": "string",
                        "readOnly": true
                    },
                    "chunk_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "source_origin": {
                        "readOnly": true,
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/SourceOriginEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "source_url": {
                        "type": "string",
                        "format": "uri",
                        "readOnly": true,
                        "nullable": true
                    },
                    "fetched_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "uploaded_by": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true,
                        "readOnly": true
                    },
                    "replaced_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "has_original": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "original_size_bytes": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "original_mime_type": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    }
                },
                "required": [
                    "byte_count",
                    "chunk_count",
                    "content",
                    "created_at",
                    "error",
                    "estimated_chunk_count",
                    "fetched_at",
                    "has_original",
                    "id",
                    "mime_type",
                    "name",
                    "original_filename",
                    "original_mime_type",
                    "original_size_bytes",
                    "replaced_at",
                    "source_origin",
                    "source_type",
                    "source_url",
                    "status",
                    "updated_at",
                    "uploaded_by"
                ]
            },
            "KnowledgeDocumentRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "content": {
                        "type": "string",
                        "writeOnly": true
                    }
                },
                "required": [
                    "content",
                    "name"
                ]
            },
            "KnowledgeSearchRequest": {
                "type": "object",
                "properties": {
                    "query": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4000
                    },
                    "document_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                },
                "required": [
                    "query"
                ]
            },
            "KnowledgeSearchResults": {
                "type": "object",
                "properties": {
                    "results": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "results"
                ]
            },
            "LanguageSwitchingEnum": {
                "enum": [
                    "ask_first",
                    "follow_caller"
                ],
                "type": "string",
                "description": "* `ask_first` - Ask first\n* `follow_caller` - Follow caller"
            },
            "LastAutoReload": {
                "type": "object",
                "description": "The newest successful auto top-up credit on the ledger.",
                "properties": {
                    "amount_cents": {
                        "type": "integer"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "required": [
                    "amount_cents",
                    "created_at"
                ]
            },
            "LastTopUp": {
                "type": "object",
                "description": "The newest successful top-up credit, manual or automatic.",
                "properties": {
                    "amount_cents": {
                        "type": "integer"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "kind": {
                        "$ref": "#/components/schemas/LastTopUpKindEnum"
                    }
                },
                "required": [
                    "amount_cents",
                    "created_at",
                    "kind"
                ]
            },
            "LastTopUpKindEnum": {
                "enum": [
                    "manual",
                    "auto"
                ],
                "type": "string",
                "description": "* `manual` - Manual top-up\n* `auto` - Auto top-up"
            },
            "LibraryVoice": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "display_name": {
                        "type": "string"
                    },
                    "tagline": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "gender": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/GenderEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "accent": {
                        "type": "string",
                        "nullable": true
                    },
                    "age": {
                        "type": "string",
                        "nullable": true
                    },
                    "use_case": {
                        "type": "string",
                        "nullable": true
                    },
                    "languages": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "native_language": {
                        "type": "string",
                        "nullable": true
                    },
                    "group": {
                        "$ref": "#/components/schemas/GroupEnum"
                    },
                    "surcharge_cents": {
                        "type": "integer"
                    },
                    "hipaa_eligible": {
                        "type": "boolean"
                    },
                    "sample_url": {
                        "type": "string",
                        "format": "uri"
                    }
                },
                "required": [
                    "accent",
                    "age",
                    "description",
                    "display_name",
                    "gender",
                    "group",
                    "hipaa_eligible",
                    "languages",
                    "name",
                    "native_language",
                    "sample_url",
                    "surcharge_cents",
                    "tagline",
                    "use_case"
                ]
            },
            "LineTypeFilterEnum": {
                "enum": [
                    "skip_mobile",
                    "skip_landline"
                ],
                "type": "string",
                "description": "* `` - Off\n* `skip_mobile` - Skip mobile numbers\n* `skip_landline` - Skip landlines"
            },
            "ListenSession": {
                "type": "object",
                "properties": {
                    "token": {
                        "type": "string"
                    },
                    "room_name": {
                        "type": "string"
                    },
                    "server_url": {
                        "type": "string"
                    }
                },
                "required": [
                    "room_name",
                    "server_url",
                    "token"
                ]
            },
            "LiveProcessingDisclosureDisableAttestation": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "organization_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "user_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "user_role": {
                        "type": "string",
                        "readOnly": true
                    },
                    "text_version": {
                        "type": "string",
                        "readOnly": true
                    },
                    "rendered_text_sha256": {
                        "type": "string",
                        "readOnly": true
                    },
                    "locale": {
                        "type": "string",
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Status494Enum"
                            }
                        ],
                        "readOnly": true
                    },
                    "attested_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "status_updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "attested_at",
                    "id",
                    "locale",
                    "organization_id",
                    "rendered_text_sha256",
                    "status",
                    "status_updated_at",
                    "text_version",
                    "user_id",
                    "user_role"
                ]
            },
            "LiveProcessingDisclosureDisableAttestationCreateRequest": {
                "type": "object",
                "properties": {
                    "accepted": {
                        "type": "boolean"
                    },
                    "text_version": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                    },
                    "statement_sha256": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                    },
                    "locale": {
                        "type": "string",
                        "minLength": 1,
                        "default": "en",
                        "maxLength": 16
                    }
                },
                "required": [
                    "accepted",
                    "statement_sha256",
                    "text_version"
                ]
            },
            "LiveTranscriptToggleRequest": {
                "type": "object",
                "properties": {
                    "enabled": {
                        "type": "boolean",
                        "default": true
                    }
                }
            },
            "LiveTranscripts": {
                "type": "object",
                "properties": {
                    "call_id": {
                        "type": "integer"
                    },
                    "live_transcripts": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "call_id",
                    "live_transcripts"
                ]
            },
            "MCPServer": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "display_name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 2048
                    },
                    "transport": {
                        "$ref": "#/components/schemas/MCPServerTransportEnum"
                    },
                    "headers": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        },
                        "readOnly": true
                    },
                    "enabled": {
                        "type": "boolean"
                    },
                    "last_tools_sync_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "last_sync_error": {
                        "type": "string",
                        "readOnly": true
                    },
                    "cached_tools": {
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "cached_tools",
                    "created_at",
                    "display_name",
                    "headers",
                    "id",
                    "last_sync_error",
                    "last_tools_sync_at",
                    "updated_at",
                    "url"
                ]
            },
            "MCPServerCreateUpdateRequest": {
                "type": "object",
                "properties": {
                    "display_name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "minLength": 1,
                        "maxLength": 2048
                    },
                    "transport": {
                        "$ref": "#/components/schemas/MCPServerCreateUpdateTransportEnum"
                    },
                    "headers": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/MCPServerHeaderWriteRequest"
                        }
                    },
                    "enabled": {
                        "type": "boolean"
                    }
                }
            },
            "MCPServerCreateUpdateTransportEnum": {
                "enum": [
                    "streamable_http"
                ],
                "type": "string",
                "description": "* `streamable_http` - streamable_http"
            },
            "MCPServerHeaderWriteRequest": {
                "type": "object",
                "properties": {
                    "key": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "value": {
                        "type": "string",
                        "maxLength": 4096
                    }
                },
                "required": [
                    "key"
                ]
            },
            "MCPServerTransportEnum": {
                "enum": [
                    "streamable_http"
                ],
                "type": "string",
                "description": "* `streamable_http` - Streamable HTTP"
            },
            "McpRequestRequest": {
                "type": "object",
                "properties": {
                    "jsonrpc": {
                        "$ref": "#/components/schemas/JsonrpcEnum"
                    },
                    "id": {
                        "nullable": true
                    },
                    "method": {
                        "type": "string",
                        "minLength": 1
                    },
                    "params": {
                        "type": "object",
                        "additionalProperties": {}
                    }
                },
                "required": [
                    "jsonrpc",
                    "method"
                ]
            },
            "MethodEnum": {
                "enum": [
                    "GET",
                    "POST",
                    "PUT",
                    "PATCH",
                    "DELETE"
                ],
                "type": "string",
                "description": "* `GET` - GET\n* `POST` - POST\n* `PUT` - PUT\n* `PATCH` - PATCH\n* `DELETE` - DELETE"
            },
            "MicSession": {
                "type": "object",
                "properties": {
                    "call_id": {
                        "type": "integer"
                    },
                    "token": {
                        "type": "string"
                    },
                    "room_name": {
                        "type": "string"
                    },
                    "server_url": {
                        "type": "string"
                    },
                    "call_setup_sample": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "The saved call setup sample the session runs with."
                    }
                },
                "required": [
                    "call_id",
                    "room_name",
                    "server_url",
                    "token"
                ]
            },
            "MicSessionRequestRequest": {
                "type": "object",
                "properties": {
                    "agent_id": {
                        "type": "integer"
                    },
                    "call_setup_sample_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "A saved call setup sample of the agent to run the session with."
                    }
                },
                "required": [
                    "agent_id"
                ]
            },
            "Mode559Enum": {
                "enum": [
                    "agent",
                    "webhook"
                ],
                "type": "string",
                "description": "* `agent` - agent\n* `webhook` - webhook"
            },
            "ModeFfbEnum": {
                "enum": [
                    "copy",
                    "move"
                ],
                "type": "string",
                "description": "* `copy` - copy\n* `move` - move"
            },
            "MonitoredNumber": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "phone_number": {
                        "type": "string"
                    },
                    "phone_number_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "source": {
                        "$ref": "#/components/schemas/MonitoredNumberSourceEnum"
                    },
                    "status": {
                        "$ref": "#/components/schemas/MonitoredNumberStatusEnum"
                    },
                    "error": {
                        "type": "string",
                        "nullable": true
                    },
                    "ownership_status": {
                        "type": "string",
                        "nullable": true
                    },
                    "spam_risk": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/SpamRiskEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "spam_category": {
                        "type": "string",
                        "nullable": true
                    },
                    "flagged": {
                        "type": "boolean"
                    },
                    "scores": {
                        "$ref": "#/components/schemas/Scores"
                    },
                    "last_checked_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "refreshed_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "enrolled_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "last_cleanup_requested_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    }
                },
                "required": [
                    "enrolled_at",
                    "error",
                    "flagged",
                    "id",
                    "last_checked_at",
                    "last_cleanup_requested_at",
                    "ownership_status",
                    "phone_number",
                    "phone_number_id",
                    "refreshed_at",
                    "scores",
                    "source",
                    "spam_category",
                    "spam_risk",
                    "status"
                ]
            },
            "MonitoredNumberHistory": {
                "type": "object",
                "properties": {
                    "number": {
                        "$ref": "#/components/schemas/MonitoredNumber"
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Reading"
                        }
                    }
                },
                "required": [
                    "number",
                    "results"
                ]
            },
            "MonitoredNumberList": {
                "type": "object",
                "properties": {
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/MonitoredNumber"
                        }
                    }
                },
                "required": [
                    "results"
                ]
            },
            "MonitoredNumberSourceEnum": {
                "enum": [
                    "thunderphone",
                    "carrier"
                ],
                "type": "string",
                "description": "* `thunderphone` - thunderphone\n* `carrier` - carrier"
            },
            "MonitoredNumberStatusEnum": {
                "enum": [
                    "queued",
                    "active",
                    "failed",
                    "removed"
                ],
                "type": "string",
                "description": "* `queued` - queued\n* `active` - active\n* `failed` - failed\n* `removed` - removed"
            },
            "MonitoringPrice": {
                "type": "object",
                "properties": {
                    "monthly_cents": {
                        "type": "integer"
                    },
                    "included_numbers": {
                        "type": "integer"
                    },
                    "extra_number_monthly_cents": {
                        "type": "integer"
                    }
                },
                "required": [
                    "extra_number_monthly_cents",
                    "included_numbers",
                    "monthly_cents"
                ]
            },
            "MonitoringPriceRequest": {
                "type": "object",
                "properties": {
                    "monthly_cents": {
                        "type": "integer"
                    },
                    "included_numbers": {
                        "type": "integer"
                    },
                    "extra_number_monthly_cents": {
                        "type": "integer"
                    }
                },
                "required": [
                    "extra_number_monthly_cents",
                    "included_numbers",
                    "monthly_cents"
                ]
            },
            "NoiseAssetEnum": {
                "enum": [
                    "none",
                    "cafe",
                    "street",
                    "car",
                    "office"
                ],
                "type": "string",
                "description": "* `none` - none\n* `cafe` - cafe\n* `street` - street\n* `car` - car\n* `office` - office"
            },
            "NotCopiedField": {
                "type": "object",
                "properties": {
                    "field": {
                        "type": "string",
                        "description": "The inline config field."
                    },
                    "reason": {
                        "type": "string",
                        "description": "Why the agent does not have it, and what to do instead."
                    }
                },
                "required": [
                    "field",
                    "reason"
                ]
            },
            "NullEnum": {
                "enum": [
                    null
                ]
            },
            "NumberHealthReason": {
                "type": "object",
                "description": "Schema only: one reason behind a number's outbound health status.",
                "properties": {
                    "code": {
                        "type": "string",
                        "description": "`high_daily_volume`, `low_answer_rate`, `short_calls` or `short_rings`; more may be added."
                    },
                    "severity": {
                        "$ref": "#/components/schemas/NumberHealthSeverityEnum"
                    },
                    "message": {
                        "type": "string",
                        "description": "Plain English, e.g. \"Over 100 calls a day from one number\"."
                    },
                    "params": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "integer"
                        },
                        "description": "The numbers in `message` (`calls`, `one_in`, `seconds`), for wording it yourself."
                    }
                },
                "required": [
                    "code",
                    "message",
                    "params",
                    "severity"
                ]
            },
            "NumberHealthSeverityEnum": {
                "enum": [
                    "watch",
                    "at_risk"
                ],
                "type": "string",
                "description": "* `watch` - watch\n* `at_risk` - at_risk"
            },
            "NumberHealthStatusEnum": {
                "enum": [
                    "good",
                    "watch",
                    "at_risk"
                ],
                "type": "string",
                "description": "* `good` - good\n* `watch` - watch\n* `at_risk` - at_risk"
            },
            "NumberHealthWindow": {
                "type": "object",
                "description": "Schema only: one window's outbound numbers (phone_numbers.health).",
                "properties": {
                    "outbound_calls": {
                        "type": "integer"
                    },
                    "connected_calls": {
                        "type": "integer"
                    },
                    "rang_unanswered_calls": {
                        "type": "integer",
                        "description": "Calls that rang with no answer, busy or declined."
                    },
                    "peak_calls_per_day": {
                        "type": "integer",
                        "description": "Calls on the busiest day in the window, in the number's own time zone (its area code's, else the organization's, else UTC). For the 1-day window, the last 24 hours."
                    },
                    "answer_outcome_calls": {
                        "type": "integer",
                        "description": "Calls the answer and voicemail rates are computed on: answered calls that say who answered, and calls that rang out since your organization's calls started saying so."
                    },
                    "human_answer_rate": {
                        "type": "number",
                        "format": "double",
                        "nullable": true,
                        "description": "Share of answer_outcome_calls a person answered."
                    },
                    "voicemail_rate": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    },
                    "short_call_share": {
                        "type": "number",
                        "format": "double",
                        "nullable": true,
                        "description": "Share of answered calls that lasted under 10 seconds."
                    },
                    "short_ring_share": {
                        "type": "number",
                        "format": "double",
                        "nullable": true,
                        "description": "Share of unanswered calls that rang under 12 seconds."
                    },
                    "average_talk_seconds": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    },
                    "average_ring_seconds": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    },
                    "status": {
                        "$ref": "#/components/schemas/NumberHealthStatusEnum"
                    },
                    "reasons": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/NumberHealthReason"
                        }
                    }
                },
                "required": [
                    "answer_outcome_calls",
                    "average_ring_seconds",
                    "average_talk_seconds",
                    "connected_calls",
                    "human_answer_rate",
                    "outbound_calls",
                    "peak_calls_per_day",
                    "rang_unanswered_calls",
                    "reasons",
                    "short_call_share",
                    "short_ring_share",
                    "status",
                    "voicemail_rate"
                ]
            },
            "NumberHealthWindows": {
                "type": "object",
                "description": "Schema only: the 1-, 7- and 30-day windows.",
                "properties": {
                    "1d": {
                        "$ref": "#/components/schemas/NumberHealthWindow"
                    },
                    "7d": {
                        "$ref": "#/components/schemas/NumberHealthWindow"
                    },
                    "30d": {
                        "$ref": "#/components/schemas/NumberHealthWindow"
                    }
                },
                "required": [
                    "1d",
                    "30d",
                    "7d"
                ]
            },
            "NumberInboundTest": {
                "type": "object",
                "properties": {
                    "phone_number_id": {
                        "type": "integer"
                    },
                    "voip_inbound_status": {
                        "$ref": "#/components/schemas/VoipInboundStatusEnum"
                    },
                    "voip_inbound_tested_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "inbound_probe": {
                        "$ref": "#/components/schemas/InboundProbeResult"
                    }
                },
                "required": [
                    "inbound_probe",
                    "phone_number_id",
                    "voip_inbound_status",
                    "voip_inbound_tested_at"
                ]
            },
            "NumberOfEmployeesEnum": {
                "enum": [
                    "1-10",
                    "11-50",
                    "51-200",
                    "201-500",
                    "501-2000",
                    "2001-10000",
                    "10001+"
                ],
                "type": "string",
                "description": "* `1-10` - 1-10\n* `11-50` - 11-50\n* `51-200` - 51-200\n* `201-500` - 201-500\n* `501-2000` - 501-2000\n* `2001-10000` - 2001-10000\n* `10001+` - 10001+"
            },
            "NumberSummary": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "number": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "number",
                    "status"
                ]
            },
            "NumberTypeEnum": {
                "enum": [
                    "thunderphone",
                    "voip"
                ],
                "type": "string"
            },
            "NumberVerification": {
                "type": "object",
                "properties": {
                    "phone_number_id": {
                        "type": "integer"
                    },
                    "status": {
                        "type": "string"
                    },
                    "voip_verification_status": {
                        "type": "string"
                    },
                    "verification_evidence": {
                        "$ref": "#/components/schemas/VoipVerificationEvidence"
                    },
                    "provider_charge_estimate_cents": {
                        "type": "integer",
                        "nullable": true
                    },
                    "provider_charge_currency": {
                        "type": "string"
                    },
                    "provider_charge_note": {
                        "type": "string"
                    }
                },
                "required": [
                    "phone_number_id",
                    "provider_charge_currency",
                    "provider_charge_estimate_cents",
                    "provider_charge_note",
                    "status",
                    "verification_evidence",
                    "voip_verification_status"
                ]
            },
            "OrgInvite": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "email": {
                        "type": "string",
                        "format": "email",
                        "maxLength": 254
                    },
                    "role": {
                        "$ref": "#/components/schemas/Role13fEnum"
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/StatusDe4Enum"
                            }
                        ],
                        "readOnly": true
                    },
                    "invited_by_email": {
                        "type": "string",
                        "format": "email",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "token": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "send_failed": {
                        "type": "boolean",
                        "readOnly": true
                    }
                },
                "required": [
                    "created_at",
                    "email",
                    "expires_at",
                    "id",
                    "invited_by_email",
                    "send_failed",
                    "status",
                    "token"
                ]
            },
            "OrgMember": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "email": {
                        "type": "string",
                        "format": "email",
                        "readOnly": true
                    },
                    "first_name": {
                        "type": "string",
                        "readOnly": true
                    },
                    "last_name": {
                        "type": "string",
                        "readOnly": true
                    },
                    "role": {
                        "$ref": "#/components/schemas/OrgMemberRoleEnum"
                    },
                    "has_passkey": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "created_at",
                    "email",
                    "first_name",
                    "has_passkey",
                    "id",
                    "last_name"
                ]
            },
            "OrgMemberRoleEnum": {
                "enum": [
                    "owner",
                    "admin",
                    "member"
                ],
                "type": "string",
                "description": "* `owner` - Owner\n* `admin` - Admin\n* `member` - Member"
            },
            "Organization": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "call_recording_enabled": {
                        "type": "boolean"
                    },
                    "ai_live_processing_disclosure_enabled": {
                        "type": "boolean",
                        "description": "Play the AI/live-processing disclosure on recording-off calls. Recording-on calls are unaffected."
                    },
                    "bolt_pipeline": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/BoltPipelineEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "phi_processing": {
                        "$ref": "#/components/schemas/PhiProcessingEnum"
                    },
                    "baa_status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/BaaStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "timezone": {
                        "type": "string",
                        "maxLength": 64
                    },
                    "business_hours": {},
                    "excluded_numbers": {},
                    "default_outcome_labels": {
                        "nullable": true
                    },
                    "status_display": {
                        "nullable": true
                    },
                    "attention_reasons_off": {},
                    "summary_language": {
                        "type": "string",
                        "maxLength": 16
                    },
                    "callback_context_details_enabled": {
                        "type": "boolean"
                    },
                    "gdpr_applies": {
                        "type": "boolean"
                    },
                    "blocked_call_states": {},
                    "max_concurrent_calls": {
                        "type": "integer",
                        "readOnly": true,
                        "description": "Calls in progress at once across every call source (inbound, API, MCP, campaigns, realtime, widget and test calls). Over the limit, new calls get 429 and inbound calls are refused."
                    },
                    "min_seconds_between_calls_to_same_number": {
                        "type": "integer",
                        "readOnly": true,
                        "description": "Minimum seconds between outbound calls from this organization to the same number. 0 turns the check off."
                    },
                    "new_agent_max_call_duration_seconds": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true,
                        "description": "Max call duration (seconds) for newly created agents. Null means no per-agent limit."
                    },
                    "staff_global": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "baa_status",
                    "bolt_pipeline",
                    "created_at",
                    "id",
                    "max_concurrent_calls",
                    "min_seconds_between_calls_to_same_number",
                    "name",
                    "new_agent_max_call_duration_seconds",
                    "updated_at"
                ]
            },
            "OrganizationIntegration": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "display_name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "spec": {},
                    "wizard_input": {
                        "type": "string"
                    },
                    "endpoint_url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 2048
                    },
                    "endpoint_method": {
                        "$ref": "#/components/schemas/EndpointMethodEnum"
                    },
                    "request_format": {
                        "$ref": "#/components/schemas/RequestFormatEnum"
                    },
                    "headers": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/IntegrationHeader"
                        },
                        "readOnly": true
                    },
                    "validation_status": {
                        "$ref": "#/components/schemas/ValidationStatusC53Enum"
                    },
                    "trigger": {
                        "$ref": "#/components/schemas/IntegrationTriggerEnum"
                    },
                    "call_start_arguments": {
                        "nullable": true
                    },
                    "warnings": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/IntegrationWarning"
                        },
                        "readOnly": true,
                        "description": "Saved settings worth a second look. Warnings never block a save."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "created_at",
                    "display_name",
                    "headers",
                    "id",
                    "updated_at",
                    "warnings"
                ]
            },
            "OrganizationLegalTypeEnum": {
                "enum": [
                    "corporation",
                    "llc",
                    "partnership",
                    "nonprofit",
                    "other"
                ],
                "type": "string",
                "description": "* `corporation` - corporation\n* `llc` - llc\n* `partnership` - partnership\n* `nonprofit` - nonprofit\n* `other` - other"
            },
            "OrganizationOnboarding": {
                "type": "object",
                "properties": {
                    "steps": {
                        "type": "object",
                        "additionalProperties": {},
                        "readOnly": true
                    },
                    "all_complete": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "dismissed": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "dismissed_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    }
                },
                "required": [
                    "all_complete",
                    "dismissed",
                    "dismissed_at",
                    "steps"
                ]
            },
            "OrganizationRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "call_recording_enabled": {
                        "type": "boolean"
                    },
                    "ai_live_processing_disclosure_enabled": {
                        "type": "boolean",
                        "description": "Play the AI/live-processing disclosure on recording-off calls. Recording-on calls are unaffected."
                    },
                    "phi_processing": {
                        "$ref": "#/components/schemas/PhiProcessingEnum"
                    },
                    "timezone": {
                        "type": "string",
                        "maxLength": 64
                    },
                    "business_hours": {},
                    "excluded_numbers": {},
                    "default_outcome_labels": {
                        "nullable": true
                    },
                    "status_display": {
                        "nullable": true
                    },
                    "attention_reasons_off": {},
                    "summary_language": {
                        "type": "string",
                        "maxLength": 16
                    },
                    "callback_context_details_enabled": {
                        "type": "boolean"
                    },
                    "gdpr_applies": {
                        "type": "boolean"
                    },
                    "blocked_call_states": {}
                },
                "required": [
                    "name"
                ]
            },
            "OrganizationTypeEnum": {
                "enum": [
                    "commercial",
                    "government",
                    "non_profit"
                ],
                "type": "string",
                "description": "* `commercial` - commercial\n* `government` - government\n* `non_profit` - non_profit"
            },
            "OrganizationValidationExamples": {
                "type": "object",
                "properties": {
                    "examples": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ValidationExample"
                        }
                    }
                },
                "required": [
                    "examples"
                ]
            },
            "OrganizationWebhook": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 2048
                    },
                    "secret": {
                        "type": "string",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "created_at",
                    "secret",
                    "updated_at",
                    "url"
                ]
            },
            "OrganizationWebhookRequest": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 2048
                    }
                },
                "required": [
                    "url"
                ]
            },
            "OutboundDialStateEnum": {
                "enum": [
                    "pending",
                    "submitted",
                    "answered",
                    "failed",
                    "unknown"
                ],
                "type": "string",
                "description": "* `pending` - Pending submission\n* `submitted` - Submitted\n* `answered` - Answered\n* `failed` - Failed before answer\n* `unknown` - Submission outcome unknown"
            },
            "OutboundPlatformNumberKindEnum": {
                "enum": [
                    "outbound_platform_numbers"
                ],
                "type": "string",
                "description": "* `outbound_platform_numbers` - outbound_platform_numbers"
            },
            "OutboundPlatformNumberRequest": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "kind": {
                        "$ref": "#/components/schemas/OutboundPlatformNumberKindEnum"
                    },
                    "status": {
                        "$ref": "#/components/schemas/OutboundPlatformNumberStatusEnum"
                    },
                    "requested_count": {
                        "type": "integer"
                    },
                    "use_case": {
                        "type": "string"
                    },
                    "expected_daily_calls": {
                        "type": "integer",
                        "nullable": true
                    },
                    "consent_source": {
                        "type": "string"
                    },
                    "website": {
                        "type": "string",
                        "format": "uri"
                    },
                    "denial_reason": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "resolved_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    }
                },
                "required": [
                    "consent_source",
                    "created_at",
                    "denial_reason",
                    "expected_daily_calls",
                    "id",
                    "kind",
                    "requested_count",
                    "resolved_at",
                    "status",
                    "use_case",
                    "website"
                ]
            },
            "OutboundPlatformNumberRequestCreateRequest": {
                "type": "object",
                "properties": {
                    "requested_count": {
                        "type": "integer",
                        "maximum": 1000000,
                        "minimum": 1,
                        "description": "Daily limit to request: outbound calls per UTC day from ThunderPhone numbers. Optional on the first request (defaults to 100). Once outbound is enabled it is required and must exceed the current daily_call_limit."
                    },
                    "use_case": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4000
                    },
                    "expected_daily_calls": {
                        "type": "integer",
                        "maximum": 1000000,
                        "minimum": 1
                    },
                    "consent_source": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4000
                    },
                    "website": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Your website. A bare domain such as example.com is accepted as https://example.com.",
                        "maxLength": 200
                    }
                },
                "required": [
                    "consent_source",
                    "use_case",
                    "website"
                ]
            },
            "OutboundPlatformNumberRequestState": {
                "type": "object",
                "properties": {
                    "platform_outbound_enabled": {
                        "type": "boolean"
                    },
                    "daily_call_limit": {
                        "type": "integer",
                        "nullable": true,
                        "description": "Outbound calls per UTC day allowed from ThunderPhone numbers; null until enabled."
                    },
                    "calls_today": {
                        "type": "integer",
                        "description": "Outbound call attempts from ThunderPhone numbers since 00:00 UTC."
                    },
                    "resets_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Next 00:00 UTC, when calls_today resets."
                    },
                    "default_daily_call_limit": {
                        "type": "integer",
                        "description": "Daily limit granted by the first approved request."
                    },
                    "request": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/OutboundPlatformNumberRequest"
                            }
                        ],
                        "nullable": true
                    }
                },
                "required": [
                    "calls_today",
                    "daily_call_limit",
                    "default_daily_call_limit",
                    "platform_outbound_enabled",
                    "request",
                    "resets_at"
                ]
            },
            "OutboundPlatformNumberStatusEnum": {
                "enum": [
                    "pending",
                    "approved",
                    "denied"
                ],
                "type": "string",
                "description": "* `pending` - pending\n* `approved` - approved\n* `denied` - denied"
            },
            "OutboundSpeakOrderEnum": {
                "enum": [
                    "agent_first",
                    "caller_first"
                ],
                "type": "string",
                "description": "* `agent_first` - Agent First\n* `caller_first` - Caller First"
            },
            "OutboundStatusEnum": {
                "enum": [
                    "pass",
                    "fail"
                ],
                "type": "string",
                "description": "* `pass` - Pass\n* `fail` - Fail"
            },
            "OutboundTcpaConfirmation": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "organization_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "user_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "user_name": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "user_role": {
                        "type": "string",
                        "readOnly": true
                    },
                    "text_version": {
                        "type": "string",
                        "readOnly": true
                    },
                    "rendered_text_sha256": {
                        "type": "string",
                        "readOnly": true
                    },
                    "locale": {
                        "type": "string",
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/OutboundTcpaConfirmationStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "confirmed_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "status_updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "confirmed_at",
                    "id",
                    "locale",
                    "organization_id",
                    "rendered_text_sha256",
                    "status",
                    "status_updated_at",
                    "text_version",
                    "user_id",
                    "user_role"
                ]
            },
            "OutboundTcpaConfirmationCreateRequest": {
                "type": "object",
                "properties": {
                    "accepted": {
                        "type": "boolean"
                    },
                    "text_version": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                    },
                    "locale": {
                        "type": "string",
                        "minLength": 1,
                        "default": "en",
                        "maxLength": 16
                    },
                    "rendered_text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 8000
                    }
                },
                "required": [
                    "accepted",
                    "rendered_text",
                    "text_version"
                ]
            },
            "OutboundTcpaConfirmationStatusEnum": {
                "enum": [
                    "active",
                    "superseded",
                    "revoked"
                ],
                "type": "string",
                "description": "* `active` - Active\n* `superseded` - Superseded by a newer confirmation\n* `revoked` - Revoked by ThunderPhone"
            },
            "OutcomeEnum": {
                "enum": [
                    "refused",
                    "no_arrival",
                    "answered_no_arrival",
                    "platform_error"
                ],
                "type": "string",
                "description": "* `refused` - refused\n* `no_arrival` - no_arrival\n* `answered_no_arrival` - answered_no_arrival\n* `platform_error` - platform_error"
            },
            "OwnershipCheck": {
                "type": "object",
                "properties": {
                    "status": {
                        "type": "string",
                        "nullable": true,
                        "description": "pending, approved or rejected; null before submission."
                    },
                    "rejection_reason": {
                        "type": "string",
                        "nullable": true
                    },
                    "submitted_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    }
                },
                "required": [
                    "rejection_reason",
                    "status",
                    "submitted_at"
                ]
            },
            "OwnershipDocumentsRequest": {
                "type": "object",
                "properties": {
                    "files": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "binary"
                        },
                        "maxItems": 5,
                        "minItems": 1
                    }
                },
                "required": [
                    "files"
                ]
            },
            "PaceEnum": {
                "enum": [
                    "natural",
                    "slow",
                    "fast"
                ],
                "type": "string",
                "description": "* `natural` - natural\n* `slow` - slow\n* `fast` - fast"
            },
            "PartyNumbers": {
                "type": "object",
                "properties": {
                    "numbers": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "numbers"
                ]
            },
            "PatchedAgentExperimentRequest": {
                "type": "object",
                "description": "An experiment: a weighted split over some of the agent's variants and\nthe control, run on the numbers pointed at it (inbound_experiment_id).\n\nEditable only while a draft. ``arms`` replaces the whole set when sent.",
                "properties": {
                    "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                    },
                    "arms": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AgentExperimentArmRequest"
                        }
                    },
                    "call_limit": {
                        "type": "integer",
                        "minimum": 1,
                        "nullable": true,
                        "description": "Optional: the experiment ends by itself after this many calls went through it."
                    }
                }
            },
            "PatchedAgentImportItemPatchRequest": {
                "type": "object",
                "properties": {
                    "selected": {
                        "type": "boolean"
                    },
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "voice": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                    },
                    "product": {
                        "$ref": "#/components/schemas/Product235Enum"
                    },
                    "prompt_choice": {
                        "$ref": "#/components/schemas/PromptChoiceEnum"
                    }
                }
            },
            "PatchedAgentIntegrationRequest": {
                "type": "object",
                "properties": {
                    "display_name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "spec": {},
                    "endpoint": {
                        "nullable": true
                    },
                    "wizard_input": {
                        "type": "string"
                    },
                    "validation_status": {
                        "$ref": "#/components/schemas/ValidationStatusC53Enum"
                    }
                }
            },
            "PatchedAgentVariantRequest": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                    },
                    "weight": {
                        "type": "integer",
                        "maximum": 100,
                        "minimum": 0
                    },
                    "is_control": {
                        "type": "boolean"
                    },
                    "prompt": {
                        "type": "string",
                        "nullable": true
                    },
                    "voice": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 100
                    },
                    "product": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 32
                    },
                    "background_track": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "thinking_level": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 20
                    },
                    "acknowledgement_prompt_mode": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "acknowledgement_prompt": {
                        "type": "string",
                        "nullable": true
                    },
                    "inbound_speak_order": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "outbound_speak_order": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "silence_interval_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "silence_max_checkins": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "language": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "flow_note": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "PatchedAgentWriteRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "prompt": {
                        "type": "string",
                        "minLength": 1
                    },
                    "voice": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                    },
                    "primary_language": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Primary language code (ISO 639, e.g. 'en', 'es'). Determines the default TTS provider and locale for the agent.",
                        "maxLength": 16
                    },
                    "additional_languages": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 16
                        }
                    },
                    "native_voice_switching": {
                        "type": "boolean"
                    },
                    "language_voices": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                        },
                        "description": "The voice a call uses when it starts in a given language, by language code, e.g. {\"es\": \"<voice>\"}. Used when a call names its language (a config webhook's agent_id answer, a widget or realtime session): before native voice switching's choice, and when the agent's voice does not speak that language. Each voice must speak its language."
                    },
                    "language_switching": {
                        "$ref": "#/components/schemas/LanguageSwitchingEnum"
                    },
                    "audio_tier": {
                        "$ref": "#/components/schemas/AudioTierEnum"
                    },
                    "endpointing": {
                        "$ref": "#/components/schemas/EndpointingEnum"
                    },
                    "eagerness": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/EagernessEnum"
                            }
                        ],
                        "description": "Deprecated: use endpointing (same values).\n\n* `faster` - Faster (200 ms)\n* `fast` - Fast (300 ms)\n* `normal` - Normal (500 ms)\n* `patient` - Patient (800 ms)",
                        "deprecated": true
                    },
                    "intelligence": {
                        "$ref": "#/components/schemas/IntelligenceEnum"
                    },
                    "product": {
                        "$ref": "#/components/schemas/ProductB5bEnum"
                    },
                    "thinking_level": {
                        "$ref": "#/components/schemas/ThinkingLevel477Enum"
                    },
                    "background_track": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "acknowledgement_prompt_mode": {
                        "$ref": "#/components/schemas/AcknowledgementPromptMode836Enum"
                    },
                    "acknowledgement_prompt": {
                        "type": "string"
                    },
                    "acknowledgement_feedback_mode": {
                        "$ref": "#/components/schemas/AcknowledgementFeedbackModeEnum"
                    },
                    "inbound_speak_order": {
                        "$ref": "#/components/schemas/InboundSpeakOrderEnum"
                    },
                    "outbound_speak_order": {
                        "$ref": "#/components/schemas/OutboundSpeakOrderEnum"
                    },
                    "voicemail_action": {
                        "$ref": "#/components/schemas/VoicemailAction89dEnum"
                    },
                    "voicemail_message": {
                        "type": "string",
                        "description": "Voicemail TTS template. Supported variables: {agent_name}, {org_name}."
                    },
                    "silence_interval_seconds": {
                        "type": "integer",
                        "maximum": 120,
                        "minimum": 5,
                        "nullable": true
                    },
                    "silence_max_checkins": {
                        "type": "integer",
                        "maximum": 10,
                        "minimum": 1
                    },
                    "silence_checkins_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent proactively checks in and eventually hangs up during caller silence."
                    },
                    "silence_hangup_seconds": {
                        "type": "integer",
                        "maximum": 3600,
                        "minimum": 60,
                        "description": "Caller-idle seconds before a silent hangup when silence check-ins are disabled."
                    },
                    "silence_final_action": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SilenceFinalActionEnum"
                            }
                        ],
                        "description": "What the agent does after its last silence check-in: hang_up (default) or transfer to silence_transfer_destination.\n\n* `hang_up` - Hang up\n* `transfer` - Transfer"
                    },
                    "silence_transfer_destination": {
                        "type": "string",
                        "description": "Name of one of this agent's transfer_destinations, used when silence_final_action is transfer. Matched case-insensitively."
                    },
                    "silence_final_message": {
                        "type": "string",
                        "description": "What the agent says at the final action after the last silence check-in, spoken as written. Blank uses the call language's default line. At most 300 characters."
                    },
                    "max_call_duration_seconds": {
                        "type": "integer",
                        "maximum": 21600,
                        "minimum": 60,
                        "nullable": true,
                        "description": "Maximum call length in seconds. Null means no limit."
                    },
                    "ring_duration_seconds": {
                        "type": "integer",
                        "maximum": 120,
                        "minimum": 5,
                        "nullable": true,
                        "description": "Outbound and transfer ringing time in seconds. Null uses platform defaults."
                    },
                    "max_hold_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "connect_tone_enabled": {
                        "type": "boolean",
                        "description": "Whether to play a short connection tone before the agent begins the call."
                    },
                    "typing_sounds_enabled": {
                        "type": "boolean"
                    },
                    "typing_sound": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/TypingSoundD48Enum"
                            }
                        ],
                        "description": "Which typing loop plays while a custom tool runs, when typing sounds are on.\n\n* `mechanical` - Mechanical keyboard\n* `desktop` - Desktop keyboard\n* `laptop` - Laptop\n* `keys_and_mouse` - Keyboard and mouse\n* `office` - Office keyboard\n* `quiet_room` - Quiet room"
                    },
                    "filler_phrases_enabled": {
                        "type": "boolean"
                    },
                    "pronunciation_dicts": {
                        "type": "boolean",
                        "description": "Whether calls use ThunderPhone's pronunciation dictionary for Cartesia speech (ThunderPhone's own Cartesia voices only)."
                    },
                    "tool_start_line": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ToolStartLineA57Enum"
                            }
                        ],
                        "description": "What the agent says when a tool call starts. always: a line at every tool call. only_if_slow: a line only if the tool is still running after a short wait. never: nothing at tool start.\n\n* `always` - Always\n* `only_if_slow` - Only if slow\n* `never` - Never"
                    },
                    "play_sound_asset": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/PlaySoundAsset4b4Enum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            }
                        ]
                    },
                    "intro_clip": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/IntroClipEnum"
                            }
                        ],
                        "description": "Prerecorded clip played at the start of inbound calls, before the agent speaks.\n\n* `none` - Off\n* `stock_recording_notice` - Recording notice (female)\n* `stock_recording_notice_male` - Recording notice (male)\n* `custom` - Custom clip"
                    },
                    "intro_ring_count": {
                        "type": "integer",
                        "maximum": 2,
                        "minimum": 0,
                        "description": "US rings played after the intro clip, before the agent speaks (0-2)."
                    },
                    "speak_uninterruptible_enabled": {
                        "type": "boolean"
                    },
                    "call_recording_enabled": {
                        "type": "boolean"
                    },
                    "ai_live_processing_disclosure_override": {
                        "$ref": "#/components/schemas/AiLiveProcessingDisclosureOverrideEnum"
                    },
                    "phi_processing_override": {
                        "$ref": "#/components/schemas/PhiProcessingOverrideEnum"
                    },
                    "send_email_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent may send an email to the configured recipient during a call."
                    },
                    "send_email_recipient": {
                        "type": "string",
                        "format": "email",
                        "maxLength": 254
                    },
                    "calculator_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent gets the calculate tool for exact arithmetic during a call."
                    },
                    "do_not_call_detection_enabled": {
                        "type": "boolean",
                        "description": "On outbound calls, add the number to the organization's call opt-out list when the person asks not to be called again. Off needs the organization's do-not-call detection attestation."
                    },
                    "faster_replies_enabled": {
                        "type": "boolean",
                        "description": "Bolt v2: on replies where it helps, send two requests and use whichever answers first. Those replies use twice the model tokens."
                    },
                    "call_setup_webhook_url": {
                        "type": "string",
                        "format": "uri",
                        "description": "URL ThunderPhone asks before each inbound phone call this agent answers on one of your numbers, to fill in the agent's {{variables}} and the call's context. Blank for none. Required while the agent answers a number and uses a {{variable}} with no default (see call_setup_webhook_variables).",
                        "maxLength": 2048
                    },
                    "call_setup_webhook_signing_secret": {
                        "type": "string",
                        "writeOnly": true,
                        "minLength": 16,
                        "description": "Secret that signs each call setup webhook request (X-ThunderPhone-Signature, the hex HMAC-SHA256 of the body). Write-only: it is never returned. Set one your endpoint checks; until you do, requests are signed with one ThunderPhone made, which nobody can read.",
                        "maxLength": 255
                    },
                    "system_tool_settings": {
                        "description": "Explicit on/off for the end_call, send_keypad_input and wait_on_hold system tools. An absent tool follows the call: end_call on, the other two on for outbound calls only."
                    },
                    "send_sms_enabled": {
                        "type": "boolean",
                        "description": "Whether the agent may send SMS through a customer-connected carrier number."
                    },
                    "sms_from_number": {
                        "type": "string",
                        "maxLength": 32
                    },
                    "sms_allow_other_recipients": {
                        "type": "boolean",
                        "description": "Whether the send_sms tool may text a recipient other than the current telephone party."
                    },
                    "sms_allowed_recipients": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SmsAllowedRecipientRequest"
                        }
                    },
                    "transfer_destinations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TransferDestinationRequest"
                        }
                    },
                    "warm_transfer_style": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WarmTransferStyleEnum"
                            }
                        ],
                        "description": "What happens when a warm transfer is answered. introduce (default): the caller is connected as soon as the person answers, then the AI introduces the caller on the line, which both hear, and leaves. ask_first: the caller waits on hold while the AI privately asks the person who answers whether they can take the call; they can decline. On yes the caller is connected and the AI introduces them on the line. whisper: the caller waits on hold while the AI privately tells the person who answers who is calling and why, without asking; then the caller is connected and the AI leaves with nothing said on the line.\n\n* `introduce` - Introduce on the line\n* `ask_first` - Ask first\n* `whisper` - Whisper"
                    },
                    "warm_transfer_briefing": {
                        "type": "string",
                        "description": "What the AI should tell the person who answers a warm transfer about the caller: in the introduction on the line, or privately with ask_first and whisper, e.g. \"the caller's name and what they need\". Blank uses a very short default: who is calling and why. At most 300 characters."
                    },
                    "sms_followup_enabled": {
                        "type": "boolean"
                    },
                    "sms_followup_template": {
                        "type": "string"
                    },
                    "extraction_fields": {},
                    "extraction_blocks_completion": {
                        "$ref": "#/components/schemas/ExtractionBlocksCompletionEnum"
                    },
                    "call_summary_enabled": {
                        "type": "boolean"
                    },
                    "call_review_enabled": {
                        "type": "boolean"
                    },
                    "outcome_labels": {},
                    "report_instructions": {
                        "type": "string"
                    },
                    "attention_reasons": {},
                    "summary_language": {
                        "type": "string",
                        "maxLength": 16
                    },
                    "timezone": {
                        "type": "string",
                        "maxLength": 64
                    },
                    "business_hours": {
                        "nullable": true
                    },
                    "consent_announcement_enabled": {
                        "type": "boolean"
                    },
                    "consent_announcement_text": {
                        "type": "string",
                        "minLength": 1
                    },
                    "disclosure_voice": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureVoiceEnum"
                            }
                        ],
                        "description": "Voice the consent announcement plays in.\n\n* `female` - Female\n* `male` - Male"
                    },
                    "disclosure_style": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureStyleEnum"
                            }
                        ],
                        "description": "Version of the consent announcement: clean (high quality) or phone (corporate style, like a classic company phone system).\n\n* `clean` - High quality\n* `phone` - Corporate style"
                    },
                    "disclosure_ring_count": {
                        "type": "integer",
                        "maximum": 2,
                        "minimum": 0,
                        "description": "US rings played after the consent announcement, before the agent speaks (0-2)."
                    },
                    "audio_context_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AudioContextMode3d0Enum"
                            }
                        ],
                        "description": "Storm audio context window. 'reduced' lowers latency by using less prior audio context.\n\n* `full` - Full\n* `reduced` - Reduced"
                    },
                    "watchdog_enabled": {
                        "type": "boolean"
                    },
                    "additional_audio_context": {
                        "type": "boolean",
                        "nullable": true,
                        "description": "Override the direction-based depth of recent caller audio included in model context."
                    },
                    "widget_enabled": {
                        "type": "boolean"
                    },
                    "split_testing_enabled": {
                        "type": "boolean"
                    },
                    "steps": {
                        "nullable": true
                    },
                    "handoffs": {},
                    "words": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AgentWordRequest"
                        }
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "writeOnly": true
                    },
                    "draft_name": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "draft_prompt": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_voice": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 100
                    },
                    "draft_primary_language": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "draft_native_voice_switching": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_language_switching": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftLanguageSwitchingEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_audio_tier": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAudioTierEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_endpointing": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftEndpointingEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_eagerness": {
                        "nullable": true,
                        "description": "Deprecated: use draft_endpointing (same values).\n\n* `faster` - Faster (200 ms)\n* `fast` - Fast (300 ms)\n* `normal` - Normal (500 ms)\n* `patient` - Patient (800 ms)",
                        "deprecated": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftEagernessEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_intelligence": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftIntelligenceEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_product": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftProductEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_background_track": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 255
                    },
                    "draft_thinking_level": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftThinkingLevelEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_acknowledgement_prompt_mode": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAcknowledgementPromptModeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_acknowledgement_prompt": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_acknowledgement_feedback_mode": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAcknowledgementFeedbackModeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_inbound_speak_order": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftInboundSpeakOrderEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_outbound_speak_order": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftOutboundSpeakOrderEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_voicemail_action": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftVoicemailActionEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_voicemail_message": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_silence_interval_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_silence_max_checkins": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_silence_checkins_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_silence_hangup_seconds": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_silence_final_action": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/SilenceFinalActionEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_silence_transfer_destination": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_silence_final_message": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_connect_tone_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_typing_sounds_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_typing_sound": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftTypingSoundEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_filler_phrases_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_pronunciation_dicts": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_tool_start_line": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftToolStartLineEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_play_sound_asset": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftPlaySoundAssetEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_intro_clip": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftIntroClipEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_intro_ring_count": {
                        "type": "integer",
                        "maximum": 32767,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_speak_uninterruptible_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_call_recording_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_ai_live_processing_disclosure_override": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAiLiveProcessingDisclosureOverrideEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_phi_processing_override": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftPhiProcessingOverrideEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_send_email_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_send_email_recipient": {
                        "type": "string",
                        "format": "email",
                        "nullable": true,
                        "maxLength": 254
                    },
                    "draft_calculator_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_do_not_call_detection_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_faster_replies_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_call_setup_webhook_url": {
                        "type": "string",
                        "format": "uri",
                        "nullable": true,
                        "maxLength": 2048
                    },
                    "draft_system_tool_settings": {
                        "nullable": true
                    },
                    "draft_send_sms_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_sms_from_number": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 32
                    },
                    "draft_sms_allow_other_recipients": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_sms_allowed_recipients": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SmsAllowedRecipientRequest"
                        },
                        "nullable": true
                    },
                    "draft_transfer_destinations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TransferDestinationRequest"
                        },
                        "nullable": true
                    },
                    "draft_warm_transfer_style": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftWarmTransferStyleEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_warm_transfer_briefing": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_sms_followup_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_sms_followup_template": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_extraction_fields": {
                        "nullable": true
                    },
                    "draft_extraction_blocks_completion": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftExtractionBlocksCompletionEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_call_summary_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_call_review_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_outcome_labels": {
                        "nullable": true
                    },
                    "draft_report_instructions": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_attention_reasons": {
                        "nullable": true
                    },
                    "draft_summary_language": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 16
                    },
                    "draft_timezone": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 64
                    },
                    "draft_business_hours": {
                        "nullable": true
                    },
                    "draft_consent_announcement_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_consent_announcement_text": {
                        "type": "string",
                        "nullable": true
                    },
                    "draft_disclosure_voice": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureVoiceEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_disclosure_style": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureStyleEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_disclosure_ring_count": {
                        "type": "integer",
                        "maximum": 32767,
                        "minimum": 0,
                        "nullable": true
                    },
                    "draft_audio_context_mode": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/DraftAudioContextModeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "draft_watchdog_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_additional_audio_context": {
                        "type": "boolean",
                        "nullable": true,
                        "description": "Staged additional_audio_context: true or false, or null when nothing is staged. Responses carry {\"__inherit__\": true} for a staged change back to automatic (null)."
                    },
                    "draft_widget_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_split_testing_enabled": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "draft_integration_ids": {
                        "nullable": true
                    },
                    "draft_knowledge_base_ids": {
                        "nullable": true
                    },
                    "draft_knowledge_document_ids": {
                        "nullable": true
                    },
                    "draft_mcp_server_ids": {
                        "nullable": true
                    },
                    "draft_reusable_instruction_ids": {
                        "nullable": true
                    },
                    "if_updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "writeOnly": true
                    }
                }
            },
            "PatchedAutoReloadRequest": {
                "type": "object",
                "properties": {
                    "auto_reload_enabled": {
                        "type": "boolean"
                    },
                    "auto_reload_minimum_cents": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "auto_reload_amount_cents": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "auto_reload_monthly_limit_cents": {
                        "type": "integer",
                        "minimum": 0,
                        "nullable": true
                    }
                }
            },
            "PatchedCallIssueReportBulkUpdateRequest": {
                "type": "object",
                "description": "Bulk-update status for a set of issue reports identified by trace_id.\n\n`pattern_key` (QA4 CALLS-07) is an optional opt-in: when present, the\nview expands the update beyond the literal `trace_ids` to every other\nreport in the org that belongs to the same recurring-issue pattern (see\nOrgIssueReportFeedView.patch / _resolve_issue_pattern_key). Its exact\nstring value isn't used for matching — the true pattern identity is\nre-derived server-side from `trace_ids` against complete data — so this\njust needs to be a truthy marker plus a useful value for logs. Omitting\nit keeps the legacy trace_ids-only contract (update exactly those rows)\nunchanged for backward compatibility.",
                "properties": {
                    "trace_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "maxItems": 500,
                        "minItems": 1
                    },
                    "status": {
                        "$ref": "#/components/schemas/Status83aEnum"
                    },
                    "pattern_key": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "PatchedCallIssueReportUpdateRequest": {
                "type": "object",
                "description": "Accepts a status transition for one or more issue reports.",
                "properties": {
                    "status": {
                        "$ref": "#/components/schemas/Status83aEnum"
                    }
                }
            },
            "PatchedCallSetupSampleWriteRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 80
                    },
                    "variables": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Like a call setup webhook's variables."
                    },
                    "context": {
                        "type": "string",
                        "nullable": true
                    },
                    "language": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "PatchedCampaignRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "agent": {
                        "type": "integer"
                    },
                    "from_number": {
                        "type": "string",
                        "minLength": 1,
                        "description": "The first number of the caller ID pool. Sending only from_number makes a pool of that one number.",
                        "maxLength": 32
                    },
                    "from_numbers": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 32
                        },
                        "description": "The caller ID pool, in order: E.164 numbers of this organization, at most 50. Each contact is dialed from the number it was last called from, else one with its area code, else one in its timezone, else the least used. Send this or from_number.",
                        "maxItems": 50,
                        "minItems": 1
                    },
                    "max_calls_per_number_per_day": {
                        "type": "integer",
                        "maximum": 500,
                        "minimum": 1,
                        "nullable": true,
                        "description": "Outbound calls each pool number may place in a rolling 24 hours, counting every outbound call from that number in your organization (1-500, default 75 for new campaigns; null for no per-number limit). Numbers with less than a week of outbound calls start lower and ramp up. Contacts wait when every number is at its limit."
                    },
                    "timezone": {
                        "type": "string",
                        "minLength": 1,
                        "description": "IANA timezone the daily window runs in. When omitted on create it defaults to the from number's area-code or country zone, else UTC.",
                        "maxLength": 64
                    },
                    "window_timezone_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WindowTimezoneModeEnum"
                            }
                        ],
                        "description": "\"contact\" runs the daily window in each contact's local time, from the contact's US or Canadian area code (other contacts use the campaign timezone); \"campaign\" runs it in the campaign timezone for everyone. Default \"contact\" for new campaigns; campaigns created before this setting keep \"campaign\".\n\n* `campaign` - Campaign timezone\n* `contact` - Each contact's local time"
                    },
                    "calling_hours_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallingHoursModeEnum"
                            }
                        ],
                        "description": "\"state_defaults\" also holds each US contact to its state's default calling hours in its local time (from its area code, and its state variable when it names another state): a call starts only when the daily window and the state's hours both allow it, and a contact outside them waits. US numbers with no state get 8am-9pm. Numbers outside the US get only the daily window. \"campaign_window\" uses the daily window alone. Default \"state_defaults\" for new campaigns; campaigns created before this setting keep \"campaign_window\". The hours are listed at https://docs.thunderphone.com/guides/outbound-calling-laws.\n\n* `state_defaults` - Each state's default calling hours and the campaign window\n* `campaign_window` - The campaign window only"
                    },
                    "calling_hours_exempt_states": {
                        "description": "Two-letter US state codes whose default hours this campaign skips in state_defaults mode: contacts there get only the daily window. Default []."
                    },
                    "daily_window_start": {
                        "type": "string",
                        "format": "time",
                        "description": "Start of the daily window. Send both window fields or neither; neither means 09:00-17:00 on create."
                    },
                    "daily_window_end": {
                        "type": "string",
                        "format": "time",
                        "description": "End of the daily window (exclusive); neither window field on create means 09:00-17:00. An end earlier than daily_window_start makes an overnight window, dialed from the start until the end the next day; it is saved with a warning."
                    },
                    "start_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "end_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "max_concurrent_calls": {
                        "type": "integer",
                        "maximum": 10,
                        "minimum": 1
                    },
                    "max_attempts": {
                        "type": "integer",
                        "maximum": 32767,
                        "minimum": 1,
                        "description": "Total tries per contact. At most 10 unless staff raised your organization's limit."
                    },
                    "retry_backoff_minutes": {
                        "type": "integer",
                        "maximum": 2147483647,
                        "minimum": 0,
                        "description": "Minutes before a retry. At least 30 unless staff lowered your organization's minimum."
                    },
                    "retry_strategy": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RetryStrategyEnum"
                            }
                        ],
                        "description": "\"spread\" moves each retry to a later day and a different part of the contact's day (morning, midday, late afternoon), at least retry_backoff_minutes after the last attempt; \"fixed\" retries exactly retry_backoff_minutes later. Default \"spread\" for new campaigns; campaigns created before this setting keep \"fixed\".\n\n* `fixed` - Fixed backoff\n* `spread` - Spread across days and times of day"
                    },
                    "retry_on": {},
                    "double_dial": {
                        "type": "boolean",
                        "description": "After a call rings out unanswered, call once more from the same number 30-60 seconds later. The redial is not an attempt. It can ring through iPhone Do Not Disturb when Allow Repeated Calls is on."
                    },
                    "pre_call_sms_enabled": {
                        "type": "boolean",
                        "description": "Text each contact before their first call (never before retries). Needs pre_call_sms_from_number. A failed text never stops the call."
                    },
                    "pre_call_sms_from_number": {
                        "type": "string",
                        "description": "E.164 number that sends the pre-call text: an SMS-capable number on your own Twilio or Telnyx connection. ThunderPhone numbers cannot text.",
                        "maxLength": 32
                    },
                    "pre_call_sms_template": {
                        "type": "string",
                        "description": "The pre-call text, up to 1600 characters. Uses {{variable}} placeholders: the contact's variables plus {{org_name}}, {{agent_name}} and {{call_from_number}}. A missing variable renders as nothing; {{name|default}} sets a fallback. Blank means the default text."
                    },
                    "pre_call_sms_lead_minutes": {
                        "type": "integer",
                        "maximum": 60,
                        "minimum": 1,
                        "description": "Minutes between the text and the call, 1-60. The call goes out on the first campaign tick (every 5 minutes) after that."
                    },
                    "line_type_filter": {
                        "description": "Look up each contact's number before its first call and skip some types. \"skip_mobile\" calls landlines, VoIP and toll-free numbers and skips mobiles and numbers the lookup cannot classify (for campaigns without consent to call mobiles with an AI voice); \"skip_landline\" skips landlines; \"\" (default) looks nothing up. Each lookup is charged to the balance (a fraction of a cent: Telnyx's list price with your pricing's markup); a result your organization paid for in the last 90 days is reused free. Skipped contacts end as \"failed\" with last_outcome \"skipped_mobile\", \"skipped_landline\" or \"skipped_unknown_line_type\", and are counted in skipped_count.\n\n* `` - Off\n* `skip_mobile` - Skip mobile numbers\n* `skip_landline` - Skip landlines",
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/LineTypeFilterEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            }
                        ]
                    }
                }
            },
            "PatchedDeveloperApiKeysUpdateBodyRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "description": "The key's new name. The secret is unchanged.",
                        "maxLength": 120
                    },
                    "include_held_out_calls": {
                        "type": "boolean",
                        "description": "Let the key see held-out calls in full (agent iteration toolkit), for an integration that needs every call. Only a signed-in person can change it, from the dashboard."
                    }
                }
            },
            "PatchedDeveloperWebhookEndpointCreateUpdateRequest": {
                "type": "object",
                "properties": {
                    "agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120
                    },
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "minLength": 1,
                        "maxLength": 2048
                    },
                    "events": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/EventsEnum"
                        }
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DeveloperWebhookEndpointCreateUpdateStatusEnum"
                            }
                        ],
                        "default": "active"
                    }
                }
            },
            "PatchedDocumentTextRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "content": {
                        "type": "string",
                        "minLength": 1
                    }
                }
            },
            "PatchedDocumentUploadRequest": {
                "type": "object",
                "properties": {
                    "file": {
                        "type": "string",
                        "format": "binary"
                    },
                    "name": {
                        "type": "string",
                        "minLength": 1
                    }
                }
            },
            "PatchedIssueClusterUpdateRequest": {
                "type": "object",
                "properties": {
                    "fix_lane": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/FixLaneEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "fix_lane_source": {
                        "$ref": "#/components/schemas/IssueClusterUpdateFixLaneSourceEnum"
                    },
                    "status": {
                        "$ref": "#/components/schemas/IssueClusterUpdateStatusEnum"
                    }
                }
            },
            "PatchedKnowledgeBaseRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "description": {
                        "type": "string"
                    }
                }
            },
            "PatchedMCPServerCreateUpdateRequest": {
                "type": "object",
                "properties": {
                    "display_name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "minLength": 1,
                        "maxLength": 2048
                    },
                    "transport": {
                        "$ref": "#/components/schemas/MCPServerCreateUpdateTransportEnum"
                    },
                    "headers": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/MCPServerHeaderWriteRequest"
                        }
                    },
                    "enabled": {
                        "type": "boolean"
                    }
                }
            },
            "PatchedMemberRoleRequestRequest": {
                "type": "object",
                "properties": {
                    "role": {
                        "$ref": "#/components/schemas/Role0b4Enum"
                    }
                }
            },
            "PatchedOrganizationRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "call_recording_enabled": {
                        "type": "boolean"
                    },
                    "ai_live_processing_disclosure_enabled": {
                        "type": "boolean",
                        "description": "Play the AI/live-processing disclosure on recording-off calls. Recording-on calls are unaffected."
                    },
                    "phi_processing": {
                        "$ref": "#/components/schemas/PhiProcessingEnum"
                    },
                    "timezone": {
                        "type": "string",
                        "maxLength": 64
                    },
                    "business_hours": {},
                    "excluded_numbers": {},
                    "default_outcome_labels": {
                        "nullable": true
                    },
                    "status_display": {
                        "nullable": true
                    },
                    "attention_reasons_off": {},
                    "summary_language": {
                        "type": "string",
                        "maxLength": 16
                    },
                    "callback_context_details_enabled": {
                        "type": "boolean"
                    },
                    "gdpr_applies": {
                        "type": "boolean"
                    },
                    "blocked_call_states": {}
                }
            },
            "PatchedOrganizationWebhookRequest": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 2048
                    }
                }
            },
            "PatchedPhoneNumberUpdateRequest": {
                "type": "object",
                "properties": {
                    "status": {
                        "$ref": "#/components/schemas/Status06bEnum"
                    },
                    "label": {
                        "type": "string",
                        "description": "Optional friendly name for this number (e.g. 'Main Line', 'Support').",
                        "maxLength": 100
                    },
                    "inbound_agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "inbound_agent_version_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "A published version of the number's inbound agent to answer with, or null for Latest. Changing inbound_agent_id without it sets Latest."
                    },
                    "inbound_agent_variant_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "A variant of the number's inbound agent to answer with on every call, or null for the agent itself. Changing inbound_agent_id without it sets null."
                    },
                    "inbound_experiment_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "A running experiment of the number's inbound agent: each call takes one of its arms by weight. Start the experiment first; a draft or ended one is refused. On a number pinned to a version, that version must include every variant arm. Null for none. A number runs a variant or an experiment, not both: a number on a variant needs inbound_agent_variant_id: null with it. Changing inbound_agent_id without it sets null."
                    },
                    "outbound_agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "webhook_url": {
                        "type": "string",
                        "format": "uri",
                        "nullable": true
                    }
                }
            },
            "PatchedProviderOperationsRequest": {
                "type": "object",
                "properties": {
                    "allowed_operations": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "send_guest_invitations": {
                        "type": "boolean"
                    }
                },
                "minProperties": 1,
                "additionalProperties": false
            },
            "PatchedPublishableKeyUpdateRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                    },
                    "allowed_domains": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                        }
                    },
                    "agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "webhook_url": {
                        "type": "string",
                        "format": "uri",
                        "nullable": true
                    },
                    "mode": {
                        "$ref": "#/components/schemas/Mode559Enum"
                    },
                    "is_enabled": {
                        "type": "boolean"
                    },
                    "embed_config": {},
                    "allowed_overrides": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AllowedOverridesEnum"
                        },
                        "description": "Session fields the browser may set on POST /v1/widget/session: context, language, variables, voice. Anything not listed is rejected with 400 override_not_allowed. New keys allow none."
                    },
                    "max_call_duration_seconds": {
                        "type": "integer",
                        "maximum": 21600,
                        "minimum": 60,
                        "nullable": true
                    }
                }
            },
            "PatchedReusableInstructionRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "content": {
                        "type": "string",
                        "minLength": 1
                    }
                }
            },
            "PatchedScheduledSendUpdateRequest": {
                "type": "object",
                "properties": {
                    "send_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "body": {
                        "type": "string",
                        "maxLength": 1600
                    },
                    "variables": {
                        "nullable": true
                    },
                    "context": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 20000
                    },
                    "allow_quiet_hours": {
                        "type": "boolean"
                    }
                }
            },
            "PatchedSipEndpointUpdateRequest": {
                "type": "object",
                "properties": {
                    "agent_id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 120
                    },
                    "auth": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SipEndpointAuthEnum"
                            }
                        ],
                        "description": "digest: callers authenticate with username and password (SIP digest). ip_allowlist: no password; only calls from allowed_source_cidrs over TCP or TLS are accepted. For platforms that authenticate by source IP only. Switching to digest returns a new password once.\n\n* `digest` - SIP digest username and password\n* `ip_allowlist` - Source IP allowlist only"
                    },
                    "allowed_source_cidrs": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1
                        },
                        "description": "Source IPv4/IPv6 CIDRs allowed to call this endpoint; with digest auth, empty allows any source. Required with ip_allowlist auth: at least one public range, IPv4 /16 or narrower, IPv6 /48 or narrower. Checked for calls over TCP or TLS only: a UDP source address can be forged, so an endpoint with an allowlist refuses UDP calls."
                    },
                    "dial_in_numbers": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 32
                        },
                        "description": "Phone numbers a contact-center platform dials to reach this endpoint (Five9, NICE CXone, Zoom Contact Center), written exactly as the platform dials them: 6 to 15 digits with an optional leading +; spaces, dashes and parentheses are removed. At most 5. Only with ip_allowlist auth. Each must not be in use on another SIP endpoint or as a ThunderPhone phone number. Calls to them need the same allowed source as calls to sip_uri."
                    },
                    "srtp": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SipEndpointSrtpEnum"
                            }
                        ],
                        "description": "Media encryption: disabled (default), optional (SRTP when the caller offers it) or required (calls without SRTP are refused). optional and required need ip_allowlist auth. Use with TLS.\n\n* `disabled` - No media encryption\n* `optional` - SRTP when the caller offers it\n* `required` - SRTP required"
                    },
                    "status": {
                        "$ref": "#/components/schemas/SipEndpointUpdateStatusEnum"
                    }
                }
            },
            "PatchedSuiteInputRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                    },
                    "agent_id": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "scenario_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "maxItems": 50
                    },
                    "criteria": {
                        "$ref": "#/components/schemas/SuiteCriteriaInputRequest"
                    },
                    "schedule": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SuiteScheduleInputRequest"
                            }
                        ],
                        "nullable": true
                    }
                }
            },
            "PatchedTestScenarioUpdateRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                    },
                    "scenario_prompt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4000
                    },
                    "labels": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 50
                        },
                        "maxItems": 10
                    },
                    "direction": {
                        "$ref": "#/components/schemas/DirectionA4bEnum"
                    },
                    "audio_conditions": {
                        "$ref": "#/components/schemas/AudioConditionsRequest"
                    },
                    "speech_style": {
                        "$ref": "#/components/schemas/SpeechStyleRequest"
                    },
                    "caller_behavior": {
                        "$ref": "#/components/schemas/CallerBehaviorRequest"
                    },
                    "telephony": {
                        "$ref": "#/components/schemas/TelephonyConditionRequest"
                    }
                }
            },
            "PatchedUpdateInvestigationRequest": {
                "type": "object",
                "description": "PATCH — update experiment config or dismiss.",
                "properties": {
                    "status": {
                        "$ref": "#/components/schemas/UpdateInvestigationStatusEnum"
                    },
                    "experiment_config": {}
                }
            },
            "PatchedValidationExampleUpdateRequest": {
                "type": "object",
                "properties": {
                    "expectation": {
                        "type": "string"
                    },
                    "accepted_responses": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "labels": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1
                        }
                    },
                    "kind": {
                        "$ref": "#/components/schemas/KindC85Enum"
                    },
                    "status": {
                        "$ref": "#/components/schemas/ValidationExampleUpdateStatusEnum"
                    }
                }
            },
            "PatchedVoiceCloneUpdateRequest": {
                "type": "object",
                "properties": {
                    "display_name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                    },
                    "gender": {
                        "$ref": "#/components/schemas/GenderEnum"
                    }
                }
            },
            "PatchedVoipConnectionUpdateRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "credentials": {},
                    "external_account_handle": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Instead of credentials: the handle (ext_...) of a carrier account already saved with Zeus. ThunderPhone reads its key on the server; the key is never returned.",
                        "maxLength": 64
                    },
                    "sip_config": {},
                    "verification_evidence_id": {
                        "type": "string",
                        "format": "uuid"
                    }
                }
            },
            "PhiDesignationAttestation": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "organization_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "agent_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "user_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "user_role": {
                        "type": "string",
                        "readOnly": true
                    },
                    "scope": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ScopeEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "designation": {
                        "type": "string",
                        "readOnly": true
                    },
                    "source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/PhiDesignationAttestationSourceEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "text_version": {
                        "type": "string",
                        "readOnly": true
                    },
                    "rendered_text_sha256": {
                        "type": "string",
                        "readOnly": true
                    },
                    "locale": {
                        "type": "string",
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Status95aEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "attested_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "status_updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "agent_id",
                    "attested_at",
                    "designation",
                    "id",
                    "locale",
                    "organization_id",
                    "rendered_text_sha256",
                    "scope",
                    "source",
                    "status",
                    "status_updated_at",
                    "text_version",
                    "user_id",
                    "user_role"
                ]
            },
            "PhiDesignationAttestationCreateRequest": {
                "type": "object",
                "properties": {
                    "agent_id": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "accepted": {
                        "type": "boolean"
                    },
                    "text_version": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                    },
                    "statement_sha256": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                    },
                    "locale": {
                        "type": "string",
                        "minLength": 1,
                        "default": "en",
                        "maxLength": 16
                    }
                },
                "required": [
                    "accepted",
                    "agent_id",
                    "statement_sha256",
                    "text_version"
                ]
            },
            "PhiDesignationAttestationSourceEnum": {
                "enum": [
                    "customer",
                    "staff"
                ],
                "type": "string",
                "description": "* `customer` - Customer admin attestation\n* `staff` - Staff record"
            },
            "PhiModeEnum": {
                "enum": [
                    "phi"
                ],
                "type": "string",
                "description": "* `phi` - phi"
            },
            "PhiProcessingEnum": {
                "enum": [
                    "no_phi",
                    "phi"
                ],
                "type": "string",
                "description": "* `no_phi` - Does not process PHI\n* `phi` - Processes PHI (BAA on file)"
            },
            "PhiProcessingOverrideEnum": {
                "enum": [
                    "inherit",
                    "phi",
                    "no_phi"
                ],
                "type": "string",
                "description": "* `inherit` - Use organization setting\n* `phi` - Processes PHI\n* `no_phi` - Does not process PHI"
            },
            "PhoneNumber": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "number": {
                        "type": "string",
                        "readOnly": true
                    },
                    "label": {
                        "type": "string",
                        "readOnly": true,
                        "description": "Optional friendly name for this number (e.g. 'Main Line', 'Support')."
                    },
                    "source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/PhoneNumberSourceEnum"
                            }
                        ],
                        "readOnly": true,
                        "description": "Deprecated: use `number_type`. Legacy name for the number's origin: `demo` means a ThunderPhone number (the value name predates production ThunderPhone numbers and is kept for compatibility); `voip` means a number from your own carrier.\n\n* `demo` - ThunderPhone\n* `voip` - VoIP",
                        "deprecated": true
                    },
                    "number_type": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/NumberTypeEnum"
                            }
                        ],
                        "description": "Where the number comes from: `thunderphone` for a number provisioned by ThunderPhone, `voip` for a number from your own carrier.",
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Status06bEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "inbound_agent_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "inbound_agent_version_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true,
                        "description": "The published version of inbound_agent this number answers with (an id from GET /v1/agents/{id}/versions), or null for Latest: the agent's published settings, whatever they are when the call comes in."
                    },
                    "inbound_agent_version": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/PinnedAgentVersion"
                            }
                        ],
                        "nullable": true,
                        "readOnly": true,
                        "description": "The pinned version's id, revision number and publish time, or null for Latest. Read-only."
                    },
                    "inbound_agent_variant_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true,
                        "description": "The variant of inbound_agent this number answers with on every call (an id from GET /v1/agents/{id}/variants), or null for the agent itself."
                    },
                    "inbound_experiment_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true,
                        "description": "The experiment of inbound_agent this number runs (an id from GET /v1/agents/{id}/experiments): while it runs, each call takes one of its arms by weight; once it ends, the number answers as if it had none. Null for none."
                    },
                    "outbound_agent_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "voip_connection_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "voip_verification_status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/VoipVerificationStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "voip_last_verified_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "voip_inbound_status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/VoipInboundStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "voip_inbound_tested_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true,
                        "readOnly": true
                    },
                    "voip_inbound_result": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/PhoneNumberInboundResult"
                            }
                        ],
                        "nullable": true,
                        "readOnly": true
                    },
                    "voip_inbound_test_method": {
                        "nullable": true,
                        "readOnly": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/VoipInboundTestMethodEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "voip_outbound_test_method": {
                        "nullable": true,
                        "readOnly": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/VoipOutboundTestMethodEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "carrier_routing": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CarrierRoutingEnum"
                            }
                        ],
                        "readOnly": true,
                        "description": "How your carrier sends this number's calls to ThunderPhone: `direct` for a normal import, `customer` when you route calls yourself (import left the number's voice settings at your carrier unchanged; your routing sends calls to the number's SIP address), `migration_split` while a migration splits its calls between ThunderPhone and the platform you are moving from. A split number cannot be released, re-imported or given another inbound agent until the split is rolled back or completed.\n\n* `direct` - Direct\n* `migration_split` - Migration split\n* `customer` - Routed by the customer"
                    },
                    "sms_capable": {
                        "type": "boolean",
                        "readOnly": true,
                        "nullable": true
                    },
                    "sms_capability_checked_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "sms_registration_status": {
                        "type": "string",
                        "readOnly": true,
                        "description": "For a number on your Twilio account: where its US A2P 10DLC texting registration stands. `verified` (its Messaging Service has an approved campaign), `not_required` (a toll-free or non-US number), `no_messaging_service`, `no_campaign`, or `campaign_` followed by Twilio's campaign status, such as `campaign_pending`. Empty when not checked yet, and for other carriers."
                    },
                    "sms_not_ready_reason": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true,
                        "description": "Why the carrier check found that this number cannot send texts, and what to do; null when it can or has not been checked."
                    },
                    "webhook_url": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "webhook_signing_secret": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "outbound_eligible": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "outbound_ineligible_reason": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "timezone": {
                        "type": "string",
                        "nullable": true,
                        "description": "IANA timezone of the number's area code (US and Canada) or country, or null when the number spans several zones (toll-free, some mobile ranges). New campaigns from this number default to it.",
                        "readOnly": true
                    },
                    "expected_attestation": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ExpectedAttestation"
                            }
                        ],
                        "readOnly": true
                    }
                },
                "required": [
                    "carrier_routing",
                    "expected_attestation",
                    "id",
                    "inbound_agent_id",
                    "inbound_agent_variant_id",
                    "inbound_experiment_id",
                    "label",
                    "number",
                    "number_type",
                    "outbound_agent_id",
                    "outbound_eligible",
                    "outbound_ineligible_reason",
                    "sms_capability_checked_at",
                    "sms_capable",
                    "sms_not_ready_reason",
                    "sms_registration_status",
                    "source",
                    "status",
                    "timezone",
                    "voip_connection_id",
                    "voip_inbound_result",
                    "voip_inbound_status",
                    "voip_inbound_test_method",
                    "voip_inbound_tested_at",
                    "voip_last_verified_at",
                    "voip_outbound_test_method",
                    "voip_verification_status",
                    "webhook_signing_secret",
                    "webhook_url"
                ]
            },
            "PhoneNumberHealth": {
                "type": "object",
                "description": "Schema only: GET /v1/phone-numbers/{id}/health (phone_numbers.health).",
                "properties": {
                    "phone_number_id": {
                        "type": "integer"
                    },
                    "number": {
                        "type": "string"
                    },
                    "expected_attestation": {
                        "$ref": "#/components/schemas/ExpectedAttestation"
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/NumberHealthStatusEnum"
                            }
                        ],
                        "description": "From the last 7 days.\n\n* `good` - good\n* `watch` - watch\n* `at_risk` - at_risk"
                    },
                    "reasons": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/NumberHealthReason"
                        }
                    },
                    "windows": {
                        "$ref": "#/components/schemas/NumberHealthWindows"
                    }
                },
                "required": [
                    "expected_attestation",
                    "number",
                    "phone_number_id",
                    "reasons",
                    "status",
                    "windows"
                ]
            },
            "PhoneNumberHealthList": {
                "type": "object",
                "properties": {
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PhoneNumberHealth"
                        }
                    }
                },
                "required": [
                    "results"
                ]
            },
            "PhoneNumberInboundResult": {
                "type": "object",
                "description": "Schema only: the last inbound test's outcome (see voip_inbound_result).",
                "properties": {
                    "reason": {
                        "type": "string"
                    },
                    "detail": {
                        "type": "string"
                    },
                    "seconds": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    },
                    "from_number": {
                        "type": "string"
                    },
                    "method": {
                        "type": "string",
                        "description": "\"loopback\" or \"platform\"."
                    }
                },
                "required": [
                    "detail",
                    "from_number",
                    "method",
                    "reason",
                    "seconds"
                ]
            },
            "PhoneNumberLabel": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "phone_number": {
                        "type": "string",
                        "readOnly": true,
                        "description": "E.164-formatted phone number being labeled."
                    },
                    "label": {
                        "type": "string",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "created_at",
                    "id",
                    "label",
                    "phone_number",
                    "updated_at"
                ]
            },
            "PhoneNumberLabelWriteRequest": {
                "type": "object",
                "properties": {
                    "phone_number": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                    },
                    "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                    }
                },
                "required": [
                    "label",
                    "phone_number"
                ]
            },
            "PhoneNumberLimits": {
                "type": "object",
                "properties": {
                    "max_platform_numbers": {
                        "type": "integer"
                    },
                    "platform_numbers_used": {
                        "type": "integer"
                    }
                },
                "required": [
                    "max_platform_numbers",
                    "platform_numbers_used"
                ]
            },
            "PhoneNumberProvisionRequest": {
                "type": "object",
                "properties": {
                    "idempotency_key": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                    },
                    "area_code": {
                        "type": "string"
                    },
                    "city": {
                        "type": "string"
                    },
                    "state": {
                        "type": "string"
                    }
                }
            },
            "PhoneNumberReleased": {
                "type": "object",
                "properties": {
                    "detail": {
                        "type": "string"
                    },
                    "released_at_provider": {
                        "type": "boolean"
                    },
                    "routing_removed": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "detail",
                    "released_at_provider",
                    "routing_removed"
                ]
            },
            "PhoneNumberSourceEnum": {
                "enum": [
                    "demo",
                    "voip"
                ],
                "type": "string",
                "description": "* `demo` - ThunderPhone\n* `voip` - VoIP"
            },
            "PhoneNumberTransfer": {
                "type": "object",
                "properties": {
                    "source_org_id": {
                        "type": "integer"
                    },
                    "target_org_id": {
                        "type": "integer"
                    },
                    "phone_number": {
                        "$ref": "#/components/schemas/PhoneNumber"
                    },
                    "cleared_agent_assignments": {
                        "type": "boolean"
                    },
                    "cleared_webhook_config": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "cleared_agent_assignments",
                    "cleared_webhook_config",
                    "phone_number",
                    "source_org_id",
                    "target_org_id"
                ]
            },
            "PhoneNumberTransferRequestRequest": {
                "type": "object",
                "properties": {
                    "target_org_id": {
                        "type": "integer",
                        "minimum": 1
                    }
                },
                "required": [
                    "target_org_id"
                ]
            },
            "PhoneNumberUpdate": {
                "type": "object",
                "properties": {
                    "status": {
                        "$ref": "#/components/schemas/Status06bEnum"
                    },
                    "label": {
                        "type": "string",
                        "description": "Optional friendly name for this number (e.g. 'Main Line', 'Support').",
                        "maxLength": 100
                    },
                    "inbound_agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "inbound_agent_version_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "A published version of the number's inbound agent to answer with, or null for Latest. Changing inbound_agent_id without it sets Latest."
                    },
                    "inbound_agent_variant_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "A variant of the number's inbound agent to answer with on every call, or null for the agent itself. Changing inbound_agent_id without it sets null."
                    },
                    "inbound_experiment_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "A running experiment of the number's inbound agent: each call takes one of its arms by weight. Start the experiment first; a draft or ended one is refused. On a number pinned to a version, that version must include every variant arm. Null for none. A number runs a variant or an experiment, not both: a number on a variant needs inbound_agent_variant_id: null with it. Changing inbound_agent_id without it sets null."
                    },
                    "outbound_agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "webhook_url": {
                        "type": "string",
                        "format": "uri",
                        "nullable": true
                    }
                }
            },
            "PhoneNumberUpdateRequest": {
                "type": "object",
                "properties": {
                    "status": {
                        "$ref": "#/components/schemas/Status06bEnum"
                    },
                    "label": {
                        "type": "string",
                        "description": "Optional friendly name for this number (e.g. 'Main Line', 'Support').",
                        "maxLength": 100
                    },
                    "inbound_agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "inbound_agent_version_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "A published version of the number's inbound agent to answer with, or null for Latest. Changing inbound_agent_id without it sets Latest."
                    },
                    "inbound_agent_variant_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "A variant of the number's inbound agent to answer with on every call, or null for the agent itself. Changing inbound_agent_id without it sets null."
                    },
                    "inbound_experiment_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "A running experiment of the number's inbound agent: each call takes one of its arms by weight. Start the experiment first; a draft or ended one is refused. On a number pinned to a version, that version must include every variant arm. Null for none. A number runs a variant or an experiment, not both: a number on a variant needs inbound_agent_variant_id: null with it. Changing inbound_agent_id without it sets null."
                    },
                    "outbound_agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "webhook_url": {
                        "type": "string",
                        "format": "uri",
                        "nullable": true
                    }
                }
            },
            "PickAgentExperimentWinnerRequest": {
                "type": "object",
                "properties": {
                    "arm_id": {
                        "type": "integer",
                        "description": "The winning arm: an id from the experiment's arms."
                    }
                },
                "required": [
                    "arm_id"
                ]
            },
            "PinnedAgentVersion": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "revision": {
                        "type": "integer",
                        "description": "The version's number in the agent's history."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "When the version was published."
                    }
                },
                "required": [
                    "created_at",
                    "id",
                    "revision"
                ]
            },
            "PlaceCallConflict": {
                "type": "object",
                "properties": {
                    "detail": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string",
                        "description": "Stable eligibility code when caller-ID placement is rejected."
                    },
                    "retryable": {
                        "type": "boolean",
                        "description": "False for deterministic caller-ID eligibility rejections."
                    }
                },
                "required": [
                    "detail"
                ]
            },
            "PlaceCallRequest": {
                "type": "object",
                "properties": {
                    "from_number": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Outbound-capable number owned by your organization, in E.164 format."
                    },
                    "to_number": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Destination in E.164 format."
                    },
                    "agent_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "Mutually exclusive with config; defaults to the number's outbound agent."
                    },
                    "config": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WebhookConfigRequest"
                            }
                        ],
                        "nullable": true
                    },
                    "language": {
                        "type": "string"
                    },
                    "primary_language": {
                        "type": "string",
                        "description": "Alias for language."
                    },
                    "max_hold_seconds": {
                        "type": "integer",
                        "minimum": 1,
                        "nullable": true
                    },
                    "idempotency_key": {
                        "type": "string",
                        "nullable": true,
                        "minLength": 1,
                        "maxLength": 128
                    },
                    "variables": {
                        "type": "object",
                        "additionalProperties": {
                            "oneOf": [
                                {
                                    "type": "string"
                                },
                                {
                                    "type": "number"
                                },
                                {
                                    "type": "boolean"
                                }
                            ],
                            "nullable": true
                        }
                    },
                    "context": {
                        "type": "string",
                        "nullable": true,
                        "description": "Free-form text for this call, such as a task description or notes collected earlier, at most 20,000 characters. It is added after the prompt in a delimited block, is not rendered as a template, and counts toward the prompt length. Works with agent_id, config or the number's outbound agent; config.context is the same field and must match when both are sent.",
                        "maxLength": 20000
                    },
                    "call_setup_sample_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "A saved call setup sample of agent_id: the call runs with its variables and context (variables sent here win key by key; context and language sent here replace its own)."
                    },
                    "phi_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/PhiModeEnum"
                            }
                        ],
                        "description": "Treat this call as containing PHI whatever the organization or agent setting says; only tightening is allowed.\n\n* `phi` - phi"
                    },
                    "timezone": {
                        "type": "string",
                        "nullable": true,
                        "description": "IANA time zone for this call, such as America/New_York: the agent states the current time in it, ahead of the agent's own time zone. Use it when one agent calls contacts in different zones. An unknown name is ignored and reported in the response's warnings."
                    }
                },
                "required": [
                    "from_number",
                    "to_number"
                ]
            },
            "PlaceCallResponse": {
                "type": "object",
                "properties": {
                    "call_id": {
                        "type": "integer"
                    },
                    "call_setup_sample": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallSetupSampleUsed"
                            }
                        ],
                        "description": "Present when a sample was sent."
                    },
                    "status": {
                        "$ref": "#/components/schemas/PlaceCallResponseStatusEnum"
                    },
                    "idempotent_replay": {
                        "type": "boolean"
                    },
                    "failure_reason": {
                        "type": "string"
                    },
                    "queued_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true,
                        "description": "Present while the call waits for room to dial, from when it began waiting. The status stays initiated."
                    },
                    "warnings": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ResponseWarning"
                        },
                        "description": "Present when part of the request was ignored, e.g. timezone_invalid."
                    }
                },
                "required": [
                    "call_id",
                    "status"
                ]
            },
            "PlaceCallResponseStatusEnum": {
                "enum": [
                    "pending",
                    "unknown",
                    "initiated",
                    "in_progress",
                    "completed",
                    "failed"
                ],
                "type": "string",
                "description": "* `pending` - pending\n* `unknown` - unknown\n* `initiated` - initiated\n* `in_progress` - in_progress\n* `completed` - completed\n* `failed` - failed"
            },
            "PlaySoundAsset4b4Enum": {
                "enum": [
                    "chime",
                    "ding",
                    "beep"
                ],
                "type": "string",
                "description": "* `` - None\n* `chime` - Chime\n* `ding` - Ding\n* `beep` - Beep"
            },
            "PriceChange": {
                "type": "object",
                "properties": {
                    "raises_price": {
                        "type": "boolean"
                    },
                    "ends_price_lock": {
                        "type": "boolean",
                        "description": "The deploy ends the price the agent kept from before the price list."
                    },
                    "ends_discount": {
                        "type": "boolean",
                        "description": "The deployed setup leaves the one the agent's discount covers."
                    },
                    "current_per_minute_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "new_per_minute_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "changes": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PriceChangeItem"
                        }
                    },
                    "message": {
                        "type": "string"
                    }
                },
                "required": [
                    "changes",
                    "current_per_minute_cents",
                    "ends_price_lock",
                    "message",
                    "new_per_minute_cents",
                    "raises_price"
                ]
            },
            "PriceChangeItem": {
                "type": "object",
                "properties": {
                    "field": {
                        "type": "string",
                        "description": "The setting: product, intelligence, audio_tier, endpointing, voice, acknowledgement_feedback_mode, prompt or split_test."
                    },
                    "name": {
                        "type": "string",
                        "description": "The setting in words, e.g. reply speed."
                    },
                    "to": {
                        "nullable": true
                    },
                    "from_label": {
                        "type": "string"
                    },
                    "to_label": {
                        "type": "string"
                    },
                    "from": {
                        "nullable": true
                    }
                },
                "required": [
                    "field",
                    "from",
                    "from_label",
                    "name",
                    "to",
                    "to_label"
                ]
            },
            "Product235Enum": {
                "enum": [
                    "spark",
                    "bolt",
                    "storm-base",
                    "storm-base-with-ack",
                    "storm-extra",
                    "storm-extra-with-ack",
                    "full-duplex"
                ],
                "type": "string",
                "description": "* `spark` - spark\n* `bolt` - bolt\n* `storm-base` - storm-base\n* `storm-base-with-ack` - storm-base-with-ack\n* `storm-extra` - storm-extra\n* `storm-extra-with-ack` - storm-extra-with-ack\n* `full-duplex` - full-duplex"
            },
            "PromoteScenarioRequest": {
                "type": "object",
                "properties": {
                    "issue_trace_id": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": true
                    },
                    "failing_turn_index": {
                        "type": "integer",
                        "minimum": 0,
                        "nullable": true
                    }
                }
            },
            "PromptAnalysis": {
                "type": "object",
                "properties": {
                    "findings": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PromptAnalysisFinding"
                        }
                    },
                    "facts": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true
                    },
                    "error": {
                        "type": "string"
                    },
                    "stale": {
                        "type": "boolean"
                    },
                    "retry_after_ms": {
                        "type": "integer"
                    }
                }
            },
            "PromptAnalysisFinding": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "severity": {
                        "type": "string"
                    },
                    "params": {
                        "type": "object",
                        "additionalProperties": {}
                    }
                },
                "required": [
                    "id",
                    "params",
                    "severity"
                ]
            },
            "PromptAnalysisRequestRequest": {
                "type": "object",
                "properties": {
                    "prompt": {
                        "type": "string",
                        "maxLength": 100000
                    },
                    "primary_language": {
                        "type": "string",
                        "minLength": 1
                    },
                    "additional_languages": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1
                        }
                    },
                    "voice": {
                        "type": "string"
                    },
                    "integration_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    "mcp_server_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    "integration_public_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    "mcp_server_public_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    "tool_start_line": {
                        "$ref": "#/components/schemas/ToolStartLineA57Enum"
                    },
                    "filler_phrases_enabled": {
                        "type": "boolean"
                    },
                    "native_voice_switching": {
                        "type": "boolean"
                    },
                    "send_email_enabled": {
                        "type": "boolean"
                    },
                    "send_email_recipient_set": {
                        "type": "boolean"
                    },
                    "send_sms_enabled": {
                        "type": "boolean"
                    },
                    "sms_followup_enabled": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "prompt"
                ]
            },
            "PromptCandidate": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/PromptCandidateSourceEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "kind": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/PromptCandidateKindEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "hypothesis_id": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "label": {
                        "type": "string",
                        "readOnly": true
                    },
                    "prompt": {
                        "type": "string",
                        "readOnly": true
                    },
                    "rationale": {
                        "type": "string",
                        "readOnly": true
                    },
                    "edits": {
                        "readOnly": true
                    },
                    "edits_unverified": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "latest_experiment_id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true,
                        "nullable": true
                    }
                },
                "required": [
                    "created_at",
                    "edits",
                    "edits_unverified",
                    "hypothesis_id",
                    "id",
                    "kind",
                    "label",
                    "latest_experiment_id",
                    "prompt",
                    "rationale",
                    "source"
                ]
            },
            "PromptCandidateKindEnum": {
                "enum": [
                    "prompt_edit",
                    "pipeline_upgrade"
                ],
                "type": "string",
                "description": "* `prompt_edit` - Prompt Edit\n* `pipeline_upgrade` - Pipeline Upgrade"
            },
            "PromptCandidateSourceEnum": {
                "enum": [
                    "ai",
                    "manual"
                ],
                "type": "string",
                "description": "* `ai` - AI\n* `manual` - Manual"
            },
            "PromptChoiceEnum": {
                "enum": [
                    "deterministic",
                    "rewritten"
                ],
                "type": "string",
                "description": "* `deterministic` - deterministic\n* `rewritten` - rewritten"
            },
            "PromptLanguageCheck": {
                "type": "object",
                "properties": {
                    "target_language_code": {
                        "type": "string"
                    },
                    "target_language_name": {
                        "type": "string"
                    },
                    "detected_language_code": {
                        "type": "string"
                    },
                    "detected_language_name": {
                        "type": "string"
                    },
                    "confidence": {
                        "type": "number",
                        "format": "double"
                    },
                    "mismatch": {
                        "type": "boolean"
                    },
                    "provider": {
                        "type": "string"
                    },
                    "explanation": {
                        "type": "string"
                    }
                },
                "required": [
                    "confidence",
                    "detected_language_code",
                    "detected_language_name",
                    "explanation",
                    "mismatch",
                    "provider",
                    "target_language_code",
                    "target_language_name"
                ]
            },
            "PromptLanguageRequestRequest": {
                "type": "object",
                "properties": {
                    "prompt": {
                        "type": "string",
                        "minLength": 1
                    },
                    "target_locale": {
                        "type": "string"
                    }
                },
                "required": [
                    "prompt"
                ]
            },
            "PromptRefactor": {
                "type": "object",
                "properties": {
                    "agent_id": {
                        "type": "integer"
                    },
                    "prompt_source": {
                        "type": "string"
                    },
                    "note": {
                        "type": "string"
                    },
                    "dry_run": {
                        "type": "boolean"
                    },
                    "estimated_cost_cents": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    },
                    "worst_case_cost_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "quote_id": {
                        "type": "string"
                    },
                    "quote_expires_in_seconds": {
                        "type": "integer"
                    },
                    "steps": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PromptRefactorQuoteStep"
                        }
                    },
                    "max_cost_cents": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    },
                    "includes_review": {
                        "type": "boolean"
                    },
                    "includes_verification": {
                        "type": "boolean"
                    },
                    "prompt": {
                        "type": "string"
                    },
                    "prompt_sha256": {
                        "type": "string"
                    },
                    "source_prompt_sha256": {
                        "type": "string"
                    },
                    "summary": {
                        "type": "string"
                    },
                    "has_dropped_behaviors": {
                        "type": "boolean"
                    },
                    "dropped_behaviors": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "behavior_preserved": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "behavior_changes": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/PromptRefactorBehaviorChanges"
                            }
                        ],
                        "nullable": true
                    },
                    "verification": {
                        "type": "string"
                    },
                    "verification_error": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "new_findings": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "nullable": true
                    },
                    "new_inventory": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "nullable": true
                    },
                    "unlocated_behaviors": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "behavior_map": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "greeting": {
                        "type": "string",
                        "nullable": true
                    },
                    "diff": {
                        "type": "string"
                    },
                    "prompt_edits": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "inventory": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "inventory_source": {
                        "type": "string"
                    },
                    "model": {
                        "type": "string",
                        "description": "Opaque ThunderPhone label for the model that ran the tool (thunderphone-reviewer), not a vendor model id."
                    },
                    "usage": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "cost_cents": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    },
                    "validation": {
                        "type": "object",
                        "additionalProperties": {}
                    }
                },
                "required": [
                    "agent_id",
                    "prompt_source"
                ]
            },
            "PromptRefactorBehaviorChanges": {
                "type": "object",
                "properties": {
                    "added": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "removed": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "changed": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "added",
                    "changed",
                    "removed"
                ]
            },
            "PromptRefactorQuoteStep": {
                "type": "object",
                "properties": {
                    "step": {
                        "type": "string"
                    },
                    "cached": {
                        "type": "boolean"
                    },
                    "estimated_cost_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "worst_case_cost_cents": {
                        "type": "number",
                        "format": "double"
                    }
                },
                "required": [
                    "cached",
                    "estimated_cost_cents",
                    "step",
                    "worst_case_cost_cents"
                ]
            },
            "PromptRefactorRequestRequest": {
                "type": "object",
                "properties": {
                    "prompt": {
                        "type": "string",
                        "maxLength": 100000
                    },
                    "inventory": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "maxItems": 200
                    },
                    "instructions": {
                        "type": "string",
                        "maxLength": 4000
                    },
                    "language": {
                        "type": "string",
                        "maxLength": 16
                    },
                    "verify": {
                        "type": "boolean",
                        "default": true
                    },
                    "max_cost_cents": {
                        "type": "number",
                        "format": "double",
                        "maximum": 100000,
                        "minimum": 0
                    },
                    "quote_id": {
                        "type": "string",
                        "maxLength": 8192
                    },
                    "dry_run": {
                        "type": "boolean",
                        "default": false
                    }
                }
            },
            "PromptReview": {
                "type": "object",
                "properties": {
                    "agent_id": {
                        "type": "integer"
                    },
                    "prompt_source": {
                        "type": "string"
                    },
                    "note": {
                        "type": "string"
                    },
                    "dry_run": {
                        "type": "boolean"
                    },
                    "estimated_cost_cents": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    },
                    "worst_case_cost_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "quote_id": {
                        "type": "string"
                    },
                    "quote_expires_in_seconds": {
                        "type": "integer"
                    },
                    "steps": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PromptToolQuoteStep"
                        }
                    },
                    "prompt_sha256": {
                        "type": "string"
                    },
                    "findings": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PromptReviewFinding"
                        }
                    },
                    "prompt_edits": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "rule_inventory": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "inventory_changes": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "overlaps": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "misplaced": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "greeting": {
                        "type": "string",
                        "nullable": true
                    },
                    "refactor_suggested": {
                        "type": "boolean"
                    },
                    "refactor_reasons": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "refactor_facts": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "changed_passages": {
                        "type": "integer"
                    },
                    "model": {
                        "type": "string",
                        "description": "Opaque ThunderPhone label for the model that ran the tool (thunderphone-reviewer), not a vendor model id."
                    },
                    "cached": {
                        "type": "boolean"
                    },
                    "usage": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "cost_cents": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    },
                    "validation": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "conversations": {
                        "type": "object",
                        "additionalProperties": {}
                    }
                },
                "required": [
                    "agent_id",
                    "prompt_source"
                ]
            },
            "PromptReviewFinding": {
                "type": "object",
                "properties": {
                    "guideline_id": {
                        "type": "string"
                    },
                    "guideline_title": {
                        "type": "string"
                    },
                    "quote": {
                        "type": "string"
                    },
                    "problem": {
                        "type": "string"
                    },
                    "severity": {
                        "type": "string"
                    },
                    "suggested_edit": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true
                    },
                    "in_changed_passage": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "guideline_id",
                    "guideline_title",
                    "problem",
                    "quote",
                    "severity",
                    "suggested_edit"
                ]
            },
            "PromptReviewRequestRequest": {
                "type": "object",
                "properties": {
                    "prompt": {
                        "type": "string",
                        "maxLength": 100000
                    },
                    "previous_prompt": {
                        "type": "string",
                        "maxLength": 100000
                    },
                    "previous_inventory": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "maxItems": 200
                    },
                    "language": {
                        "type": "string",
                        "maxLength": 16
                    },
                    "max_cost_cents": {
                        "type": "number",
                        "format": "double",
                        "maximum": 100000,
                        "minimum": 0
                    },
                    "quote_id": {
                        "type": "string",
                        "maxLength": 8192
                    },
                    "dry_run": {
                        "type": "boolean",
                        "default": false
                    }
                }
            },
            "PromptToolQuoteStep": {
                "type": "object",
                "properties": {
                    "step": {
                        "type": "string"
                    },
                    "cached": {
                        "type": "boolean"
                    },
                    "estimated_cost_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "worst_case_cost_cents": {
                        "type": "number",
                        "format": "double"
                    }
                },
                "required": [
                    "cached",
                    "estimated_cost_cents",
                    "step",
                    "worst_case_cost_cents"
                ]
            },
            "ProviderApiKeyRequest": {
                "type": "object",
                "properties": {
                    "api_key": {
                        "type": "string",
                        "writeOnly": true,
                        "minLength": 1
                    }
                },
                "required": [
                    "api_key"
                ]
            },
            "ProviderConnection": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "provider": {
                        "type": "string"
                    },
                    "provider_account_email": {
                        "type": "string"
                    },
                    "provider_account_id": {
                        "type": "string"
                    },
                    "provider_metadata": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "granted_scopes": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "allowed_operations": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "send_guest_invitations": {
                        "type": "boolean"
                    },
                    "effective_operations": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "ungranted_operations": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "problems": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ProviderConnectionProblem"
                        }
                    },
                    "token_expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "last_used_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "last_error_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "last_error_code": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/ProviderConnectionErrorCodeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "agent_attachments": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "agent_attachments",
                    "allowed_operations",
                    "created_at",
                    "effective_operations",
                    "granted_scopes",
                    "id",
                    "last_error_at",
                    "last_error_code",
                    "last_used_at",
                    "problems",
                    "provider",
                    "provider_account_email",
                    "provider_account_id",
                    "provider_metadata",
                    "send_guest_invitations",
                    "token_expires_at",
                    "ungranted_operations",
                    "updated_at"
                ]
            },
            "ProviderConnectionErrorCodeEnum": {
                "enum": [
                    "grant_revoked",
                    "provider_unavailable"
                ],
                "type": "string",
                "description": "* `grant_revoked` - grant_revoked\n* `provider_unavailable` - provider_unavailable"
            },
            "ProviderConnectionFixEnum": {
                "enum": [
                    "reconnect",
                    "choose_spreadsheet",
                    "turn_on_operations"
                ],
                "type": "string",
                "description": "* `reconnect` - reconnect\n* `choose_spreadsheet` - choose_spreadsheet\n* `turn_on_operations` - turn_on_operations"
            },
            "ProviderConnectionProblem": {
                "type": "object",
                "properties": {
                    "code": {
                        "$ref": "#/components/schemas/ProviderConnectionProblemCodeEnum"
                    },
                    "message": {
                        "type": "string"
                    },
                    "fix": {
                        "$ref": "#/components/schemas/ProviderConnectionFixEnum"
                    },
                    "operations": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "required": [
                    "code",
                    "fix",
                    "message"
                ]
            },
            "ProviderConnectionProblemCodeEnum": {
                "enum": [
                    "signed_out",
                    "missing_access",
                    "spreadsheet_not_chosen",
                    "all_operations_off"
                ],
                "type": "string",
                "description": "* `signed_out` - signed_out\n* `missing_access` - missing_access\n* `spreadsheet_not_chosen` - spreadsheet_not_chosen\n* `all_operations_off` - all_operations_off"
            },
            "ProviderConnectionTest": {
                "type": "object",
                "properties": {
                    "connection": {
                        "$ref": "#/components/schemas/ProviderConnection"
                    },
                    "ok": {
                        "type": "boolean"
                    },
                    "code": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/ProviderConnectionErrorCodeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            }
                        ]
                    },
                    "message": {
                        "type": "string"
                    }
                },
                "required": [
                    "code",
                    "connection",
                    "message",
                    "ok"
                ]
            },
            "ProviderConnections": {
                "type": "object",
                "properties": {
                    "configured": {
                        "type": "boolean"
                    },
                    "providers": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "connections": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ProviderConnection"
                        }
                    },
                    "agents": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "agents",
                    "configured",
                    "connections",
                    "providers"
                ]
            },
            "ProviderEnum": {
                "enum": [
                    "twilio",
                    "telnyx",
                    "signalwire",
                    "vonage",
                    "manual"
                ],
                "type": "string",
                "description": "* `twilio` - Twilio\n* `telnyx` - Telnyx\n* `signalwire` - SignalWire\n* `vonage` - Vonage\n* `manual` - Manual"
            },
            "ProvisionedNumber": {
                "type": "object",
                "properties": {
                    "result": {
                        "$ref": "#/components/schemas/NumberSummary"
                    },
                    "order_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "order_status": {
                        "type": "string",
                        "nullable": true
                    },
                    "provider_charge_note": {
                        "type": "string"
                    }
                },
                "required": [
                    "order_id",
                    "order_status",
                    "provider_charge_note",
                    "result"
                ]
            },
            "PublishableKey": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 100
                    },
                    "key": {
                        "type": "string",
                        "readOnly": true
                    },
                    "key_prefix": {
                        "type": "string",
                        "readOnly": true
                    },
                    "allowed_domains": {},
                    "is_active": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "agent_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "agent_name": {
                        "type": "string",
                        "readOnly": true
                    },
                    "webhook_url": {
                        "type": "string",
                        "format": "uri",
                        "nullable": true,
                        "maxLength": 200
                    },
                    "webhook_secret": {
                        "type": "string",
                        "readOnly": true
                    },
                    "mode": {
                        "$ref": "#/components/schemas/PublishableKeyModeEnum"
                    },
                    "is_enabled": {
                        "type": "boolean"
                    },
                    "embed_config": {},
                    "allowed_overrides": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AllowedOverridesEnum"
                        },
                        "readOnly": true,
                        "description": "Session fields the browser may set on POST /v1/widget/session: context, language, variables, voice. Anything not listed is rejected with 400 override_not_allowed. New keys allow none."
                    },
                    "max_call_duration_seconds": {
                        "type": "integer",
                        "maximum": 21600,
                        "minimum": 60,
                        "nullable": true,
                        "description": "Max widget session length in seconds. Null uses the agent's own cap."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "agent_id",
                    "agent_name",
                    "allowed_overrides",
                    "created_at",
                    "id",
                    "is_active",
                    "key",
                    "key_prefix",
                    "updated_at",
                    "webhook_secret"
                ]
            },
            "PublishableKeyCreateRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "default": "",
                        "maxLength": 100
                    },
                    "agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "webhook_url": {
                        "type": "string",
                        "format": "uri",
                        "nullable": true
                    },
                    "mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Mode559Enum"
                            }
                        ],
                        "default": "agent"
                    },
                    "allowed_domains": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                        }
                    },
                    "is_enabled": {
                        "type": "boolean",
                        "default": true
                    },
                    "allowed_overrides": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AllowedOverridesEnum"
                        },
                        "description": "Session fields the browser may set on POST /v1/widget/session: context, language, variables, voice. Anything not listed is rejected with 400 override_not_allowed. New keys allow none."
                    },
                    "max_call_duration_seconds": {
                        "type": "integer",
                        "maximum": 21600,
                        "minimum": 60,
                        "nullable": true,
                        "default": 1800
                    }
                }
            },
            "PublishableKeyModeEnum": {
                "enum": [
                    "agent",
                    "webhook"
                ],
                "type": "string",
                "description": "* `agent` - Agent\n* `webhook` - Webhook"
            },
            "PublishableKeyTransferRequestRequest": {
                "type": "object",
                "properties": {
                    "target_org_id": {
                        "type": "integer"
                    },
                    "mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ModeFfbEnum"
                            }
                        ],
                        "default": "copy"
                    },
                    "name": {
                        "type": "string"
                    }
                },
                "required": [
                    "target_org_id"
                ]
            },
            "Reading": {
                "type": "object",
                "properties": {
                    "checked_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "spam_risk": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/SpamRiskEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "spam_category": {
                        "type": "string",
                        "nullable": true
                    },
                    "scores": {
                        "$ref": "#/components/schemas/Scores"
                    },
                    "refreshed_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    }
                },
                "required": [
                    "checked_at",
                    "refreshed_at",
                    "scores",
                    "spam_category",
                    "spam_risk"
                ]
            },
            "RealtimeInlineConfigRequest": {
                "type": "object",
                "description": "Strict, OpenAI-shaped configuration for ephemeral realtime sessions.",
                "properties": {
                    "prompt": {
                        "type": "string",
                        "minLength": 1
                    },
                    "voice": {
                        "type": "string",
                        "minLength": 1
                    },
                    "product": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Product235Enum"
                            }
                        ],
                        "default": "spark"
                    },
                    "tools": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ToolDefinitionRequest"
                        }
                    },
                    "primary_language": {
                        "type": "string",
                        "minLength": 1
                    },
                    "additional_languages": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1
                        }
                    },
                    "background_track": {
                        "type": "string",
                        "nullable": true
                    },
                    "additional_audio_context": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "telephony": {
                        "type": "boolean",
                        "default": true
                    },
                    "outbound": {
                        "type": "boolean",
                        "default": false
                    },
                    "ivr_mode": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/IvrModeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "call_events": {
                        "type": "boolean",
                        "default": false
                    },
                    "placeholders": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "maxLength": 200
                        },
                        "maxItems": 10
                    },
                    "max_hold_seconds": {
                        "type": "integer",
                        "maximum": 900,
                        "minimum": 10,
                        "nullable": true
                    },
                    "transfer_destinations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TransferDestinationRequest"
                        },
                        "nullable": true
                    },
                    "words": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AgentWordRequest"
                        },
                        "nullable": true,
                        "description": "How the agent says specific words, and which words it listens for. Each entry: term (the word as the agent writes it), say_as (a plain respelling), optional ipa, language (defaults to this config's primary language), case_sensitive, speak_with (auto, ipa or say_as), hear, step, hear_always and hear_when. At most 200 entries."
                    }
                },
                "required": [
                    "prompt"
                ]
            },
            "RealtimeSession": {
                "type": "object",
                "properties": {
                    "livekit_url": {
                        "type": "string"
                    },
                    "call_id": {
                        "type": "integer"
                    },
                    "token": {
                        "type": "string"
                    },
                    "room_name": {
                        "type": "string"
                    }
                },
                "required": [
                    "call_id",
                    "livekit_url",
                    "room_name",
                    "token"
                ]
            },
            "RealtimeSessionRequestRequest": {
                "type": "object",
                "properties": {
                    "agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "config": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RealtimeInlineConfigRequest"
                            }
                        ],
                        "nullable": true
                    },
                    "live_transcripts": {
                        "type": "boolean",
                        "default": false
                    },
                    "variables": {
                        "type": "object",
                        "additionalProperties": {
                            "oneOf": [
                                {
                                    "type": "string"
                                },
                                {
                                    "type": "number"
                                },
                                {
                                    "type": "boolean"
                                }
                            ],
                            "nullable": true
                        }
                    },
                    "context": {
                        "type": "string",
                        "nullable": true,
                        "description": "Free-form text for this call, such as a task description or notes collected earlier, at most 20,000 characters. It is added after the prompt in a delimited block, is not rendered as a template, and counts toward the prompt length. Works with agent_id or config.",
                        "maxLength": 20000
                    },
                    "phi_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/PhiModeEnum"
                            }
                        ],
                        "description": "Treat this session's call as containing PHI; only tightening is allowed.\n\n* `phi` - phi"
                    },
                    "language": {
                        "type": "string",
                        "description": "The language the session starts in, a supported language code such as es or es-MX. With agent_id the agent speaks it with its voice for that language (its language_voices entry, native voice switching's choice, or its own voice when that speaks it) and keeps its other languages; when none speaks it, the language's default voice and that language alone. An unsupported code is 400."
                    },
                    "primary_language": {
                        "type": "string",
                        "description": "Alias for language."
                    },
                    "telephony": {
                        "type": "boolean",
                        "default": true,
                        "description": "With agent_id: whether the session carries phone audio (default true); false for browser audio."
                    },
                    "outbound": {
                        "type": "boolean",
                        "default": false,
                        "description": "With agent_id: the session is an outbound call, so the agent waits for the other side, can wait on hold and handles phone menus (ivr_mode)."
                    },
                    "ivr_mode": {
                        "nullable": true,
                        "description": "With agent_id and outbound: phone-menu handling, auto (default), on or off.\n\n* `auto` - auto\n* `on` - on\n* `off` - off",
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/IvrModeEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "call_events": {
                        "type": "boolean",
                        "default": false,
                        "description": "With agent_id: deliver call.* events to the client, which also gives the agent its transfer_call and send_keypad_input tools (the client carries them out)."
                    },
                    "placeholders": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "maxLength": 200
                        },
                        "description": "With agent_id: up to 10 lines the agent says while a reply is still being written, in place of its own filler lines (when the agent's filler phrases are on).",
                        "maxItems": 10
                    }
                }
            },
            "RecordingModeEnum": {
                "enum": [
                    "recording",
                    "disabled_by_config",
                    "recording_failed_before_capture"
                ],
                "type": "string",
                "description": "* `recording` - Recording\n* `disabled_by_config` - Disabled by config\n* `recording_failed_before_capture` - Recording failed before capture"
            },
            "RefreshTestScenariosRequest": {
                "type": "object",
                "properties": {
                    "scenario_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "maxItems": 50
                    },
                    "only_stale": {
                        "type": "boolean",
                        "default": false
                    }
                }
            },
            "RegisterRequest": {
                "type": "object",
                "properties": {
                    "kind": {
                        "$ref": "#/components/schemas/CarrierRegistrationKindEnum"
                    },
                    "phone_number_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        },
                        "maxItems": 200,
                        "minItems": 1
                    },
                    "display_name": {
                        "type": "string",
                        "maxLength": 64
                    },
                    "voice_integrity": {
                        "$ref": "#/components/schemas/VoiceIntegrityRequest"
                    }
                },
                "required": [
                    "kind",
                    "phone_number_ids"
                ]
            },
            "RegisterResponse": {
                "type": "object",
                "properties": {
                    "registrations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/RegistrationOut"
                        }
                    }
                },
                "required": [
                    "registrations"
                ]
            },
            "RegisterSipCallRequest": {
                "type": "object",
                "properties": {
                    "agent_id": {
                        "type": "integer"
                    },
                    "to_number": {
                        "type": "string",
                        "default": ""
                    },
                    "variables": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true
                    }
                },
                "required": [
                    "agent_id"
                ]
            },
            "RegisterSipCallResponse": {
                "type": "object",
                "properties": {
                    "call_id": {
                        "type": "integer",
                        "description": "Id the call will have in call history."
                    },
                    "sip_uri": {
                        "type": "string",
                        "description": "One-time SIP URI to dial; valid for one call until expires_at."
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "agent_id": {
                        "type": "integer"
                    },
                    "to_number": {
                        "type": "string",
                        "nullable": true
                    }
                },
                "required": [
                    "agent_id",
                    "call_id",
                    "expires_at",
                    "sip_uri",
                    "to_number"
                ]
            },
            "RegistrationNumber": {
                "type": "object",
                "properties": {
                    "phone_number_id": {
                        "type": "integer"
                    },
                    "number": {
                        "type": "string"
                    },
                    "label": {
                        "type": "string"
                    },
                    "number_type": {
                        "type": "string"
                    },
                    "carrier": {
                        "type": "string",
                        "description": "thunderphone, twilio, telnyx, signalwire, vonage, manual or other."
                    },
                    "voip_connection_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "eligible_kinds": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CarrierRegistrationKindEnum"
                        }
                    },
                    "registrations": {
                        "$ref": "#/components/schemas/RegistrationsByKind"
                    }
                },
                "required": [
                    "carrier",
                    "eligible_kinds",
                    "label",
                    "number",
                    "number_type",
                    "phone_number_id",
                    "registrations",
                    "voip_connection_id"
                ]
            },
            "RegistrationOut": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "phone_number_id": {
                        "type": "integer"
                    },
                    "kind": {
                        "$ref": "#/components/schemas/CarrierRegistrationKindEnum"
                    },
                    "provider": {
                        "$ref": "#/components/schemas/CarrierRegistrationProviderEnum"
                    },
                    "status": {
                        "$ref": "#/components/schemas/CarrierRegistrationStatusEnum"
                    },
                    "display_name": {
                        "type": "string",
                        "description": "cnam only: the name shown on calls."
                    },
                    "status_detail": {
                        "type": "string",
                        "description": "Plain-language detail: a rejection reason, a failure, or what happens next."
                    },
                    "trust_product_sid": {
                        "type": "string",
                        "description": "Twilio only: the Trust Hub registration the number joined."
                    },
                    "submitted_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "checked_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "required": [
                    "checked_at",
                    "display_name",
                    "id",
                    "kind",
                    "phone_number_id",
                    "provider",
                    "status",
                    "status_detail",
                    "submitted_at",
                    "trust_product_sid",
                    "updated_at"
                ]
            },
            "RegistrationsByKind": {
                "type": "object",
                "properties": {
                    "cnam": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RegistrationOut"
                            }
                        ],
                        "nullable": true
                    },
                    "shaken_stir": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RegistrationOut"
                            }
                        ],
                        "nullable": true
                    },
                    "voice_integrity": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RegistrationOut"
                            }
                        ],
                        "nullable": true
                    }
                },
                "required": [
                    "cnam",
                    "shaken_stir",
                    "voice_integrity"
                ]
            },
            "RelabelJob": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "status": {
                        "$ref": "#/components/schemas/RelabelJobStatusEnum"
                    },
                    "progress": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "total, done, relabeled, unchanged, skipped_grading, failed, not_started; stopped when cut short."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "error": {
                        "type": "string",
                        "nullable": true
                    }
                },
                "required": [
                    "created_at",
                    "error",
                    "id",
                    "progress",
                    "status",
                    "updated_at"
                ]
            },
            "RelabelJobStatusEnum": {
                "enum": [
                    "queued",
                    "running",
                    "succeeded",
                    "failed"
                ],
                "type": "string",
                "description": "* `queued` - queued\n* `running` - running\n* `succeeded` - succeeded\n* `failed` - failed"
            },
            "RelabelRequestRequest": {
                "type": "object",
                "properties": {
                    "dry_run": {
                        "type": "boolean",
                        "default": false
                    },
                    "quote_id": {
                        "type": "string",
                        "format": "uuid",
                        "description": "From a dry run; required to start a run."
                    },
                    "since": {
                        "type": "string",
                        "description": "ISO 8601 date or date and time."
                    },
                    "until": {
                        "type": "string",
                        "description": "ISO 8601 date or date and time."
                    },
                    "include_transcript": {
                        "type": "boolean",
                        "default": true
                    }
                }
            },
            "RelabelResponse": {
                "type": "object",
                "description": "A dry run's count, price and quote, or the run queued (``created``) or already going.",
                "properties": {
                    "dry_run": {
                        "type": "boolean"
                    },
                    "calls": {
                        "type": "integer"
                    },
                    "total_calls": {
                        "type": "integer"
                    },
                    "capped": {
                        "type": "boolean"
                    },
                    "max_calls": {
                        "type": "integer"
                    },
                    "model_calls": {
                        "type": "integer"
                    },
                    "estimated_cost_usd": {
                        "type": "number",
                        "format": "double"
                    },
                    "max_cost_usd": {
                        "type": "number",
                        "format": "double"
                    },
                    "quote_id": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": true
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "created": {
                        "type": "boolean"
                    },
                    "job": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RelabelJob"
                            }
                        ],
                        "nullable": true
                    }
                },
                "required": [
                    "job"
                ]
            },
            "RelabelState": {
                "type": "object",
                "properties": {
                    "labels": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "job": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RelabelJob"
                            }
                        ],
                        "nullable": true
                    }
                },
                "required": [
                    "job",
                    "labels"
                ]
            },
            "ReplayConfigRequest": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "maxLength": 100
                    },
                    "overrides": {
                        "$ref": "#/components/schemas/ReplayOverridesRequest"
                    }
                }
            },
            "ReplayOverridesRequest": {
                "type": "object",
                "properties": {
                    "prompt": {
                        "type": "string",
                        "nullable": true,
                        "minLength": 1,
                        "description": "A candidate prompt in place of the draft's."
                    },
                    "product": {
                        "type": "string",
                        "nullable": true,
                        "minLength": 1,
                        "description": "Product tier, as the agent's product field (for example bolt)."
                    },
                    "thinking_level": {
                        "type": "string",
                        "nullable": true,
                        "minLength": 1,
                        "description": "\"base\" or \"extra\"."
                    },
                    "storm_feedback_mode": {
                        "type": "string",
                        "nullable": true,
                        "minLength": 1,
                        "description": "\"acknowledgement\", \"tick\" or \"none\": what the caller hears while a slow reply is prepared."
                    },
                    "voice": {
                        "type": "string",
                        "nullable": true,
                        "minLength": 1,
                        "description": "Voice name.",
                        "maxLength": 100
                    },
                    "language": {
                        "type": "string",
                        "nullable": true,
                        "minLength": 1,
                        "description": "Language code the call runs in."
                    },
                    "audio_tier": {
                        "type": "string",
                        "nullable": true,
                        "minLength": 1,
                        "description": "Hearing tier: \"lite\", \"standard\", \"plus\" or \"max\" (the older \"lean\", \"hearing\" and \"deep_hearing\" are accepted too). Plain Bolt only; an arm that sets lite, plus or max on another product is refused, and so is max where the organization cannot use it.",
                        "maxLength": 32
                    },
                    "endpointing": {
                        "type": "string",
                        "nullable": true,
                        "minLength": 1,
                        "description": "Bolt v2 endpointing tier: \"faster\", \"fast\", \"normal\" or \"patient\".",
                        "maxLength": 32
                    },
                    "intelligence": {
                        "type": "string",
                        "nullable": true,
                        "minLength": 1,
                        "description": "Intelligence tier: \"core\" or \"pro\" (the older \"lite\" and \"standard\" are accepted too). Plain Bolt only; an arm that sets \"core\" on another product, or with Max hearing (which always runs Pro), is refused, and \"pro\" passes.",
                        "maxLength": 32
                    }
                }
            },
            "ReplayRun": {
                "type": "object",
                "properties": {
                    "summary": {
                        "$ref": "#/components/schemas/ReplayRunSummary"
                    },
                    "id": {
                        "type": "integer"
                    },
                    "agent_id": {
                        "type": "integer"
                    },
                    "label": {
                        "type": "string"
                    },
                    "split": {
                        "type": "string",
                        "description": "dev or test."
                    },
                    "engine": {
                        "type": "string",
                        "description": "auto, exact or text."
                    },
                    "config_source": {
                        "type": "string"
                    },
                    "config_overrides": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "status": {
                        "type": "string",
                        "description": "pending, running, completed or failed."
                    },
                    "stale": {
                        "type": "boolean",
                        "description": "True while the run's worker has stopped; it resumes within minutes."
                    },
                    "degraded": {
                        "type": "boolean",
                        "description": "An exact replay fell back to text (dev runs only), or nothing was judged."
                    },
                    "stop_reason": {
                        "type": "string",
                        "nullable": true,
                        "description": "Why the run stopped early: cost_cap, cost_over_bound, core_limits_unsupported or, for a failed test run, exact_replay_unavailable or core_busy (its cohort unused)."
                    },
                    "error_message": {
                        "type": "string",
                        "nullable": true
                    },
                    "compare_group_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "baseline_run_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "prompt_revision_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "prompt_hash": {
                        "type": "string"
                    },
                    "sample_seed": {
                        "type": "integer",
                        "nullable": true
                    },
                    "sample_size": {
                        "type": "integer"
                    },
                    "max_cost_cents": {
                        "type": "integer",
                        "nullable": true
                    },
                    "estimated_cost_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "cost_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "test_cohort": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true,
                        "description": "A test run's cohort: its number, and spent once a result disclosed anything. Null on dev."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "started_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "completed_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "flips": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Examples fixed and broken against the baseline; dev runs only."
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "description": "Per example: verdict, replayed reply, judge verdict, trace summary."
                    },
                    "group": {
                        "$ref": "#/components/schemas/ReplayRunGroup"
                    },
                    "hidden": {
                        "type": "boolean",
                        "description": "True for a test-split run read with an API key: totals only."
                    },
                    "hidden_reason": {
                        "type": "string"
                    }
                },
                "required": [
                    "agent_id",
                    "baseline_run_id",
                    "compare_group_id",
                    "completed_at",
                    "config_overrides",
                    "config_source",
                    "cost_cents",
                    "created_at",
                    "engine",
                    "error_message",
                    "estimated_cost_cents",
                    "id",
                    "label",
                    "max_cost_cents",
                    "prompt_hash",
                    "prompt_revision_id",
                    "sample_seed",
                    "sample_size",
                    "split",
                    "started_at",
                    "status",
                    "stop_reason",
                    "summary"
                ]
            },
            "ReplayRunCreateRequest": {
                "type": "object",
                "properties": {
                    "split": {
                        "type": "string",
                        "minLength": 1,
                        "default": "dev",
                        "description": "\"dev\" or \"test\". A test run replays one whole test cohort and spends it with its first result (409 no_test_cohort when none is left), never falls back to text, and API keys get its totals only."
                    },
                    "engine": {
                        "type": "string",
                        "minLength": 1,
                        "default": "auto",
                        "description": "\"auto\", \"exact\" or \"text\". exact replays the turn's recorded caller audio through Core as a live call would (Bolt v2 only); text replays the transcript; auto picks exact when it can. On the test split omit it or send auto: each example's engine is set from the configuration and its data, and exact or text is refused (400 test_engine_per_example)."
                    },
                    "config_source": {
                        "type": "string",
                        "minLength": 1,
                        "default": "draft",
                        "description": "\"draft\" or \"deployed\"."
                    },
                    "overrides": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ReplayOverridesRequest"
                            }
                        ],
                        "description": "Changes to the configuration for this run. Not with configs."
                    },
                    "label": {
                        "type": "string",
                        "maxLength": 100
                    },
                    "configs": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ReplayConfigRequest"
                        },
                        "description": "2 to 4 configurations replayed on the same examples; the first is the baseline. Dev split only (400 comparison_dev_only on test)."
                    },
                    "sample_size": {
                        "type": "integer",
                        "maximum": 200,
                        "minimum": 1,
                        "default": 20,
                        "description": "Examples to replay. Ignored on the test split, which replays one whole test cohort."
                    },
                    "sample_seed": {
                        "type": "integer",
                        "minimum": 0,
                        "description": "Seed for the sample; the same seed draws the same examples. Ignored on the test split."
                    },
                    "max_cost_cents": {
                        "type": "integer",
                        "maximum": 100000,
                        "minimum": 1,
                        "description": "Hard spend cap in US cents, shared by every configuration; required unless dry_run. Each request first sets aside the most it can cost, and the run stops instead of sending one that does not fit; it is charged what the requests really cost. An exact replay sets aside about 85 cents to $1.25 for a typical turn against a real cost of a few cents; a cap only needs the expected spend plus one largest_reservation_cents per concurrent worker, the dry run's suggested_max_cost_cents."
                    },
                    "dry_run": {
                        "type": "boolean",
                        "default": false,
                        "description": "Return the estimate, the sample_seed it drew and a quote_id; nothing runs."
                    },
                    "quote_id": {
                        "type": "string",
                        "minLength": 1,
                        "description": "The quote_id of a dry run of this same request (send its sample_seed too); required unless dry_run. Good for 15 minutes and one run, used up durably as the run starts (a start that is refused or fails first leaves it usable); refused when used, when the request, the prices or the test cohort differ, or when the estimate has grown."
                    },
                    "baseline_run_id": {
                        "type": "integer",
                        "minimum": 1,
                        "description": "An earlier replay run of this agent on the same split to report fixed and broken examples against."
                    }
                }
            },
            "ReplayRunGroup": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "agent_id": {
                        "type": "integer"
                    },
                    "split": {
                        "type": "string"
                    },
                    "engine": {
                        "type": "string"
                    },
                    "config_source": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "stop_reason": {
                        "type": "string",
                        "nullable": true
                    },
                    "sample_seed": {
                        "type": "integer",
                        "nullable": true
                    },
                    "sample_size": {
                        "type": "integer"
                    },
                    "max_cost_cents": {
                        "type": "integer",
                        "nullable": true
                    },
                    "cost_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "test_cohort": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true
                    },
                    "baseline_run_id": {
                        "type": "integer"
                    },
                    "configs": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ReplayRunGroupConfig"
                        }
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "hidden": {
                        "type": "boolean"
                    },
                    "hidden_reason": {
                        "type": "string"
                    }
                },
                "required": [
                    "agent_id",
                    "baseline_run_id",
                    "config_source",
                    "configs",
                    "cost_cents",
                    "created_at",
                    "engine",
                    "id",
                    "max_cost_cents",
                    "sample_seed",
                    "sample_size",
                    "split",
                    "status",
                    "stop_reason"
                ]
            },
            "ReplayRunGroupConfig": {
                "type": "object",
                "properties": {
                    "summary": {
                        "$ref": "#/components/schemas/ReplayRunSummary"
                    },
                    "run_id": {
                        "type": "integer"
                    },
                    "label": {
                        "type": "string"
                    },
                    "overrides": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "baseline": {
                        "type": "boolean"
                    },
                    "status": {
                        "type": "string"
                    },
                    "prompt_revision_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "flips": {
                        "type": "object",
                        "additionalProperties": {}
                    }
                },
                "required": [
                    "baseline",
                    "label",
                    "overrides",
                    "prompt_revision_id",
                    "run_id",
                    "status",
                    "summary"
                ]
            },
            "ReplayRunList": {
                "type": "object",
                "properties": {
                    "runs": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ReplayRun"
                        }
                    }
                },
                "required": [
                    "runs"
                ]
            },
            "ReplayRunStart": {
                "type": "object",
                "properties": {
                    "dry_run": {
                        "type": "boolean"
                    },
                    "phi_mode": {
                        "type": "string",
                        "nullable": true
                    },
                    "example_count": {
                        "type": "integer"
                    },
                    "configs": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "estimated_cost_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "upper_bound_cents": {
                        "type": "number",
                        "format": "double",
                        "description": "The most the run can spend: every request at its upper bound."
                    },
                    "largest_reservation_cents": {
                        "type": "number",
                        "format": "double",
                        "description": "The largest single request's bound; leave it once per concurrent worker of headroom in max_cost_cents."
                    },
                    "min_max_cost_cents": {
                        "type": "integer",
                        "description": "The smallest cap that starts anything."
                    },
                    "concurrent_workers": {
                        "type": "integer",
                        "description": "How many examples the run replays at once, each holding one reservation."
                    },
                    "suggested_max_cost_cents": {
                        "type": "integer",
                        "description": "The cap that lets the run finish: estimated_cost_cents plus one largest_reservation_cents per concurrent worker."
                    },
                    "judge_max_completion_tokens": {
                        "type": "integer"
                    },
                    "notes": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "quote_id": {
                        "type": "string",
                        "description": "A dry run's signed quote; the real run sends it back."
                    },
                    "quote_expires_in_seconds": {
                        "type": "integer"
                    },
                    "next_step": {
                        "type": "string"
                    },
                    "test_cohort": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true,
                        "description": "Test split: the cohort the run would spend (number, example_count); on a run, its cohort."
                    },
                    "test_cohorts_left": {
                        "type": "integer",
                        "description": "Test split dry run: unused sealed cohorts."
                    },
                    "id": {
                        "description": "The run id, or the comparison group's id when configs was sent."
                    },
                    "agent_id": {
                        "type": "integer"
                    },
                    "label": {
                        "type": "string"
                    },
                    "split": {
                        "type": "string"
                    },
                    "engine": {
                        "type": "string"
                    },
                    "config_source": {
                        "type": "string"
                    },
                    "config_overrides": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "status": {
                        "type": "string"
                    },
                    "stop_reason": {
                        "type": "string",
                        "nullable": true
                    },
                    "error_message": {
                        "type": "string",
                        "nullable": true
                    },
                    "compare_group_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "baseline_run_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "prompt_revision_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "prompt_hash": {
                        "type": "string"
                    },
                    "sample_seed": {
                        "type": "integer",
                        "nullable": true
                    },
                    "sample_size": {
                        "type": "integer"
                    },
                    "max_cost_cents": {
                        "type": "integer",
                        "nullable": true
                    },
                    "cost_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "started_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "completed_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "summary": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "flips": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "hidden": {
                        "type": "boolean"
                    },
                    "hidden_reason": {
                        "type": "string"
                    }
                }
            },
            "ReplayRunSummary": {
                "type": "object",
                "properties": {
                    "total": {
                        "type": "integer"
                    },
                    "replayed": {
                        "type": "integer"
                    },
                    "phi_mode": {
                        "type": "string",
                        "nullable": true,
                        "description": "The PHI designation the configuration ran under."
                    },
                    "verdicts": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "integer"
                        }
                    },
                    "pass_rate": {
                        "type": "number",
                        "format": "double",
                        "nullable": true,
                        "description": "Set when one engine replayed every example; null when exact and text both ran (see by_engine)."
                    },
                    "budget_exhausted": {
                        "type": "integer",
                        "description": "Exact replays that needed more than their budget (error_code replay_budget_exhausted): counted apart from the verdicts and outside the pass rate."
                    },
                    "by_engine": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Per engine (exact, text): verdicts, budget_exhausted and pass_rate. Exact and text verdicts are never mixed."
                    },
                    "degraded": {
                        "type": "boolean",
                        "description": "An exact replay fell back to text (dev runs only), or nothing could be judged."
                    },
                    "failures": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "engine_fallbacks": {
                        "type": "integer"
                    },
                    "latency_to_first_audio_s": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true
                    },
                    "latency_to_reply_audio_s": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true
                    },
                    "wait_cover_share": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "fork_rate": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    },
                    "cost_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "cost_per_turn_cents": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    }
                },
                "required": [
                    "budget_exhausted",
                    "by_engine",
                    "cost_cents",
                    "cost_per_turn_cents",
                    "degraded",
                    "engine_fallbacks",
                    "failures",
                    "fork_rate",
                    "latency_to_first_audio_s",
                    "latency_to_reply_audio_s",
                    "pass_rate",
                    "replayed",
                    "total",
                    "verdicts",
                    "wait_cover_share"
                ]
            },
            "ReportCapabilities": {
                "type": "object",
                "properties": {
                    "booking": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "booking"
                ]
            },
            "ReportMetrics": {
                "type": "object",
                "properties": {
                    "calls_handled": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "handled_start_to_finish": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "went_badly": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "caller_experience": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "appointments_set": {
                        "type": "object",
                        "additionalProperties": {}
                    }
                },
                "required": [
                    "appointments_set",
                    "caller_experience",
                    "calls_handled",
                    "handled_start_to_finish",
                    "went_badly"
                ]
            },
            "ReportNeedsAttention": {
                "type": "object",
                "properties": {
                    "value": {
                        "type": "integer"
                    },
                    "previous": {
                        "type": "integer"
                    },
                    "reasons": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "previous",
                    "reasons",
                    "value"
                ]
            },
            "ReportOutcomeCount": {
                "type": "object",
                "properties": {
                    "key": {
                        "type": "string"
                    },
                    "label": {
                        "type": "string"
                    },
                    "count": {
                        "type": "integer"
                    },
                    "previous": {
                        "type": "integer"
                    }
                },
                "required": [
                    "count",
                    "key",
                    "label",
                    "previous"
                ]
            },
            "ReportPeriod": {
                "type": "object",
                "properties": {
                    "start": {
                        "type": "string"
                    },
                    "end": {
                        "type": "string"
                    }
                },
                "required": [
                    "end",
                    "start"
                ]
            },
            "ReportPreviousPeriod": {
                "type": "object",
                "properties": {
                    "start": {
                        "type": "string"
                    },
                    "end": {
                        "type": "string"
                    }
                },
                "required": [
                    "end",
                    "start"
                ]
            },
            "ReportSuccessRate": {
                "type": "object",
                "properties": {
                    "graded": {
                        "type": "integer"
                    },
                    "succeeded": {
                        "type": "integer"
                    },
                    "graded_previous": {
                        "type": "integer"
                    },
                    "succeeded_previous": {
                        "type": "integer"
                    }
                },
                "required": [
                    "graded",
                    "graded_previous",
                    "succeeded",
                    "succeeded_previous"
                ]
            },
            "RequestFormatEnum": {
                "enum": [
                    "standard",
                    "vapi",
                    "retell"
                ],
                "type": "string",
                "description": "* `standard` - Standard\n* `vapi` - Vapi\n* `retell` - Retell"
            },
            "ResponseWarning": {
                "type": "object",
                "properties": {
                    "code": {
                        "type": "string"
                    },
                    "message": {
                        "type": "string"
                    }
                },
                "required": [
                    "code",
                    "message"
                ]
            },
            "RestoreAgentVersionRequest": {
                "type": "object",
                "properties": {
                    "deploy": {
                        "type": "boolean",
                        "default": true,
                        "description": "Deploy the restored configuration (admins and owners). A member's restore is saved as a draft."
                    },
                    "if_updated_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "if_live_revision": {
                        "type": "integer",
                        "description": "The latest revision as last read; a newer deploy since is a 409."
                    },
                    "discard_drafts": {
                        "type": "boolean",
                        "default": false,
                        "description": "Go ahead over other people's undeployed draft changes (otherwise a 409 with reason unpublished_drafts)."
                    },
                    "confirm_price_change": {
                        "type": "boolean",
                        "default": false,
                        "description": "With deploy: the person agreed to the higher per-minute price the restored revision brings (otherwise a 409 price_change_needs_confirmation)."
                    }
                }
            },
            "RetryStrategyEnum": {
                "enum": [
                    "fixed",
                    "spread"
                ],
                "type": "string",
                "description": "* `fixed` - Fixed backoff\n* `spread` - Spread across days and times of day"
            },
            "ReusableInstruction": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "content": {
                        "type": "string"
                    },
                    "agent_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "agent_count",
                    "content",
                    "created_at",
                    "id",
                    "name",
                    "updated_at"
                ]
            },
            "ReusableInstructionAttachment": {
                "type": "object",
                "description": "Read-only rows embedded on the agent payload.\n\nNo ``agent_count``: the builder only needs the attached text, and the\nper-row COUNT would be an N+1 on the agents list.",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "readOnly": true
                    },
                    "content": {
                        "type": "string",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "content",
                    "created_at",
                    "id",
                    "name",
                    "updated_at"
                ]
            },
            "ReusableInstructionRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "content": {
                        "type": "string",
                        "minLength": 1
                    }
                },
                "required": [
                    "content",
                    "name"
                ]
            },
            "Role0b4Enum": {
                "enum": [
                    "admin",
                    "member"
                ],
                "type": "string",
                "description": "* `admin` - admin\n* `member` - member"
            },
            "Role13fEnum": {
                "enum": [
                    "admin",
                    "member"
                ],
                "type": "string",
                "description": "* `admin` - Admin\n* `member` - Member"
            },
            "RoutedCallRequest": {
                "type": "object",
                "properties": {
                    "to_number": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Destination in E.164 format. National format is read in from_number's country."
                    },
                    "idempotency_key": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Required. A repeat with the same key returns the first answer and never dials twice.",
                        "maxLength": 128
                    },
                    "from_number": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Optional caller ID. It must be valid on whichever platform takes the call: an active number of your organization on ThunderPhone, or a number assigned to the agent on the vendor."
                    },
                    "variables": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Per-call variables for the agent's prompt, as in /v1/call."
                    },
                    "metadata": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Echoed back in migration.call.complete; at most 4 KB of JSON."
                    }
                },
                "required": [
                    "idempotency_key",
                    "to_number"
                ]
            },
            "RoutedCallResponse": {
                "type": "object",
                "properties": {
                    "routing_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "arm": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ArmEnum"
                            }
                        ],
                        "description": "ours: ThunderPhone placed the call; vendor: the vendor did.\n\n* `ours` - ours\n* `vendor` - vendor"
                    },
                    "call_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "The ThunderPhone call id (ours arm), else null."
                    },
                    "vendor_call_id": {
                        "type": "string",
                        "nullable": true,
                        "description": "The vendor's call id (vendor arm), else null; null too when the vendor's answer was ambiguous (status unknown)."
                    },
                    "failure_reason": {
                        "type": "string",
                        "description": "Why a replayed ThunderPhone call failed after dialing."
                    },
                    "status": {
                        "$ref": "#/components/schemas/PlaceCallResponseStatusEnum"
                    },
                    "idempotent_replay": {
                        "type": "boolean"
                    },
                    "queued_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true,
                        "description": "Present while the call waits for room to dial, from when it began waiting. The status stays initiated."
                    }
                },
                "required": [
                    "arm",
                    "call_id",
                    "routing_id",
                    "status",
                    "vendor_call_id"
                ]
            },
            "RunEnum": {
                "enum": [
                    "auto"
                ],
                "type": "string",
                "description": "* `auto` - auto"
            },
            "RunExperimentRequest": {
                "type": "object",
                "properties": {
                    "config": {},
                    "candidate_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                }
            },
            "ScenarioBatch": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "channel": {
                        "$ref": "#/components/schemas/ChannelEnum"
                    },
                    "phone_number_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "phone_number_display": {
                        "type": "string",
                        "nullable": true
                    },
                    "status": {
                        "type": "string"
                    },
                    "total": {
                        "type": "integer"
                    },
                    "completed": {
                        "type": "integer"
                    },
                    "failed": {
                        "type": "integer"
                    },
                    "pass_count": {
                        "type": "integer"
                    },
                    "fail_count": {
                        "type": "integer"
                    },
                    "matrix_dimensions": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "estimated_minutes": {
                        "type": "number",
                        "format": "double"
                    },
                    "estimated_cost_cents": {
                        "type": "integer"
                    },
                    "agent_prompt_hash": {
                        "type": "string"
                    },
                    "error_message": {
                        "type": "string"
                    },
                    "requested_by_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "started_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "completed_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "runs": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "agent_id",
                    "agent_prompt_hash",
                    "channel",
                    "completed",
                    "completed_at",
                    "created_at",
                    "error_message",
                    "estimated_cost_cents",
                    "estimated_minutes",
                    "fail_count",
                    "failed",
                    "id",
                    "matrix_dimensions",
                    "pass_count",
                    "phone_number_display",
                    "phone_number_id",
                    "requested_by_id",
                    "runs",
                    "started_at",
                    "status",
                    "total",
                    "updated_at"
                ]
            },
            "ScenarioList": {
                "type": "object",
                "properties": {
                    "scenarios": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TestScenario"
                        }
                    }
                },
                "required": [
                    "scenarios"
                ]
            },
            "ScenarioModeEnum": {
                "enum": [
                    "manual",
                    "auto"
                ],
                "type": "string",
                "description": "* `manual` - manual\n* `auto` - auto"
            },
            "ScheduledSend": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "type": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ScheduledSendTypeEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ScheduledSendStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "status_reason": {
                        "type": "string",
                        "readOnly": true
                    },
                    "status_detail": {
                        "type": "string",
                        "readOnly": true
                    },
                    "send_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "from_number": {
                        "type": "string",
                        "readOnly": true
                    },
                    "to": {
                        "type": "string",
                        "readOnly": true
                    },
                    "body": {
                        "type": "string",
                        "readOnly": true
                    },
                    "agent_id": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "variables": {
                        "readOnly": true,
                        "nullable": true
                    },
                    "context": {
                        "type": "string",
                        "readOnly": true
                    },
                    "timezone": {
                        "type": "string",
                        "readOnly": true
                    },
                    "allow_quiet_hours": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "external_id": {
                        "type": "string",
                        "readOnly": true
                    },
                    "source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ScheduledSendSourceEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "source_call_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "consent": {
                        "readOnly": true
                    },
                    "simulated": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "sms_message_id": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": true,
                        "readOnly": true
                    },
                    "call_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "sent_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "agent_id",
                    "allow_quiet_hours",
                    "body",
                    "call_id",
                    "consent",
                    "context",
                    "created_at",
                    "expires_at",
                    "external_id",
                    "from_number",
                    "id",
                    "send_at",
                    "sent_at",
                    "simulated",
                    "sms_message_id",
                    "source",
                    "source_call_id",
                    "status",
                    "status_detail",
                    "status_reason",
                    "timezone",
                    "to",
                    "type",
                    "updated_at",
                    "variables"
                ]
            },
            "ScheduledSendCancelRequest": {
                "type": "object",
                "properties": {
                    "external_id": {
                        "type": "string",
                        "maxLength": 128
                    },
                    "to": {
                        "type": "string",
                        "maxLength": 32
                    },
                    "type": {
                        "$ref": "#/components/schemas/ScheduledSendTypeEnum"
                    }
                }
            },
            "ScheduledSendCancelResult": {
                "type": "object",
                "properties": {
                    "canceled": {
                        "type": "integer"
                    }
                },
                "required": [
                    "canceled"
                ]
            },
            "ScheduledSendCreateRequest": {
                "type": "object",
                "properties": {
                    "type": {
                        "$ref": "#/components/schemas/ScheduledSendTypeEnum"
                    },
                    "send_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 with a UTC offset; a time without one is read as UTC."
                    },
                    "to": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                    },
                    "from_number": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                    },
                    "body": {
                        "type": "string",
                        "description": "Texts only. {{name}} placeholders are filled from variables when the text is sent.",
                        "maxLength": 1600
                    },
                    "agent_id": {
                        "type": "integer",
                        "description": "Calls only: the agent that places the call."
                    },
                    "variables": {
                        "nullable": true
                    },
                    "context": {
                        "type": "string",
                        "nullable": true,
                        "description": "Calls only: free text added to the agent's prompt for this call.",
                        "maxLength": 20000
                    },
                    "external_id": {
                        "type": "string",
                        "maxLength": 128
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true,
                        "description": "Never sent after this. Defaults to send_at plus 30 minutes."
                    },
                    "allow_quiet_hours": {
                        "type": "boolean",
                        "default": false
                    },
                    "idempotency_key": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                    }
                },
                "required": [
                    "from_number",
                    "send_at",
                    "to",
                    "type"
                ]
            },
            "ScheduledSendList": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ScheduledSend"
                        }
                    }
                },
                "required": [
                    "count",
                    "results"
                ]
            },
            "ScheduledSendResult": {
                "type": "object",
                "description": "A created or changed send, with anything the caller should know.",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "type": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ScheduledSendTypeEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ScheduledSendStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "status_reason": {
                        "type": "string",
                        "readOnly": true
                    },
                    "status_detail": {
                        "type": "string",
                        "readOnly": true
                    },
                    "send_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "from_number": {
                        "type": "string",
                        "readOnly": true
                    },
                    "to": {
                        "type": "string",
                        "readOnly": true
                    },
                    "body": {
                        "type": "string",
                        "readOnly": true
                    },
                    "agent_id": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "variables": {
                        "readOnly": true,
                        "nullable": true
                    },
                    "context": {
                        "type": "string",
                        "readOnly": true
                    },
                    "timezone": {
                        "type": "string",
                        "readOnly": true
                    },
                    "allow_quiet_hours": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "external_id": {
                        "type": "string",
                        "readOnly": true
                    },
                    "source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ScheduledSendSourceEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "source_call_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "consent": {
                        "readOnly": true
                    },
                    "simulated": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "sms_message_id": {
                        "type": "string",
                        "format": "uuid",
                        "nullable": true,
                        "readOnly": true
                    },
                    "call_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "sent_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "warnings": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ScheduledSendWarning"
                        }
                    }
                },
                "required": [
                    "agent_id",
                    "allow_quiet_hours",
                    "body",
                    "call_id",
                    "consent",
                    "context",
                    "created_at",
                    "expires_at",
                    "external_id",
                    "from_number",
                    "id",
                    "send_at",
                    "sent_at",
                    "simulated",
                    "sms_message_id",
                    "source",
                    "source_call_id",
                    "status",
                    "status_detail",
                    "status_reason",
                    "timezone",
                    "to",
                    "type",
                    "updated_at",
                    "variables"
                ]
            },
            "ScheduledSendSourceEnum": {
                "enum": [
                    "api",
                    "agent_tool",
                    "callback",
                    "missed_call"
                ],
                "type": "string",
                "description": "* `api` - API\n* `agent_tool` - Agent reminder\n* `callback` - Callback\n* `missed_call` - Missed-call text"
            },
            "ScheduledSendStatusEnum": {
                "enum": [
                    "scheduled",
                    "sending",
                    "sent",
                    "canceled",
                    "skipped",
                    "failed"
                ],
                "type": "string",
                "description": "* `scheduled` - Scheduled\n* `sending` - Sending\n* `sent` - Sent\n* `canceled` - Canceled\n* `skipped` - Skipped\n* `failed` - Failed"
            },
            "ScheduledSendTypeEnum": {
                "enum": [
                    "sms",
                    "call"
                ],
                "type": "string",
                "description": "* `sms` - Text\n* `call` - Call"
            },
            "ScheduledSendWarning": {
                "type": "object",
                "properties": {
                    "code": {
                        "type": "string"
                    },
                    "message": {
                        "type": "string"
                    }
                },
                "required": [
                    "code",
                    "message"
                ]
            },
            "ScopeEnum": {
                "enum": [
                    "organization",
                    "agent"
                ],
                "type": "string",
                "description": "* `organization` - Organization\n* `agent` - Agent"
            },
            "Scores": {
                "type": "object",
                "properties": {
                    "maturity": {
                        "type": "integer",
                        "nullable": true
                    },
                    "connection": {
                        "type": "integer",
                        "nullable": true
                    },
                    "engagement": {
                        "type": "integer",
                        "nullable": true
                    },
                    "sentiment": {
                        "type": "integer",
                        "nullable": true
                    }
                },
                "required": [
                    "connection",
                    "engagement",
                    "maturity",
                    "sentiment"
                ]
            },
            "SetupIntent": {
                "type": "object",
                "properties": {
                    "setup_intent_id": {
                        "type": "string"
                    },
                    "client_secret": {
                        "type": "string",
                        "nullable": true
                    },
                    "status": {
                        "type": "string"
                    }
                },
                "required": [
                    "client_secret",
                    "setup_intent_id",
                    "status"
                ]
            },
            "SetupMethodEnum": {
                "enum": [
                    "api_key",
                    "manual",
                    "guided_telnyx",
                    "twilio_subaccount"
                ],
                "type": "string",
                "description": "* `api_key` - API key\n* `manual` - Manual\n* `guided_telnyx` - Guided Telnyx\n* `twilio_subaccount` - Twilio subaccount"
            },
            "SeverityEnum": {
                "enum": [
                    "critical",
                    "warning",
                    "info"
                ],
                "type": "string",
                "description": "* `critical` - Critical\n* `warning` - Warning\n* `info` - Info"
            },
            "SheetsPickerToken": {
                "type": "object",
                "properties": {
                    "access_token": {
                        "type": "string"
                    }
                },
                "required": [
                    "access_token"
                ]
            },
            "SilenceFinalActionEnum": {
                "enum": [
                    "hang_up",
                    "transfer"
                ],
                "type": "string",
                "description": "* `hang_up` - Hang up\n* `transfer` - Transfer"
            },
            "SimulationBatch": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "readOnly": true
                    },
                    "target_type": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/TargetTypeEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "target_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "direction": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DirectionD75Enum"
                            }
                        ],
                        "readOnly": true
                    },
                    "target_number": {
                        "type": "string",
                        "readOnly": true
                    },
                    "scenario_prompts": {
                        "readOnly": true,
                        "description": "List of scenario prompt strings; one per run. If shorter than run_count, prompts are cycled."
                    },
                    "matrix_dimensions": {
                        "readOnly": true,
                        "description": "Selected voice-condition values used to expand this batch."
                    },
                    "run_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "stagger_seconds": {
                        "type": "integer",
                        "readOnly": true,
                        "description": "Delay in seconds between launching successive runs."
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SimulationBatchStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "total_runs": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "completed_runs": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "failed_runs": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "estimated_minutes": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "estimated_cost_cents": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "error_message": {
                        "type": "string",
                        "readOnly": true
                    },
                    "requested_by_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "started_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "completed_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "run_ids": {}
                },
                "required": [
                    "completed_at",
                    "completed_runs",
                    "created_at",
                    "direction",
                    "error_message",
                    "estimated_cost_cents",
                    "estimated_minutes",
                    "failed_runs",
                    "id",
                    "matrix_dimensions",
                    "name",
                    "requested_by_id",
                    "run_count",
                    "scenario_prompts",
                    "stagger_seconds",
                    "started_at",
                    "status",
                    "target_id",
                    "target_number",
                    "target_type",
                    "total_runs",
                    "updated_at"
                ]
            },
            "SimulationBatchCreateRequest": {
                "type": "object",
                "properties": {
                    "target_type": {
                        "$ref": "#/components/schemas/TargetTypeEnum"
                    },
                    "target_id": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "direction": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DirectionD75Enum"
                            }
                        ],
                        "default": "outbound"
                    },
                    "target_number": {
                        "type": "string",
                        "default": "",
                        "maxLength": 32
                    },
                    "scenario_prompts": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "maxLength": 4000
                        },
                        "maxItems": 20
                    },
                    "run_count": {
                        "type": "integer",
                        "maximum": 20,
                        "minimum": 1,
                        "default": 3
                    },
                    "stagger_seconds": {
                        "type": "integer",
                        "maximum": 60,
                        "minimum": 0,
                        "default": 5
                    },
                    "name": {
                        "type": "string",
                        "default": "",
                        "maxLength": 255
                    },
                    "language": {
                        "type": "string",
                        "maxLength": 32
                    },
                    "primary_language": {
                        "type": "string",
                        "maxLength": 32
                    },
                    "consent_to_charge": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "consent_to_charge",
                    "target_id",
                    "target_type"
                ]
            },
            "SimulationBatchStatusEnum": {
                "enum": [
                    "pending",
                    "in_progress",
                    "completed",
                    "failed"
                ],
                "type": "string",
                "description": "* `pending` - Pending\n* `in_progress` - In Progress\n* `completed` - Completed\n* `failed` - Failed"
            },
            "SimulationRun": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "target_type": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/TargetTypeEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "target_id": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "target_name": {
                        "type": "string",
                        "readOnly": true
                    },
                    "agent_name": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "direction": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DirectionD75Enum"
                            }
                        ],
                        "readOnly": true
                    },
                    "mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SimulationRunModeEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "target_number": {
                        "type": "string",
                        "readOnly": true
                    },
                    "scenario_prompt": {
                        "type": "string",
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SimulationRunStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "charge_multiplier": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "estimated_cost_cents": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "call_id": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "error_message": {
                        "type": "string",
                        "readOnly": true
                    },
                    "metadata": {
                        "readOnly": true
                    },
                    "requested_by_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "started_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "completed_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "duration_seconds": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "recording_url": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "transcript": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        },
                        "readOnly": true
                    },
                    "grade": {
                        "type": "object",
                        "nullable": true,
                        "additionalProperties": true,
                        "readOnly": true
                    },
                    "held_out": {
                        "type": "boolean",
                        "description": "Present only for organizations with the agent iteration toolkit: true when a person promoted this test scenario (or the scenario this run ran) from a held-out call, one whose caller is in an agent's test split. An API key or OAuth token gets it as its id (and scenario_id) and held_out only; test runs still run it. People see it in full in the dashboard. Organizations without the toolkit are unaffected."
                    }
                },
                "required": [
                    "agent_name",
                    "call_id",
                    "charge_multiplier",
                    "completed_at",
                    "created_at",
                    "direction",
                    "duration_seconds",
                    "error_message",
                    "estimated_cost_cents",
                    "grade",
                    "id",
                    "metadata",
                    "mode",
                    "recording_url",
                    "requested_by_id",
                    "scenario_prompt",
                    "started_at",
                    "status",
                    "target_id",
                    "target_name",
                    "target_number",
                    "target_type",
                    "transcript",
                    "updated_at"
                ]
            },
            "SimulationRunCreateRequest": {
                "type": "object",
                "properties": {
                    "target_type": {
                        "$ref": "#/components/schemas/TargetTypeEnum"
                    },
                    "target_id": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "direction": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DirectionD75Enum"
                            }
                        ],
                        "default": "outbound"
                    },
                    "target_number": {
                        "type": "string",
                        "default": "",
                        "maxLength": 32
                    },
                    "scenario_prompt": {
                        "type": "string",
                        "default": "",
                        "maxLength": 4000
                    },
                    "scenario_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ScenarioModeEnum"
                            }
                        ],
                        "default": "manual"
                    },
                    "language": {
                        "type": "string",
                        "maxLength": 32
                    },
                    "primary_language": {
                        "type": "string",
                        "maxLength": 32
                    },
                    "call_setup_sample_id": {
                        "type": "integer",
                        "minimum": 1,
                        "nullable": true
                    },
                    "simulator_product": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SimulatorProductEnum"
                            }
                        ],
                        "default": "testing"
                    },
                    "consent_to_charge": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "consent_to_charge",
                    "target_id",
                    "target_type"
                ]
            },
            "SimulationRunModeEnum": {
                "enum": [
                    "bot",
                    "sip"
                ],
                "type": "string",
                "description": "* `bot` - Bot-to-bot\n* `sip` - SIP loopback"
            },
            "SimulationRunStatusEnum": {
                "enum": [
                    "queued",
                    "in_progress",
                    "completed",
                    "failed"
                ],
                "type": "string",
                "description": "* `queued` - Queued\n* `in_progress` - In Progress\n* `completed` - Completed\n* `failed` - Failed"
            },
            "SimulatorProductEnum": {
                "enum": [
                    "testing",
                    "spark"
                ],
                "type": "string",
                "description": "* `testing` - testing\n* `spark` - spark"
            },
            "SipAnswerKindEnum": {
                "type": "string",
                "enum": [
                    "refused",
                    "busy",
                    "no_answer",
                    "declined"
                ]
            },
            "SipEndpoint": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string"
                    },
                    "agent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "sip_uri": {
                        "type": "string"
                    },
                    "auth": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SipEndpointAuthEnum"
                            }
                        ],
                        "description": "digest: callers authenticate with username and password (SIP digest). ip_allowlist: no password; only calls from allowed_source_cidrs over TCP or TLS are accepted. For platforms that authenticate by source IP only. Switching to digest returns a new password once.\n\n* `digest` - SIP digest username and password\n* `ip_allowlist` - Source IP allowlist only",
                        "default": "digest"
                    },
                    "username": {
                        "type": "string",
                        "nullable": true,
                        "description": "SIP digest username; null with ip_allowlist auth."
                    },
                    "password": {
                        "type": "string",
                        "description": "Only on responses that issue one: create and rotate-password with digest auth, and an update that switches auth to digest."
                    },
                    "allowed_source_cidrs": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Source IPv4/IPv6 CIDRs allowed to call this endpoint; with digest auth, empty allows any source. Required with ip_allowlist auth: at least one public range, IPv4 /16 or narrower, IPv6 /48 or narrower. Checked for calls over TCP or TLS only: a UDP source address can be forged, so an endpoint with an allowlist refuses UDP calls."
                    },
                    "dial_in_numbers": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Phone numbers a contact-center platform dials to reach this endpoint (Five9, NICE CXone, Zoom Contact Center), written exactly as the platform dials them: 6 to 15 digits with an optional leading +; spaces, dashes and parentheses are removed. At most 5. Only with ip_allowlist auth. Each must not be in use on another SIP endpoint or as a ThunderPhone phone number. Calls to them need the same allowed source as calls to sip_uri.",
                        "default": []
                    },
                    "srtp": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SipEndpointSrtpEnum"
                            }
                        ],
                        "description": "Media encryption: disabled (default), optional (SRTP when the caller offers it) or required (calls without SRTP are refused). optional and required need ip_allowlist auth. Use with TLS.\n\n* `disabled` - No media encryption\n* `optional` - SRTP when the caller offers it\n* `required` - SRTP required",
                        "default": "disabled"
                    },
                    "status": {
                        "$ref": "#/components/schemas/SipEndpointStatusEnum"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "required": [
                    "agent_id",
                    "allowed_source_cidrs",
                    "created_at",
                    "id",
                    "name",
                    "sip_uri",
                    "status",
                    "username"
                ]
            },
            "SipEndpointAuthEnum": {
                "enum": [
                    "digest",
                    "ip_allowlist"
                ],
                "type": "string",
                "description": "* `digest` - SIP digest username and password\n* `ip_allowlist` - Source IP allowlist only"
            },
            "SipEndpointList": {
                "type": "object",
                "properties": {
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SipEndpoint"
                        }
                    }
                },
                "required": [
                    "results"
                ]
            },
            "SipEndpointSrtpEnum": {
                "enum": [
                    "disabled",
                    "optional",
                    "required"
                ],
                "type": "string",
                "description": "* `disabled` - No media encryption\n* `optional` - SRTP when the caller offers it\n* `required` - SRTP required"
            },
            "SipEndpointStatusEnum": {
                "enum": [
                    "provisioning",
                    "active",
                    "disabled"
                ],
                "type": "string",
                "description": "* `provisioning` - provisioning\n* `active` - active\n* `disabled` - disabled"
            },
            "SipEndpointUpdateStatusEnum": {
                "enum": [
                    "active",
                    "disabled"
                ],
                "type": "string",
                "description": "* `active` - active\n* `disabled` - disabled"
            },
            "SipEndpointWriteRequest": {
                "type": "object",
                "properties": {
                    "agent_id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string",
                        "default": "",
                        "maxLength": 120
                    },
                    "auth": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SipEndpointAuthEnum"
                            }
                        ],
                        "default": "digest",
                        "description": "digest: callers authenticate with username and password (SIP digest). ip_allowlist: no password; only calls from allowed_source_cidrs over TCP or TLS are accepted. For platforms that authenticate by source IP only. Switching to digest returns a new password once.\n\n* `digest` - SIP digest username and password\n* `ip_allowlist` - Source IP allowlist only"
                    },
                    "allowed_source_cidrs": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1
                        },
                        "description": "Source IPv4/IPv6 CIDRs allowed to call this endpoint; with digest auth, empty allows any source. Required with ip_allowlist auth: at least one public range, IPv4 /16 or narrower, IPv6 /48 or narrower. Checked for calls over TCP or TLS only: a UDP source address can be forged, so an endpoint with an allowlist refuses UDP calls."
                    },
                    "dial_in_numbers": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 32
                        },
                        "description": "Phone numbers a contact-center platform dials to reach this endpoint (Five9, NICE CXone, Zoom Contact Center), written exactly as the platform dials them: 6 to 15 digits with an optional leading +; spaces, dashes and parentheses are removed. At most 5. Only with ip_allowlist auth. Each must not be in use on another SIP endpoint or as a ThunderPhone phone number. Calls to them need the same allowed source as calls to sip_uri."
                    },
                    "srtp": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SipEndpointSrtpEnum"
                            }
                        ],
                        "default": "disabled",
                        "description": "Media encryption: disabled (default), optional (SRTP when the caller offers it) or required (calls without SRTP are refused). optional and required need ip_allowlist auth. Use with TLS.\n\n* `disabled` - No media encryption\n* `optional` - SRTP when the caller offers it\n* `required` - SRTP required"
                    }
                },
                "required": [
                    "agent_id"
                ]
            },
            "SmsAllowedRecipient": {
                "type": "object",
                "properties": {
                    "number": {
                        "type": "string",
                        "maxLength": 32
                    },
                    "label": {
                        "type": "string",
                        "maxLength": 60,
                        "minLength": 1
                    }
                },
                "required": [
                    "label",
                    "number"
                ]
            },
            "SmsAllowedRecipientRequest": {
                "type": "object",
                "properties": {
                    "number": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                    },
                    "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                    }
                },
                "required": [
                    "label",
                    "number"
                ]
            },
            "SmsMessage": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "from_number": {
                        "type": "string",
                        "readOnly": true
                    },
                    "to": {
                        "type": "string",
                        "readOnly": true
                    },
                    "body": {
                        "type": "string",
                        "readOnly": true
                    },
                    "direction": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DirectionD75Enum"
                            }
                        ],
                        "readOnly": true
                    },
                    "source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SmsMessageSourceEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SmsMessageStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "provider": {
                        "type": "string",
                        "readOnly": true
                    },
                    "provider_id": {
                        "type": "string",
                        "readOnly": true
                    },
                    "segment_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "error_code": {
                        "type": "string",
                        "readOnly": true
                    },
                    "error_message": {
                        "type": "string",
                        "readOnly": true
                    },
                    "call_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "agent_id": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "attempt_count": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "attempt_started_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "next_attempt_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "accepted_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "delivery_status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DeliveryStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "delivered_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "delivery_failed_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "provider_error_code": {
                        "type": "string",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "accepted_at",
                    "agent_id",
                    "attempt_count",
                    "attempt_started_at",
                    "body",
                    "call_id",
                    "created_at",
                    "delivered_at",
                    "delivery_failed_at",
                    "delivery_status",
                    "direction",
                    "error_code",
                    "error_message",
                    "from_number",
                    "id",
                    "next_attempt_at",
                    "provider",
                    "provider_error_code",
                    "provider_id",
                    "segment_count",
                    "source",
                    "status",
                    "to",
                    "updated_at"
                ]
            },
            "SmsMessageList": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SmsMessage"
                        }
                    }
                },
                "required": [
                    "count",
                    "results"
                ]
            },
            "SmsMessageSourceEnum": {
                "enum": [
                    "api",
                    "agent_tool",
                    "followup",
                    "scheduled",
                    "pre_call"
                ],
                "type": "string",
                "description": "* `api` - API\n* `agent_tool` - Agent tool\n* `followup` - Post-call follow-up\n* `scheduled` - Scheduled send\n* `pre_call` - Campaign pre-call text"
            },
            "SmsMessageStatusEnum": {
                "enum": [
                    "pending",
                    "accepted",
                    "retrying",
                    "failed",
                    "unknown"
                ],
                "type": "string",
                "description": "* `pending` - Pending\n* `accepted` - Accepted\n* `retrying` - Retrying\n* `failed` - Failed\n* `unknown` - Unknown"
            },
            "SmsSendRequest": {
                "type": "object",
                "properties": {
                    "from_number": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                    },
                    "to": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                    },
                    "body": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1600
                    }
                },
                "required": [
                    "body",
                    "from_number",
                    "to"
                ]
            },
            "SnrDbEnum": {
                "enum": [
                    0,
                    5,
                    10,
                    20
                ],
                "type": "integer",
                "description": "* `0` - 0\n* `5` - 5\n* `10` - 10\n* `20` - 20"
            },
            "Source1ecEnum": {
                "enum": [
                    "vapi",
                    "retell",
                    "elevenlabs",
                    "bland"
                ],
                "type": "string",
                "description": "* `vapi` - Vapi\n* `retell` - Retell\n* `elevenlabs` - ElevenLabs Agents\n* `bland` - Bland"
            },
            "SourceE1aEnum": {
                "enum": [
                    "user",
                    "system"
                ],
                "type": "string",
                "description": "* `user` - User\n* `system` - System"
            },
            "SourceOriginEnum": {
                "enum": [
                    "upload",
                    "url"
                ],
                "type": "string",
                "description": "* `upload` - Upload\n* `url` - Web page"
            },
            "SourceTypeEnum": {
                "enum": [
                    "text",
                    "file"
                ],
                "type": "string",
                "description": "* `text` - Text\n* `file` - File"
            },
            "SpamMonitoring": {
                "type": "object",
                "properties": {
                    "available": {
                        "type": "boolean",
                        "description": "False until ThunderPhone turns the add-on on for the organization."
                    },
                    "status": {
                        "$ref": "#/components/schemas/SpamMonitoringStatusEnum"
                    },
                    "review_status": {
                        "type": "string",
                        "nullable": true
                    },
                    "letter_status": {
                        "type": "string",
                        "nullable": true
                    },
                    "rejection_reasons": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "letter_uploaded_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "enabled_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "next_charge_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "confirmed_price": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/MonitoringPrice"
                            }
                        ],
                        "nullable": true
                    },
                    "numbers_enrolled": {
                        "type": "integer"
                    },
                    "ownership": {
                        "$ref": "#/components/schemas/OwnershipCheck"
                    },
                    "price": {
                        "$ref": "#/components/schemas/MonitoringPrice"
                    }
                },
                "required": [
                    "available",
                    "confirmed_price",
                    "enabled_at",
                    "letter_status",
                    "letter_uploaded_at",
                    "next_charge_at",
                    "numbers_enrolled",
                    "ownership",
                    "price",
                    "rejection_reasons",
                    "review_status",
                    "status"
                ]
            },
            "SpamMonitoringStatusEnum": {
                "enum": [
                    "off",
                    "pending",
                    "active",
                    "rejected"
                ],
                "type": "string",
                "description": "* `off` - off\n* `pending` - pending\n* `active` - active\n* `rejected` - rejected"
            },
            "SpamRiskEnum": {
                "enum": [
                    "low",
                    "medium",
                    "high"
                ],
                "type": "string",
                "description": "* `low` - low\n* `medium` - medium\n* `high` - high"
            },
            "SpeechStyleRequest": {
                "type": "object",
                "properties": {
                    "pace": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/PaceEnum"
                            }
                        ],
                        "default": "natural"
                    },
                    "disfluencies": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DisfluenciesEnum"
                            }
                        ],
                        "default": "none"
                    },
                    "accent": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AccentEnum"
                            }
                        ],
                        "default": "default"
                    }
                }
            },
            "SplitTesting": {
                "type": "object",
                "properties": {
                    "split_testing_enabled": {
                        "type": "boolean"
                    },
                    "draft_split_testing_enabled": {
                        "type": "boolean",
                        "nullable": true
                    }
                },
                "required": [
                    "draft_split_testing_enabled",
                    "split_testing_enabled"
                ]
            },
            "SplitTestingRequestRequest": {
                "type": "object",
                "properties": {
                    "enabled": {
                        "type": "boolean",
                        "default": true
                    }
                }
            },
            "SpreadsheetConfigureRequest": {
                "type": "object",
                "properties": {
                    "spreadsheet_id": {
                        "type": "string",
                        "minLength": 1
                    },
                    "sheet_name": {
                        "type": "string",
                        "minLength": 1
                    }
                },
                "required": [
                    "sheet_name",
                    "spreadsheet_id"
                ]
            },
            "SpreadsheetInspectRequest": {
                "type": "object",
                "properties": {
                    "spreadsheet_id": {
                        "type": "string",
                        "minLength": 1
                    }
                },
                "required": [
                    "spreadsheet_id"
                ]
            },
            "SpreadsheetOverview": {
                "type": "object",
                "properties": {
                    "spreadsheet_id": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "sheets": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "required": [
                    "sheets",
                    "spreadsheet_id",
                    "title"
                ]
            },
            "StartAgentExperimentRequest": {
                "type": "object",
                "properties": {
                    "confirm_price_change": {
                        "type": "boolean",
                        "default": false,
                        "description": "The person agreed to the higher per-minute price an arm brings. A start whose arm costs more a minute than the agent starts nothing without it and answers 409 price_change_needs_confirmation with the price before and after."
                    }
                }
            },
            "StartInvestigationRequest": {
                "type": "object",
                "properties": {
                    "issue_pattern_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "issue_trace_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                        }
                    },
                    "agent_id": {
                        "type": "integer"
                    },
                    "call_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    "experiment_config": {},
                    "run": {
                        "$ref": "#/components/schemas/RunEnum"
                    }
                },
                "required": [
                    "agent_id",
                    "call_ids",
                    "issue_pattern_id",
                    "issue_trace_ids"
                ]
            },
            "Status06bEnum": {
                "enum": [
                    "provisioning",
                    "active",
                    "failed",
                    "releasing",
                    "released",
                    "draft"
                ],
                "type": "string",
                "description": "* `provisioning` - Provisioning\n* `active` - Active\n* `failed` - Failed\n* `releasing` - Releasing\n* `released` - Released\n* `draft` - Draft"
            },
            "Status365Enum": {
                "enum": [
                    "queued",
                    "fetching",
                    "planning",
                    "ready",
                    "committing",
                    "done",
                    "failed",
                    "discarded"
                ],
                "type": "string",
                "description": "* `queued` - Queued\n* `fetching` - Fetching\n* `planning` - Planning\n* `ready` - Ready\n* `committing` - Committing\n* `done` - Done\n* `failed` - Failed\n* `discarded` - Discarded"
            },
            "Status3f0Enum": {
                "enum": [
                    "draft",
                    "scheduled",
                    "running",
                    "paused",
                    "completed",
                    "cancelled"
                ],
                "type": "string",
                "description": "* `draft` - Draft\n* `scheduled` - Scheduled\n* `running` - Running\n* `paused` - Paused\n* `completed` - Completed\n* `cancelled` - Cancelled"
            },
            "Status494Enum": {
                "enum": [
                    "active",
                    "superseded",
                    "suspended",
                    "revoked"
                ],
                "type": "string",
                "description": "* `active` - Active\n* `superseded` - Superseded by a newer attestation\n* `suspended` - Suspended by ThunderPhone\n* `revoked` - Revoked by ThunderPhone"
            },
            "Status51eEnum": {
                "enum": [
                    "active",
                    "disabled",
                    "failing"
                ],
                "type": "string",
                "description": "* `active` - Active\n* `disabled` - Disabled\n* `failing` - Failing"
            },
            "Status83aEnum": {
                "enum": [
                    "open",
                    "acknowledged",
                    "resolved",
                    "dismissed"
                ],
                "type": "string",
                "description": "* `open` - Open\n* `acknowledged` - Acknowledged\n* `resolved` - Resolved\n* `dismissed` - Dismissed"
            },
            "Status95aEnum": {
                "enum": [
                    "active",
                    "superseded",
                    "withdrawn",
                    "suspended",
                    "revoked"
                ],
                "type": "string",
                "description": "* `active` - Active\n* `superseded` - Superseded by a newer attestation\n* `withdrawn` - Withdrawn by the organization\n* `suspended` - Suspended by ThunderPhone\n* `revoked` - Revoked by ThunderPhone"
            },
            "StatusDe4Enum": {
                "enum": [
                    "pending",
                    "accepted",
                    "declined",
                    "revoked",
                    "expired"
                ],
                "type": "string",
                "description": "* `pending` - Pending\n* `accepted` - Accepted\n* `declined` - Declined\n* `revoked` - Revoked\n* `expired` - Expired"
            },
            "StatusDf2Enum": {
                "enum": [
                    "pending",
                    "processing",
                    "ready",
                    "failed"
                ],
                "type": "string",
                "description": "* `pending` - Pending\n* `processing` - Processing\n* `ready` - Ready\n* `failed` - Failed"
            },
            "StatusE8cEnum": {
                "enum": [
                    "idle",
                    "generating_hypotheses",
                    "awaiting_candidates",
                    "generating_candidates",
                    "searching",
                    "ready",
                    "not_replayable",
                    "not_reproducible",
                    "applied",
                    "dismissed"
                ],
                "type": "string",
                "description": "* `idle` - Idle\n* `generating_hypotheses` - Generating Hypotheses\n* `awaiting_candidates` - Awaiting Candidates\n* `generating_candidates` - Generating Candidates\n* `searching` - Searching\n* `ready` - Ready\n* `not_replayable` - Not Replayable\n* `not_reproducible` - Not Reproducible\n* `applied` - Applied\n* `dismissed` - Dismissed"
            },
            "StormFeedbackModeEnum": {
                "enum": [
                    "none",
                    "acknowledgement",
                    "tick"
                ],
                "type": "string",
                "description": "* `none` - none\n* `acknowledgement` - acknowledgement\n* `tick` - tick"
            },
            "SubmitManualCandidateRequest": {
                "type": "object",
                "properties": {
                    "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "prompt": {
                        "type": "string",
                        "minLength": 1
                    },
                    "rationale": {
                        "type": "string",
                        "default": ""
                    }
                },
                "required": [
                    "label",
                    "prompt"
                ]
            },
            "SuiteCriteriaInputRequest": {
                "type": "object",
                "properties": {
                    "min_pass_rate": {
                        "type": "integer",
                        "maximum": 100,
                        "minimum": 0
                    },
                    "zero_critical_failures": {
                        "type": "boolean"
                    }
                }
            },
            "SuiteInputRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                    },
                    "agent_id": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "scenario_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "maxItems": 50
                    },
                    "criteria": {
                        "$ref": "#/components/schemas/SuiteCriteriaInputRequest"
                    },
                    "schedule": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SuiteScheduleInputRequest"
                            }
                        ],
                        "nullable": true
                    }
                }
            },
            "SuiteScheduleInputRequest": {
                "type": "object",
                "properties": {
                    "enabled": {
                        "type": "boolean",
                        "default": true
                    },
                    "frequency": {
                        "$ref": "#/components/schemas/FrequencyEnum"
                    },
                    "timezone": {
                        "type": "string",
                        "minLength": 1,
                        "default": "UTC",
                        "maxLength": 64
                    },
                    "hour": {
                        "type": "integer",
                        "maximum": 23,
                        "minimum": 0,
                        "default": 0
                    },
                    "minute": {
                        "type": "integer",
                        "maximum": 59,
                        "minimum": 0,
                        "default": 0
                    },
                    "weekday": {
                        "type": "integer",
                        "maximum": 6,
                        "minimum": 0,
                        "default": 0
                    }
                },
                "required": [
                    "frequency"
                ]
            },
            "TalkLink": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string"
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "required": [
                    "expires_at",
                    "url"
                ]
            },
            "TalkLinkCreateRequest": {
                "type": "object",
                "properties": {
                    "variant_id": {
                        "type": "integer",
                        "minimum": 1,
                        "nullable": true,
                        "description": "Talk to one A/B variant of the draft instead of the plain draft."
                    },
                    "language": {
                        "type": "string",
                        "description": "Language code for this conversation; defaults to the agent's primary language.",
                        "maxLength": 16
                    },
                    "expires_in_minutes": {
                        "type": "integer",
                        "maximum": 120,
                        "minimum": 1,
                        "default": 30,
                        "description": "Minutes until the unused link stops working (default 30)."
                    },
                    "note": {
                        "type": "string",
                        "default": "",
                        "description": "Your own label for the link. Never shown on the talk page.",
                        "maxLength": 500
                    }
                }
            },
            "TalkLinkSession": {
                "type": "object",
                "properties": {
                    "call_id": {
                        "type": "integer"
                    },
                    "token": {
                        "type": "string"
                    },
                    "room_name": {
                        "type": "string"
                    },
                    "server_url": {
                        "type": "string"
                    },
                    "agent_name": {
                        "type": "string"
                    }
                },
                "required": [
                    "agent_name",
                    "call_id",
                    "room_name",
                    "server_url",
                    "token"
                ]
            },
            "TalkLinkStatus": {
                "type": "object",
                "properties": {
                    "agent_name": {
                        "type": "string"
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "used": {
                        "type": "boolean"
                    },
                    "recorded": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "agent_name",
                    "expires_at",
                    "recorded",
                    "used"
                ]
            },
            "TargetTypeEnum": {
                "enum": [
                    "agent",
                    "phone_number"
                ],
                "type": "string",
                "description": "* `agent` - Agent\n* `phone_number` - Phone Number"
            },
            "TelephonyConditionRequest": {
                "type": "object",
                "properties": {
                    "voicemail_answer": {
                        "type": "boolean",
                        "default": false
                    }
                }
            },
            "TestConversation": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "agent_id": {
                        "type": "integer"
                    },
                    "split": {
                        "type": "string",
                        "description": "dev or test."
                    },
                    "source": {
                        "type": "string",
                        "description": "production, test_call, simulated, adversarial or manual."
                    },
                    "status": {
                        "type": "string",
                        "description": "active or retired."
                    },
                    "revision_count": {
                        "type": "integer"
                    },
                    "retired_reason": {
                        "type": "string"
                    },
                    "source_call_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "persona": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true
                    },
                    "conversation_started_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "current_revision": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/TestConversationRevisionSummary"
                            }
                        ],
                        "nullable": true
                    },
                    "metadata": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "rows": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        },
                        "description": "The current revision's turns; on the single-conversation endpoint only."
                    },
                    "row_count": {
                        "type": "integer"
                    },
                    "hidden": {
                        "type": "boolean",
                        "description": "True for a test-split conversation read with an API key."
                    },
                    "hidden_reason": {
                        "type": "string"
                    }
                },
                "required": [
                    "agent_id",
                    "id",
                    "revision_count",
                    "source",
                    "split",
                    "status"
                ]
            },
            "TestConversationPage": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "limit": {
                        "type": "integer"
                    },
                    "offset": {
                        "type": "integer"
                    },
                    "next_offset": {
                        "type": "integer",
                        "nullable": true
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TestConversation"
                        }
                    }
                },
                "required": [
                    "count",
                    "limit",
                    "next_offset",
                    "offset",
                    "results"
                ]
            },
            "TestConversationRevision": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "parent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "prompt_revision_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "change_kind": {
                        "type": "string",
                        "description": "created, refreshed, restored or manual."
                    },
                    "change_note": {
                        "type": "string"
                    },
                    "behaviors": {
                        "$ref": "#/components/schemas/TestConversationRevisionBehaviors"
                    },
                    "restored_from": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true,
                        "description": "For a restore: the earlier revision its rows came from (revision_id, number, prompt_revision_id)."
                    },
                    "refresh": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true,
                        "description": "What a refresh recorded: from_prompt_revision_id, to_prompt_revision_id, the out_of_date agent turns, the rewrite, the examples moved, retired and brought back, and a note."
                    },
                    "changed_rows": {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        }
                    },
                    "audio_real_through": {
                        "type": "integer",
                        "nullable": true
                    },
                    "created_by": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "row_count": {
                        "type": "integer"
                    },
                    "diff": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "audio_real_through",
                    "behaviors",
                    "change_kind",
                    "change_note",
                    "changed_rows",
                    "created_at",
                    "created_by",
                    "diff",
                    "id",
                    "number",
                    "parent_id",
                    "prompt_revision_id",
                    "refresh",
                    "restored_from",
                    "row_count"
                ]
            },
            "TestConversationRevisionBehaviors": {
                "type": "object",
                "properties": {
                    "added": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "removed": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "changed": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "reworded": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "required": [
                    "added",
                    "changed",
                    "removed",
                    "reworded"
                ]
            },
            "TestConversationRevisionPage": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "limit": {
                        "type": "integer"
                    },
                    "offset": {
                        "type": "integer"
                    },
                    "next_offset": {
                        "type": "integer",
                        "nullable": true
                    },
                    "conversation": {
                        "$ref": "#/components/schemas/TestConversation"
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TestConversationRevision"
                        }
                    },
                    "hidden": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "conversation",
                    "count",
                    "limit",
                    "next_offset",
                    "offset",
                    "results"
                ]
            },
            "TestConversationRevisionSummary": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "number": {
                        "type": "integer"
                    },
                    "prompt_revision_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "change_kind": {
                        "type": "string"
                    },
                    "row_count": {
                        "type": "integer"
                    },
                    "audio_real_through": {
                        "type": "integer",
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "required": [
                    "audio_real_through",
                    "change_kind",
                    "created_at",
                    "id",
                    "number",
                    "prompt_revision_id",
                    "row_count"
                ]
            },
            "TestScenario": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "agent_id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "title": {
                        "type": "string",
                        "readOnly": true
                    },
                    "scenario_prompt": {
                        "type": "string",
                        "readOnly": true,
                        "description": "Short description of the simulated caller's situation and intent."
                    },
                    "labels": {
                        "readOnly": true,
                        "description": "Freeform pill-style labels, e.g. [\"Edge Case\", \"Billing\"]."
                    },
                    "audio_conditions": {
                        "readOnly": true,
                        "description": "Optional default noise asset and target SNR for this scenario."
                    },
                    "speech_style": {
                        "readOnly": true,
                        "description": "Optional default pace, disfluency, and accent settings."
                    },
                    "caller_behavior": {
                        "readOnly": true,
                        "description": "Optional default silence and DTMF behavior for the simulated caller."
                    },
                    "telephony": {
                        "readOnly": true,
                        "description": "Optional default voicemail-answer simulation settings."
                    },
                    "direction": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DirectionD75Enum"
                            }
                        ],
                        "readOnly": true,
                        "description": "Whether the simulated caller is calling in (inbound) or the agent is calling out (outbound).\n\n* `inbound` - Inbound\n* `outbound` - Outbound"
                    },
                    "source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/TestScenarioSourceEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "prompt_hash": {
                        "type": "string",
                        "readOnly": true,
                        "description": "SHA-256 of the agent prompt at generation time. Empty for manual scenarios."
                    },
                    "source_call_id": {
                        "type": "integer",
                        "nullable": true,
                        "readOnly": true
                    },
                    "source_issue_trace_id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true,
                        "nullable": true
                    },
                    "source_turn_index": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true,
                        "description": "Simplified-transcript turn that produced this production scenario."
                    },
                    "latest_verdict": {
                        "type": "string",
                        "readOnly": true
                    },
                    "is_stale": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "held_out": {
                        "type": "boolean",
                        "description": "Present only for organizations with the agent iteration toolkit: true when a person promoted this test scenario (or the scenario this run ran) from a held-out call, one whose caller is in an agent's test split. An API key or OAuth token gets it as its id (and scenario_id) and held_out only; test runs still run it. People see it in full in the dashboard. Organizations without the toolkit are unaffected."
                    }
                },
                "required": [
                    "agent_id",
                    "audio_conditions",
                    "caller_behavior",
                    "created_at",
                    "direction",
                    "id",
                    "is_stale",
                    "labels",
                    "latest_verdict",
                    "prompt_hash",
                    "scenario_prompt",
                    "source",
                    "source_call_id",
                    "source_issue_trace_id",
                    "source_turn_index",
                    "speech_style",
                    "telephony",
                    "title",
                    "updated_at"
                ]
            },
            "TestScenarioCreateRequest": {
                "type": "object",
                "properties": {
                    "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                    },
                    "scenario_prompt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4000
                    },
                    "labels": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 50
                        },
                        "maxItems": 10
                    },
                    "direction": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DirectionA4bEnum"
                            }
                        ],
                        "default": "inbound"
                    },
                    "audio_conditions": {
                        "$ref": "#/components/schemas/AudioConditionsRequest"
                    },
                    "speech_style": {
                        "$ref": "#/components/schemas/SpeechStyleRequest"
                    },
                    "caller_behavior": {
                        "$ref": "#/components/schemas/CallerBehaviorRequest"
                    },
                    "telephony": {
                        "$ref": "#/components/schemas/TelephonyConditionRequest"
                    }
                },
                "required": [
                    "scenario_prompt",
                    "title"
                ]
            },
            "TestScenarioSourceEnum": {
                "enum": [
                    "ai",
                    "manual",
                    "production",
                    "migration"
                ],
                "type": "string",
                "description": "* `ai` - AI\n* `manual` - Manual\n* `production` - Production\n* `migration` - From another platform"
            },
            "TestSuite": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "name": {
                        "type": "string"
                    },
                    "agent_id": {
                        "type": "integer"
                    },
                    "agent_name": {
                        "type": "string"
                    },
                    "scenario_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        }
                    },
                    "scenarios": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "criteria": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "schedule": {
                        "type": "object",
                        "additionalProperties": {},
                        "nullable": true
                    },
                    "last_green_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "runs": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "agent_id",
                    "agent_name",
                    "created_at",
                    "criteria",
                    "id",
                    "last_green_at",
                    "name",
                    "scenario_ids",
                    "scenarios",
                    "schedule",
                    "updated_at"
                ]
            },
            "ThinkingLevel477Enum": {
                "enum": [
                    "base",
                    "extra"
                ],
                "type": "string",
                "description": "* `base` - Base\n* `extra` - Extra"
            },
            "ToolDefinitionRequest": {
                "type": "object",
                "properties": {
                    "type": {
                        "type": "string",
                        "minLength": 1
                    },
                    "function": {
                        "$ref": "#/components/schemas/FunctionSpecRequest"
                    },
                    "endpoint": {
                        "$ref": "#/components/schemas/ToolEndpointRequest"
                    },
                    "timeout": {
                        "nullable": true
                    },
                    "wait_mode": {
                        "nullable": true,
                        "description": "\"updates\" (default): while the tool runs the agent says it is checking and gives short updates; timeout up to 180 seconds. \"hold\": the agent says one line, then the caller hears hold music until the result; timeout up to 600 seconds, and the endpoint may answer {\"status\": \"pending\", \"request_id\": ...} and deliver the result later with POST /v1/calls/{call_id}/tool-results."
                    },
                    "mcp": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "provider": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "call_start": {
                        "type": "object",
                        "additionalProperties": {},
                        "description": "Run this tool at the start of every phone call, before the greeting: {\"arguments\": {...}}, one value per parameter (every required one included). Strings may use {{caller_number}}, {{caller_number_national}} and {{agent_number}}."
                    },
                    "name": {
                        "type": "string",
                        "minLength": 1
                    },
                    "description": {
                        "type": "string",
                        "minLength": 1
                    },
                    "parameters": {
                        "$ref": "#/components/schemas/ToolParametersRequest"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "nullable": true,
                        "minLength": 1
                    },
                    "headers": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string",
                            "minLength": 1
                        }
                    }
                }
            },
            "ToolEndpointRequest": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "minLength": 1
                    },
                    "method": {
                        "type": "string",
                        "minLength": 1
                    },
                    "headers": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string",
                            "minLength": 1
                        }
                    },
                    "request_format": {
                        "type": "string"
                    }
                },
                "required": [
                    "url"
                ]
            },
            "ToolParametersRequest": {
                "type": "object",
                "properties": {
                    "type": {
                        "type": "string",
                        "minLength": 1,
                        "default": "object"
                    },
                    "properties": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "required": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1
                        }
                    }
                }
            },
            "ToolResultAccepted": {
                "type": "object",
                "properties": {
                    "status": {
                        "$ref": "#/components/schemas/ToolResultAcceptedStatusEnum"
                    }
                },
                "required": [
                    "status"
                ]
            },
            "ToolResultAcceptedStatusEnum": {
                "enum": [
                    "accepted"
                ],
                "type": "string",
                "description": "* `accepted` - accepted"
            },
            "ToolStartLineA57Enum": {
                "enum": [
                    "always",
                    "only_if_slow",
                    "never"
                ],
                "type": "string",
                "description": "* `always` - Always\n* `only_if_slow` - Only if slow\n* `never` - Never"
            },
            "ToolkitCostEstimate": {
                "type": "object",
                "properties": {
                    "total_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "total_usd": {
                        "type": "number",
                        "format": "double"
                    },
                    "largest_reservation_cents": {
                        "type": "number",
                        "format": "double",
                        "description": "The largest single request's upper bound: the job stops with up to this much per worker unspent, so leave about twice it of headroom in max_cost_cents."
                    },
                    "expected_cents": {
                        "type": "number",
                        "format": "double",
                        "nullable": true,
                        "description": "1.5 times what each step averaged in the agent's earlier jobs, for this quote's calls; null without them."
                    },
                    "steps": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "notes": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "calls_selected": {
                        "type": "integer"
                    },
                    "conversations": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "integer"
                        },
                        "description": "A refresh quote: how the selected conversations stand against the current prompt."
                    }
                },
                "required": [
                    "largest_reservation_cents",
                    "notes",
                    "steps",
                    "total_cents",
                    "total_usd"
                ]
            },
            "TopUpRequest": {
                "type": "object",
                "properties": {
                    "amount_cents": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "payment_method_id": {
                        "type": "string"
                    },
                    "idempotency_key": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                    }
                },
                "required": [
                    "amount_cents"
                ]
            },
            "TopUpResponse": {
                "type": "object",
                "properties": {
                    "payment_intent_id": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "client_secret": {
                        "type": "string",
                        "nullable": true
                    }
                },
                "required": [
                    "client_secret",
                    "payment_intent_id",
                    "status"
                ]
            },
            "TranscriptEntry": {
                "type": "object",
                "properties": {
                    "role": {
                        "type": "string"
                    },
                    "content": {
                        "type": "string"
                    },
                    "start_ms": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "end_ms": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "positions": {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        }
                    },
                    "ttfa_ms": {},
                    "caller_audio_refs": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "audio_span_refs": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                },
                "required": [
                    "content",
                    "role"
                ]
            },
            "TransferBridgeKindEnum": {
                "enum": [
                    "cold_fallback",
                    "warm"
                ],
                "type": "string",
                "description": "* `cold_fallback` - Cold transfer bridged after a refused REFER\n* `warm` - Warm transfer bridged after the AI left"
            },
            "TransferDestination": {
                "type": "object",
                "description": "A transfer number: a name the agent's prompt uses and the number it stands for.\n\nOnce transfer directories are enforced, an agent transfers only to its\ntransfer numbers, chosen by name; with none, the agent can't transfer\ncalls. When to transfer is written in the prompt.",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "How the prompt refers to this number, e.g. \"transfer billing questions to Billing\". Unique per agent, ignoring case. When to transfer is written in the prompt.",
                        "maxLength": 60
                    },
                    "number": {
                        "type": "string",
                        "description": "A phone number (stored in E.164; numbers without a country code are read as US), exactly one {{variable}} filled from the call's variables when the call starts, or a sip: or sips: address (at most 255 characters, never a variable). A SIP address only works on calls to a SIP address and on numbers connected through your own SIP trunk (a manual SIP connection). Empty for a return entry; leave it out when you write one.",
                        "maxLength": 255
                    },
                    "action": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/TransferDestinationActionEnum"
                            }
                        ],
                        "description": "\"return\" hands the call back to the contact center it came from: the agent says goodbye and hangs up, and headers go on the SIP BYE. A return entry has no number. It only works on calls to a SIP address and on numbers connected through your own SIP trunk (a manual SIP connection); other calls don't offer it. Left out for a phone number or SIP address.\n\n* `return` - return"
                    },
                    "headers": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string",
                            "maxLength": 256
                        },
                        "description": "Optional SIP headers sent with the transfer (on the SIP REFER of a cold transfer), as {name: value}. Up to 10; names start with X- (not X-TP-) or are User-to-User; values are at most 256 bytes and can use {{variables}}, filled when the call starts (a missing one is left empty). On a return entry they go on the SIP BYE instead, and only X-RouteType, X-RouteValue, X-RouteReason, X-CustomMetaData and User-to-User can be set. On a SIP address or return entry, {{handoff_summary}}, {{handoff_intent}} and {{handoff_id}} are filled at the transfer with what the agent tells the contact center (cut to 256 bytes); GET /v1/calls/handoff looks the call up by that id."
                    },
                    "headers_in_uri": {
                        "type": "boolean",
                        "description": "SIP addresses only. true sends the headers inside the transfer's Refer-To address (sip:queue@host?User-to-User=...&X-Call-ID=...) instead of as separate headers on the SIP REFER. Use it for contact centers that read the Refer-To, such as Twilio, Genesys Cloud and Talkdesk. The whole address is kept to 254 characters: User-to-User goes first and is cut to fit rather than left out, then the other headers in alphabetical order; one that doesn't fit is left out whole, and the transfer still happens. Can't be combined with a ?User-to-User= written into the address. Left out when false."
                    },
                    "uui_encoding": {
                        "nullable": true,
                        "description": "SIP addresses and return entries. \"hex\" sends the User-to-User header hex-encoded with ;encoding=hex, the form most contact centers expect: write the value as plain text and it is encoded at the transfer, after {{variables}} are filled. Text that would make the encoded value longer than 256 bytes is cut first. Left out to send User-to-User as written.\n\n* `hex` - hex",
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/TransferDestinationUuiEncodingEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "warm_only": {
                        "type": "boolean",
                        "description": "Phone numbers and variables only. true makes every transfer to this number a warm transfer, even when the agent asks for a cold one, and the agent is told so. If the person or line here doesn't take a warm transfer (no answer, busy, voicemail, declined), the agent doesn't try this number again on that call and offers the caller other next steps, such as taking a message; a warm call that fails on our side may be retried, cold. Warm transfers need a number that can place outbound calls; on a call that can't (a ThunderPhone number without outbound calling, a browser or widget call, a full-duplex agent) the transfer is cold, as is the silence final action's. Left out when false."
                    },
                    "answerer": {
                        "type": "string",
                        "nullable": true,
                        "description": "Phone numbers and variables only. The person who should pick up, e.g. \"Matthew Ray\". With the agent's Ask first style (warm_transfer_style ask_first), a warm transfer here first asks \"Hi, is this Matthew Ray?\" and says nothing about the caller until they confirm; then it briefs them and asks whether they can take the call. If someone else answers, the agent asks for this person and, if they aren't available, ends the side-call and tells the caller. Ignored by the other styles. Up to 60 characters, no line breaks or braces. \"\" or null removes it; left out when unset.",
                        "maxLength": 60
                    },
                    "platform_ok": {
                        "type": "boolean",
                        "readOnly": true,
                        "nullable": true,
                        "description": "Read-only; ignored on write. Whether calls on ThunderPhone numbers can transfer here (a US number that is not premium-rate or shared-cost). Other numbers only work on calls through your own carrier. Null for a {{variable}} entry, which is checked on each call."
                    }
                },
                "required": [
                    "name",
                    "number",
                    "platform_ok"
                ]
            },
            "TransferDestinationActionEnum": {
                "enum": [
                    "return"
                ],
                "type": "string",
                "description": "* `return` - return"
            },
            "TransferDestinationRequest": {
                "type": "object",
                "description": "A transfer number: a name the agent's prompt uses and the number it stands for.\n\nOnce transfer directories are enforced, an agent transfers only to its\ntransfer numbers, chosen by name; with none, the agent can't transfer\ncalls. When to transfer is written in the prompt.",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "description": "How the prompt refers to this number, e.g. \"transfer billing questions to Billing\". Unique per agent, ignoring case. When to transfer is written in the prompt.",
                        "maxLength": 60
                    },
                    "number": {
                        "type": "string",
                        "description": "A phone number (stored in E.164; numbers without a country code are read as US), exactly one {{variable}} filled from the call's variables when the call starts, or a sip: or sips: address (at most 255 characters, never a variable). A SIP address only works on calls to a SIP address and on numbers connected through your own SIP trunk (a manual SIP connection). Empty for a return entry; leave it out when you write one.",
                        "maxLength": 255
                    },
                    "action": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/TransferDestinationActionEnum"
                            }
                        ],
                        "description": "\"return\" hands the call back to the contact center it came from: the agent says goodbye and hangs up, and headers go on the SIP BYE. A return entry has no number. It only works on calls to a SIP address and on numbers connected through your own SIP trunk (a manual SIP connection); other calls don't offer it. Left out for a phone number or SIP address.\n\n* `return` - return"
                    },
                    "headers": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string",
                            "maxLength": 256
                        },
                        "description": "Optional SIP headers sent with the transfer (on the SIP REFER of a cold transfer), as {name: value}. Up to 10; names start with X- (not X-TP-) or are User-to-User; values are at most 256 bytes and can use {{variables}}, filled when the call starts (a missing one is left empty). On a return entry they go on the SIP BYE instead, and only X-RouteType, X-RouteValue, X-RouteReason, X-CustomMetaData and User-to-User can be set. On a SIP address or return entry, {{handoff_summary}}, {{handoff_intent}} and {{handoff_id}} are filled at the transfer with what the agent tells the contact center (cut to 256 bytes); GET /v1/calls/handoff looks the call up by that id."
                    },
                    "headers_in_uri": {
                        "type": "boolean",
                        "description": "SIP addresses only. true sends the headers inside the transfer's Refer-To address (sip:queue@host?User-to-User=...&X-Call-ID=...) instead of as separate headers on the SIP REFER. Use it for contact centers that read the Refer-To, such as Twilio, Genesys Cloud and Talkdesk. The whole address is kept to 254 characters: User-to-User goes first and is cut to fit rather than left out, then the other headers in alphabetical order; one that doesn't fit is left out whole, and the transfer still happens. Can't be combined with a ?User-to-User= written into the address. Left out when false."
                    },
                    "uui_encoding": {
                        "nullable": true,
                        "description": "SIP addresses and return entries. \"hex\" sends the User-to-User header hex-encoded with ;encoding=hex, the form most contact centers expect: write the value as plain text and it is encoded at the transfer, after {{variables}} are filled. Text that would make the encoded value longer than 256 bytes is cut first. Left out to send User-to-User as written.\n\n* `hex` - hex",
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/TransferDestinationUuiEncodingEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "warm_only": {
                        "type": "boolean",
                        "description": "Phone numbers and variables only. true makes every transfer to this number a warm transfer, even when the agent asks for a cold one, and the agent is told so. If the person or line here doesn't take a warm transfer (no answer, busy, voicemail, declined), the agent doesn't try this number again on that call and offers the caller other next steps, such as taking a message; a warm call that fails on our side may be retried, cold. Warm transfers need a number that can place outbound calls; on a call that can't (a ThunderPhone number without outbound calling, a browser or widget call, a full-duplex agent) the transfer is cold, as is the silence final action's. Left out when false."
                    },
                    "answerer": {
                        "type": "string",
                        "nullable": true,
                        "description": "Phone numbers and variables only. The person who should pick up, e.g. \"Matthew Ray\". With the agent's Ask first style (warm_transfer_style ask_first), a warm transfer here first asks \"Hi, is this Matthew Ray?\" and says nothing about the caller until they confirm; then it briefs them and asks whether they can take the call. If someone else answers, the agent asks for this person and, if they aren't available, ends the side-call and tells the caller. Ignored by the other styles. Up to 60 characters, no line breaks or braces. \"\" or null removes it; left out when unset.",
                        "maxLength": 60
                    }
                },
                "required": [
                    "name",
                    "number"
                ]
            },
            "TransferDestinationUuiEncodingEnum": {
                "enum": [
                    "hex"
                ],
                "type": "string",
                "description": "* `hex` - hex"
            },
            "TransferOutcomeEnum": {
                "enum": [
                    "refer_accepted",
                    "bridged",
                    "bridge_unanswered",
                    "failed"
                ],
                "type": "string",
                "description": "* `refer_accepted` - Carrier accepted the transfer\n* `bridged` - Bridged by ThunderPhone\n* `bridge_unanswered` - Bridge not answered\n* `failed` - Transfer failed"
            },
            "TranslatePromptRequestRequest": {
                "type": "object",
                "properties": {
                    "prompt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100000
                    },
                    "target_locale": {
                        "type": "string"
                    }
                },
                "required": [
                    "prompt"
                ]
            },
            "TranslatedPrompt": {
                "type": "object",
                "properties": {
                    "translated_prompt": {
                        "type": "string"
                    },
                    "source_language_code": {
                        "type": "string"
                    },
                    "source_language_name": {
                        "type": "string"
                    },
                    "target_language_code": {
                        "type": "string"
                    },
                    "target_language_name": {
                        "type": "string"
                    },
                    "provider": {
                        "type": "string"
                    },
                    "used_fallback": {
                        "type": "boolean"
                    },
                    "warning": {
                        "type": "string"
                    }
                },
                "required": [
                    "provider",
                    "source_language_code",
                    "source_language_name",
                    "target_language_code",
                    "target_language_name",
                    "translated_prompt",
                    "used_fallback",
                    "warning"
                ]
            },
            "TwilioBusinessProfileResponse": {
                "type": "object",
                "properties": {
                    "connection_id": {
                        "type": "integer"
                    },
                    "business_profile": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/BusinessProfileOut"
                            }
                        ],
                        "nullable": true
                    },
                    "console_url": {
                        "type": "string"
                    }
                },
                "required": [
                    "business_profile",
                    "connection_id",
                    "console_url"
                ]
            },
            "TwilioSubaccount": {
                "type": "object",
                "properties": {
                    "sid": {
                        "type": "string"
                    },
                    "friendly_name": {
                        "type": "string"
                    },
                    "already_connected": {
                        "type": "boolean"
                    },
                    "connection_id": {
                        "type": "integer",
                        "nullable": true
                    }
                },
                "required": [
                    "already_connected",
                    "connection_id",
                    "friendly_name",
                    "sid"
                ]
            },
            "TwilioSubaccountConnectResult": {
                "type": "object",
                "properties": {
                    "sid": {
                        "type": "string"
                    },
                    "friendly_name": {
                        "type": "string",
                        "nullable": true
                    },
                    "status": {
                        "$ref": "#/components/schemas/TwilioSubaccountConnectResultStatusEnum"
                    },
                    "connection": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/VoipConnection"
                            }
                        ],
                        "nullable": true
                    },
                    "error": {
                        "type": "string",
                        "nullable": true
                    }
                },
                "required": [
                    "connection",
                    "error",
                    "friendly_name",
                    "sid",
                    "status"
                ]
            },
            "TwilioSubaccountConnectResultStatusEnum": {
                "enum": [
                    "created",
                    "skipped",
                    "failed"
                ],
                "type": "string",
                "description": "* `created` - created\n* `skipped` - skipped\n* `failed` - failed"
            },
            "TwilioSubaccountConnectResults": {
                "type": "object",
                "properties": {
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TwilioSubaccountConnectResult"
                        }
                    }
                },
                "required": [
                    "results"
                ]
            },
            "TwilioSubaccountDiscovery": {
                "type": "object",
                "properties": {
                    "discovery_id": {
                        "type": "string"
                    },
                    "parent": {
                        "$ref": "#/components/schemas/TwilioSubaccountParent"
                    },
                    "subaccounts": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TwilioSubaccount"
                        }
                    }
                },
                "required": [
                    "discovery_id",
                    "parent",
                    "subaccounts"
                ]
            },
            "TwilioSubaccountParent": {
                "type": "object",
                "properties": {
                    "sid": {
                        "type": "string"
                    },
                    "friendly_name": {
                        "type": "string"
                    }
                },
                "required": [
                    "friendly_name",
                    "sid"
                ]
            },
            "TypingSoundD48Enum": {
                "enum": [
                    "mechanical",
                    "desktop",
                    "laptop",
                    "keys_and_mouse",
                    "office",
                    "quiet_room"
                ],
                "type": "string",
                "description": "* `mechanical` - Mechanical keyboard\n* `desktop` - Desktop keyboard\n* `laptop` - Laptop\n* `keys_and_mouse` - Keyboard and mouse\n* `office` - Office keyboard\n* `quiet_room` - Quiet room"
            },
            "UnavailableReasonEnum": {
                "enum": [
                    "phi"
                ],
                "type": "string",
                "description": "* `phi` - phi"
            },
            "UpdateInvestigationStatusEnum": {
                "enum": [
                    "dismissed"
                ],
                "type": "string",
                "description": "* `dismissed` - dismissed"
            },
            "UrlDocumentRequest": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "minLength": 1
                    },
                    "name": {
                        "type": "string",
                        "nullable": true,
                        "minLength": 1
                    }
                },
                "required": [
                    "url"
                ]
            },
            "UserOrg": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "role": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "call_recording_enabled": {
                        "type": "boolean"
                    },
                    "ai_live_processing_disclosure_enabled": {
                        "type": "boolean",
                        "description": "Play the AI/live-processing disclosure on recording-off calls. Recording-on calls are unaffected."
                    },
                    "phi_processing": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/PhiProcessingEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "baa_status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/BaaStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "bolt_pipeline": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/BoltPipelineEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "timezone": {
                        "type": "string",
                        "maxLength": 64
                    },
                    "reporting_timezone": {
                        "type": "string",
                        "readOnly": true
                    },
                    "business_hours": {},
                    "excluded_numbers": {},
                    "default_outcome_labels": {
                        "nullable": true
                    },
                    "status_display": {
                        "nullable": true
                    },
                    "attention_reasons_off": {},
                    "summary_language": {
                        "type": "string",
                        "maxLength": 16
                    },
                    "callback_context_details_enabled": {
                        "type": "boolean"
                    },
                    "gdpr_applies": {
                        "type": "boolean"
                    },
                    "blocked_call_states": {},
                    "max_concurrent_calls": {
                        "type": "integer",
                        "readOnly": true,
                        "description": "Calls in progress at once across every call source (inbound, API, MCP, campaigns, realtime, widget and test calls). Over the limit, new calls get 429 and inbound calls are refused."
                    },
                    "min_seconds_between_calls_to_same_number": {
                        "type": "integer",
                        "readOnly": true,
                        "description": "Minimum seconds between outbound calls from this organization to the same number. 0 turns the check off."
                    },
                    "new_agent_max_call_duration_seconds": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true,
                        "description": "Max call duration (seconds) for newly created agents. Null means no per-agent limit."
                    },
                    "staff_global": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "zeus_admin_requests": {
                        "type": "boolean",
                        "readOnly": true,
                        "default": false
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "baa_status",
                    "bolt_pipeline",
                    "created_at",
                    "id",
                    "max_concurrent_calls",
                    "min_seconds_between_calls_to_same_number",
                    "name",
                    "new_agent_max_call_duration_seconds",
                    "phi_processing",
                    "role",
                    "updated_at"
                ]
            },
            "ValidationExample": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "agent_id": {
                        "type": "integer"
                    },
                    "kind": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "labels": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "expectation": {
                        "type": "string"
                    },
                    "accepted_responses": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "original_response": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "target_turn_index": {
                        "type": "integer"
                    },
                    "source_call_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "source_issue_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "prompt_hash": {
                        "type": "string"
                    },
                    "is_stale_prompt": {
                        "type": "boolean"
                    },
                    "audio_span_indices": {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        }
                    },
                    "expectation_proposal_error": {
                        "type": "string",
                        "nullable": true
                    },
                    "last_verdict": {
                        "type": "string",
                        "nullable": true
                    },
                    "last_run_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "last_reply": {
                        "type": "string",
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "context": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "accepted_responses",
                    "agent_id",
                    "audio_span_indices",
                    "created_at",
                    "expectation",
                    "expectation_proposal_error",
                    "id",
                    "is_stale_prompt",
                    "kind",
                    "labels",
                    "last_reply",
                    "last_run_id",
                    "last_verdict",
                    "original_response",
                    "prompt_hash",
                    "source_call_id",
                    "source_issue_id",
                    "status",
                    "target_turn_index",
                    "updated_at"
                ]
            },
            "ValidationExampleUpdateStatusEnum": {
                "enum": [
                    "pending_review",
                    "active",
                    "archived"
                ],
                "type": "string",
                "description": "* `pending_review` - pending_review\n* `active` - active\n* `archived` - archived"
            },
            "ValidationExamples": {
                "type": "object",
                "properties": {
                    "examples": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ValidationExample"
                        }
                    }
                },
                "required": [
                    "examples"
                ]
            },
            "ValidationReplayResult": {
                "type": "object",
                "properties": {
                    "replayed_output": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "replay_metadata": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "raw_prompt_hash": {
                        "type": "string"
                    },
                    "cached": {
                        "type": "boolean"
                    },
                    "replay_cache_key": {
                        "type": "string"
                    }
                },
                "required": [
                    "cached",
                    "raw_prompt_hash",
                    "replay_cache_key",
                    "replay_metadata",
                    "replayed_output"
                ]
            },
            "ValidationRun": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "agent_id": {
                        "type": "integer"
                    },
                    "config_source": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "prompt_hash": {
                        "type": "string"
                    },
                    "pass_count": {
                        "type": "integer"
                    },
                    "warn_count": {
                        "type": "integer"
                    },
                    "fail_count": {
                        "type": "integer"
                    },
                    "skipped_count": {
                        "type": "integer"
                    },
                    "total_count": {
                        "type": "integer"
                    },
                    "pass_rate": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    },
                    "regressions": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "estimated_cost_cents": {
                        "type": "number",
                        "format": "double"
                    },
                    "error_message": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "started_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "completed_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "triggered_by_name": {
                        "type": "string",
                        "nullable": true
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "agent_id",
                    "completed_at",
                    "config_source",
                    "created_at",
                    "error_message",
                    "estimated_cost_cents",
                    "fail_count",
                    "id",
                    "pass_count",
                    "pass_rate",
                    "prompt_hash",
                    "regressions",
                    "skipped_count",
                    "started_at",
                    "status",
                    "total_count",
                    "triggered_by_name",
                    "warn_count"
                ]
            },
            "ValidationRunRequestRequest": {
                "type": "object",
                "properties": {
                    "config_source": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ConfigSourceEnum"
                            }
                        ],
                        "default": "draft"
                    }
                }
            },
            "ValidationRuns": {
                "type": "object",
                "properties": {
                    "runs": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ValidationRun"
                        }
                    }
                },
                "required": [
                    "runs"
                ]
            },
            "ValidationSets": {
                "type": "object",
                "properties": {
                    "agents": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "agents"
                ]
            },
            "ValidationStatus": {
                "type": "object",
                "properties": {
                    "active_example_count": {
                        "type": "integer"
                    },
                    "latest_run": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ValidationRun"
                            }
                        ],
                        "nullable": true
                    },
                    "latest_run_matches_draft": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "active_example_count",
                    "latest_run",
                    "latest_run_matches_draft"
                ]
            },
            "ValidationStatusC53Enum": {
                "enum": [
                    "untested",
                    "validated",
                    "error"
                ],
                "type": "string",
                "description": "* `untested` - Untested\n* `validated` - Validated\n* `error` - Error"
            },
            "VariantStats": {
                "type": "object",
                "properties": {
                    "variant_id": {
                        "type": "integer"
                    },
                    "label": {
                        "type": "string"
                    },
                    "is_control": {
                        "type": "boolean"
                    },
                    "calls": {
                        "type": "integer"
                    },
                    "success_rate": {
                        "type": "number",
                        "format": "double",
                        "nullable": true
                    },
                    "avg_duration_seconds": {
                        "type": "integer",
                        "nullable": true
                    }
                },
                "required": [
                    "avg_duration_seconds",
                    "calls",
                    "is_control",
                    "label",
                    "success_rate",
                    "variant_id"
                ]
            },
            "VerificationEnum": {
                "enum": [
                    "verified",
                    "unavailable"
                ],
                "type": "string",
                "description": "* `verified` - Verified\n* `unavailable` - Unavailable"
            },
            "VersionPage": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer"
                    },
                    "results": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    }
                },
                "required": [
                    "count",
                    "results"
                ]
            },
            "VoiceCatalog": {
                "type": "object",
                "properties": {
                    "voices": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "languages": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": {}
                        }
                    },
                    "elevenlabs": {
                        "$ref": "#/components/schemas/ElevenLabsVoiceCatalog"
                    }
                },
                "required": [
                    "elevenlabs",
                    "languages",
                    "voices"
                ]
            },
            "VoiceCloneRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                    },
                    "language": {
                        "type": "string",
                        "minLength": 1
                    },
                    "audio": {
                        "type": "string",
                        "format": "binary"
                    },
                    "consent": {
                        "type": "boolean",
                        "description": "Must be true."
                    },
                    "gender": {
                        "nullable": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/GenderEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "agent_id": {
                        "type": "integer",
                        "nullable": true,
                        "description": "The agent the voice is made for, one of your organization's. It only records which agent; set the agent's voice separately."
                    }
                },
                "required": [
                    "audio",
                    "consent",
                    "language",
                    "name"
                ]
            },
            "VoiceInUse": {
                "type": "object",
                "description": "409 from deleting a custom voice an agent still speaks with, live or in a draft (voices.services\n.agents_using_voice): a call set up with a deleted voice fails, so those agents need another voice first.",
                "properties": {
                    "code": {
                        "type": "string",
                        "description": "voice_in_use"
                    },
                    "detail": {
                        "type": "string",
                        "description": "A sentence naming the agents and where each uses the voice."
                    },
                    "agents": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/VoiceInUseAgent"
                        }
                    }
                },
                "required": [
                    "agents",
                    "code",
                    "detail"
                ]
            },
            "VoiceInUseAgent": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string"
                    },
                    "where": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Where it speaks with the voice: main voice, \"Spanish voice\", step \"Intake\" (each with \" in the draft\" when only the draft names it), A/B variant \"B\"."
                    }
                },
                "required": [
                    "id",
                    "name",
                    "where"
                ]
            },
            "VoiceIntegrityRequest": {
                "type": "object",
                "properties": {
                    "use_case": {
                        "$ref": "#/components/schemas/VoiceIntegrityUseCaseEnum"
                    },
                    "employee_count": {
                        "type": "integer",
                        "maximum": 10000000,
                        "minimum": 1
                    },
                    "daily_call_volume": {
                        "type": "integer",
                        "maximum": 100000000,
                        "minimum": 1
                    }
                },
                "required": [
                    "daily_call_volume",
                    "employee_count",
                    "use_case"
                ]
            },
            "VoiceIntegrityUseCaseEnum": {
                "enum": [
                    "Identify & Verification",
                    "Asset Management",
                    "Lead Generation",
                    "Intelligent Routing",
                    "Appointment Scheduling",
                    "Customer Support",
                    "Self-Service",
                    "Automated Support",
                    "Appointment Reminders",
                    "Employee Notifications",
                    "Delivery Notifications",
                    "Emergency Notifications",
                    "Contactless Delivery",
                    "Order Notifications",
                    "Service Alerts",
                    "Purchase Confirmation",
                    "Mass Alerts",
                    "Fraud Alerts",
                    "Contact Tracing",
                    "Lead Management",
                    "Lead Nurturing",
                    "Telemarketing",
                    "Marketing Events",
                    "Rewards Program",
                    "Lead Alerts",
                    "Lead Distribution",
                    "Abandoned Cart",
                    "Call Tracking",
                    "Outbound Dialer",
                    "Click to Call",
                    "Phone System",
                    "Meetings/Collaboration",
                    "Telehealth",
                    "Distance Learning",
                    "Shift Management",
                    "Field Notifications",
                    "Dating/Social",
                    "Remote appointments",
                    "Group Messaging",
                    "Exam Proctoring",
                    "Tutoring",
                    "Therapy (Individual+Group)",
                    "Pharmacy",
                    "First Responder",
                    "Survey/Research"
                ],
                "type": "string",
                "description": "* `Identify & Verification` - Identify & Verification\n* `Asset Management` - Asset Management\n* `Lead Generation` - Lead Generation\n* `Intelligent Routing` - Intelligent Routing\n* `Appointment Scheduling` - Appointment Scheduling\n* `Customer Support` - Customer Support\n* `Self-Service` - Self-Service\n* `Automated Support` - Automated Support\n* `Appointment Reminders` - Appointment Reminders\n* `Employee Notifications` - Employee Notifications\n* `Delivery Notifications` - Delivery Notifications\n* `Emergency Notifications` - Emergency Notifications\n* `Contactless Delivery` - Contactless Delivery\n* `Order Notifications` - Order Notifications\n* `Service Alerts` - Service Alerts\n* `Purchase Confirmation` - Purchase Confirmation\n* `Mass Alerts` - Mass Alerts\n* `Fraud Alerts` - Fraud Alerts\n* `Contact Tracing` - Contact Tracing\n* `Lead Management` - Lead Management\n* `Lead Nurturing` - Lead Nurturing\n* `Telemarketing` - Telemarketing\n* `Marketing Events` - Marketing Events\n* `Rewards Program` - Rewards Program\n* `Lead Alerts` - Lead Alerts\n* `Lead Distribution` - Lead Distribution\n* `Abandoned Cart` - Abandoned Cart\n* `Call Tracking` - Call Tracking\n* `Outbound Dialer` - Outbound Dialer\n* `Click to Call` - Click to Call\n* `Phone System` - Phone System\n* `Meetings/Collaboration` - Meetings/Collaboration\n* `Telehealth` - Telehealth\n* `Distance Learning` - Distance Learning\n* `Shift Management` - Shift Management\n* `Field Notifications` - Field Notifications\n* `Dating/Social` - Dating/Social\n* `Remote appointments` - Remote appointments\n* `Group Messaging` - Group Messaging\n* `Exam Proctoring` - Exam Proctoring\n* `Tutoring` - Tutoring\n* `Therapy (Individual+Group)` - Therapy (Individual+Group)\n* `Pharmacy` - Pharmacy\n* `First Responder` - First Responder\n* `Survey/Research` - Survey/Research"
            },
            "VoiceLibraryPage": {
                "type": "object",
                "properties": {
                    "voices": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/LibraryVoice"
                        }
                    },
                    "total": {
                        "type": "integer"
                    },
                    "offset": {
                        "type": "integer"
                    },
                    "limit": {
                        "type": "integer"
                    }
                },
                "required": [
                    "limit",
                    "offset",
                    "total",
                    "voices"
                ]
            },
            "VoiceMatrixRequest": {
                "type": "object",
                "properties": {
                    "audio_conditions": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AudioConditionsRequest"
                        }
                    },
                    "speech_style": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SpeechStyleRequest"
                        }
                    },
                    "caller_behavior": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CallerBehaviorRequest"
                        }
                    },
                    "telephony": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TelephonyConditionRequest"
                        }
                    }
                }
            },
            "VoicePolicy": {
                "type": "object",
                "properties": {
                    "cloning_enabled": {
                        "type": "boolean"
                    },
                    "max_custom_voices": {
                        "type": "integer"
                    },
                    "used": {
                        "type": "integer"
                    },
                    "custom_voice_surcharge_cents": {
                        "type": "integer"
                    }
                },
                "required": [
                    "cloning_enabled",
                    "custom_voice_surcharge_cents",
                    "max_custom_voices",
                    "used"
                ]
            },
            "VoicePreview": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    },
                    "cached": {
                        "type": "boolean"
                    },
                    "charged_cents": {
                        "type": "integer"
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "required": [
                    "cached",
                    "charged_cents",
                    "expires_at",
                    "id",
                    "url"
                ]
            },
            "VoicePreviewRequest": {
                "type": "object",
                "properties": {
                    "voice": {
                        "type": "string",
                        "minLength": 1
                    },
                    "language": {
                        "type": "string",
                        "minLength": 1
                    },
                    "text": {
                        "type": "string"
                    }
                },
                "required": [
                    "language",
                    "voice"
                ]
            },
            "VoiceQuotaKindEnum": {
                "enum": [
                    "custom_voices",
                    "phone_numbers",
                    "outbound_platform_numbers"
                ],
                "type": "string",
                "description": "* `custom_voices` - custom_voices\n* `phone_numbers` - phone_numbers\n* `outbound_platform_numbers` - outbound_platform_numbers"
            },
            "VoiceQuotaRequest": {
                "type": "object",
                "properties": {
                    "kind": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/VoiceQuotaKindEnum"
                            }
                        ],
                        "default": "custom_voices"
                    },
                    "requested_count": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "note": {
                        "type": "string",
                        "maxLength": 2000
                    },
                    "use_case": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4000
                    },
                    "expected_daily_calls": {
                        "type": "integer",
                        "maximum": 1000000,
                        "minimum": 1
                    },
                    "consent_source": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4000
                    },
                    "website": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                    }
                }
            },
            "VoiceQuotaResponse": {
                "type": "object",
                "properties": {
                    "kind": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "requested_count": {
                        "type": "integer"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "resolved_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    }
                },
                "required": [
                    "created_at",
                    "kind",
                    "requested_count",
                    "status"
                ]
            },
            "VoicemailAction89dEnum": {
                "enum": [
                    "prompt",
                    "hangup",
                    "message"
                ],
                "type": "string",
                "description": "* `prompt` - Let the agent decide\n* `hangup` - Hang up\n* `message` - Leave a message"
            },
            "VoipConnection": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "provider": {
                        "$ref": "#/components/schemas/ProviderEnum"
                    },
                    "status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/VoipConnectionStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "setup_method": {
                        "$ref": "#/components/schemas/SetupMethodEnum"
                    },
                    "inferred_name": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "credentials": {
                        "type": "object",
                        "additionalProperties": {},
                        "readOnly": true
                    },
                    "sip_config": {
                        "type": "object",
                        "additionalProperties": {},
                        "readOnly": true
                    },
                    "test_result": {
                        "readOnly": true
                    },
                    "last_tested_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "numbers_imported": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "numbers_pending_verification": {
                        "type": "integer",
                        "description": "Numbers demoted by a routing change and not yet re-proven.",
                        "readOnly": true
                    },
                    "provisioning_supported": {
                        "type": "boolean",
                        "readOnly": true
                    },
                    "provisioning_message": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "transfer_refused_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "transfer_enabled_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true
                    },
                    "relay": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/VoipRelayStatus"
                            }
                        ],
                        "nullable": true,
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "created_at",
                    "credentials",
                    "id",
                    "inferred_name",
                    "last_tested_at",
                    "name",
                    "numbers_imported",
                    "numbers_pending_verification",
                    "provider",
                    "provisioning_message",
                    "provisioning_supported",
                    "relay",
                    "sip_config",
                    "status",
                    "test_result",
                    "transfer_enabled_at",
                    "transfer_refused_at",
                    "updated_at"
                ]
            },
            "VoipConnectionCreateRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "provider": {
                        "$ref": "#/components/schemas/ProviderEnum"
                    },
                    "setup_method": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SetupMethodEnum"
                            }
                        ],
                        "default": "api_key"
                    },
                    "credentials": {},
                    "external_account_handle": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Instead of credentials: the handle (ext_...) of a carrier account already saved with Zeus. ThunderPhone reads its key on the server; the key is never returned.",
                        "maxLength": 64
                    },
                    "sip_config": {},
                    "verification_evidence_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "enable_transfers": {
                        "type": "boolean",
                        "default": false,
                        "description": "Twilio only: also turn call transfers on for the connection's SIP trunk (TransferMode=enable-all), as POST /voip-connections/{id}/enable-transfers does. A failure does not fail the create; it is reported in test_result.transfer_enable_error."
                    }
                },
                "required": [
                    "provider",
                    "verification_evidence_id"
                ]
            },
            "VoipConnectionStatusEnum": {
                "enum": [
                    "connected",
                    "error",
                    "pending",
                    "testing",
                    "draft"
                ],
                "type": "string",
                "description": "* `connected` - Connected\n* `error` - Error\n* `pending` - Pending\n* `testing` - Testing\n* `draft` - Draft"
            },
            "VoipConnectionSuggestNameRequest": {
                "type": "object",
                "properties": {
                    "connection_id": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "provider": {
                        "$ref": "#/components/schemas/ProviderEnum"
                    },
                    "credentials": {},
                    "external_account_handle": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Instead of credentials: the handle (ext_...) of a carrier account already saved with Zeus. ThunderPhone reads its key on the server; the key is never returned.",
                        "maxLength": 64
                    }
                }
            },
            "VoipConnectionTestRequest": {
                "type": "object",
                "properties": {
                    "connection_id": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "provider": {
                        "$ref": "#/components/schemas/ProviderEnum"
                    },
                    "credentials": {},
                    "external_account_handle": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Instead of credentials: the handle (ext_...) of a carrier account already saved with Zeus. ThunderPhone reads its key on the server; the key is never returned.",
                        "maxLength": 64
                    },
                    "sip_config": {},
                    "target_number": {
                        "type": "string",
                        "maxLength": 32
                    }
                },
                "required": [
                    "provider"
                ]
            },
            "VoipInboundStatusEnum": {
                "enum": [
                    "untested",
                    "passed",
                    "failed"
                ],
                "type": "string",
                "description": "* `untested` - untested\n* `passed` - passed\n* `failed` - failed"
            },
            "VoipInboundTestMethodEnum": {
                "enum": [
                    "loopback",
                    "platform"
                ],
                "type": "string",
                "description": "* `loopback` - loopback\n* `platform` - platform"
            },
            "VoipNumberImportRequest": {
                "type": "object",
                "properties": {
                    "numbers": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 32
                        },
                        "maxItems": 50,
                        "minItems": 1
                    },
                    "call_routing": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CallRoutingEnum"
                            }
                        ],
                        "default": "thunderphone",
                        "description": "`thunderphone` (default): point the numbers' incoming calls at ThunderPhone in your Twilio or Telnyx account. `customer`: leave the numbers' call settings at your carrier unchanged; your own call routing sends calls to each number's SIP address when the agent should answer. Other connection types ignore it.\n\n* `thunderphone` - thunderphone\n* `customer` - customer"
                    }
                },
                "required": [
                    "numbers"
                ]
            },
            "VoipNumberProvisionRequest": {
                "type": "object",
                "properties": {
                    "number": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                    }
                },
                "required": [
                    "number"
                ]
            },
            "VoipOutboundTestMethodEnum": {
                "enum": [
                    "self_call",
                    "platform"
                ],
                "type": "string",
                "description": "* `self_call` - self_call\n* `platform` - platform"
            },
            "VoipRelayStateEnum": {
                "enum": [
                    "registering",
                    "registered",
                    "refused",
                    "unreachable",
                    "evicted",
                    "relay_down",
                    "off"
                ],
                "type": "string",
                "description": "* `registering` - registering\n* `registered` - registered\n* `refused` - refused\n* `unreachable` - unreachable\n* `evicted` - evicted\n* `relay_down` - relay_down\n* `off` - off"
            },
            "VoipRelayStatus": {
                "type": "object",
                "description": "Read-only: how ThunderPhone's SIP registration relay is signed in to\nthe connection's carrier. Never credentials, the LiveKit login or the\nrelay's internal ids.",
                "properties": {
                    "state": {
                        "$ref": "#/components/schemas/VoipRelayStateEnum"
                    },
                    "reason_code": {
                        "type": "string",
                        "nullable": true,
                        "description": "The carrier's SIP status or the relay's reason, for refused, unreachable and evicted only."
                    },
                    "since": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true,
                        "description": "When the connection entered this state."
                    },
                    "last_registered_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                    },
                    "relay_ip": {
                        "type": "string",
                        "nullable": true,
                        "description": "The relay's public IP: added to the connection's inbound allowlist by ThunderPhone, read-only."
                    }
                },
                "required": [
                    "last_registered_at",
                    "reason_code",
                    "relay_ip",
                    "since",
                    "state"
                ]
            },
            "VoipSipHost": {
                "type": "object",
                "properties": {
                    "sip_host": {
                        "type": "string",
                        "nullable": true
                    }
                },
                "required": [
                    "sip_host"
                ]
            },
            "VoipTwilioSubaccountConnectRequest": {
                "type": "object",
                "properties": {
                    "discovery_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "subaccount_sids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                        },
                        "maxItems": 50,
                        "minItems": 1
                    },
                    "enable_transfers": {
                        "type": "boolean",
                        "default": false,
                        "description": "Also turn call transfers on for each new connection's SIP trunk. A failure does not fail that subaccount; it is reported in its test_result.transfer_enable_error."
                    }
                },
                "required": [
                    "discovery_id",
                    "subaccount_sids"
                ]
            },
            "VoipTwilioSubaccountDiscoverRequest": {
                "type": "object",
                "description": "Parent credentials to discover from, or an existing Twilio connection\nwhose stored credentials stand in for them.",
                "properties": {
                    "connection_id": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "credentials": {}
                }
            },
            "VoipVerificationEvidence": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "provider": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ProviderEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "config_fingerprint": {
                        "type": "string",
                        "readOnly": true
                    },
                    "inbound_status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/InboundStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "outbound_status": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/OutboundStatusEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "provider_charge_estimate_cents": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "provider_charge_currency": {
                        "type": "string",
                        "readOnly": true
                    },
                    "provider_charge_note": {
                        "type": "string",
                        "readOnly": true
                    },
                    "evidence": {
                        "readOnly": true
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }
                },
                "required": [
                    "config_fingerprint",
                    "created_at",
                    "evidence",
                    "id",
                    "inbound_status",
                    "outbound_status",
                    "provider",
                    "provider_charge_currency",
                    "provider_charge_estimate_cents",
                    "provider_charge_note"
                ]
            },
            "VoipVerificationStatusEnum": {
                "enum": [
                    "unverified",
                    "verified",
                    "carrier_accepted",
                    "failed"
                ],
                "type": "string",
                "description": "* `unverified` - Unverified\n* `verified` - Verified\n* `carrier_accepted` - Carrier accepted\n* `failed` - Failed"
            },
            "WarmTransferStyleEnum": {
                "enum": [
                    "introduce",
                    "ask_first",
                    "whisper"
                ],
                "type": "string",
                "description": "* `introduce` - Introduce on the line\n* `ask_first` - Ask first\n* `whisper` - Whisper"
            },
            "WebhookConfigAudioContextModeEnum": {
                "enum": [
                    "full",
                    "reduced"
                ],
                "type": "string",
                "description": "* `full` - full\n* `reduced` - reduced"
            },
            "WebhookConfigPlaySoundAssetEnum": {
                "enum": [
                    "chime",
                    "ding",
                    "beep"
                ],
                "type": "string",
                "description": "* `chime` - chime\n* `ding` - ding\n* `beep` - beep"
            },
            "WebhookConfigRequest": {
                "type": "object",
                "properties": {
                    "variables": {},
                    "context": {
                        "type": "string",
                        "nullable": true,
                        "description": "Free-form text for this call, such as a task description or notes collected earlier, at most 20,000 characters. It is added after the prompt in a delimited block, is not rendered as a template, and counts toward the prompt length."
                    },
                    "call_id": {
                        "type": "integer"
                    },
                    "prompt": {
                        "type": "string",
                        "minLength": 1
                    },
                    "tools": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ToolDefinitionRequest"
                        }
                    },
                    "product": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Product235Enum"
                            }
                        ],
                        "default": "spark"
                    },
                    "thinking_level": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WebhookConfigThinkingLevelEnum"
                            }
                        ],
                        "default": "base"
                    },
                    "bolt_pipeline": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/BoltPipelineEnum"
                            }
                        ],
                        "default": "v1"
                    },
                    "audio_context_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WebhookConfigAudioContextModeEnum"
                            }
                        ],
                        "default": "full"
                    },
                    "watchdog_enabled": {
                        "type": "boolean",
                        "default": false
                    },
                    "additional_audio_context": {
                        "type": "boolean",
                        "nullable": true
                    },
                    "storm_feedback_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/StormFeedbackModeEnum"
                            }
                        ],
                        "default": "acknowledgement"
                    },
                    "voice": {
                        "type": "string",
                        "minLength": 1
                    },
                    "voice_name": {
                        "type": "string",
                        "minLength": 1
                    },
                    "timezone": {
                        "type": "string",
                        "nullable": true,
                        "description": "IANA time zone for this call, such as America/New_York. The agent states the current time in it, ahead of the agent's own time zone. Unknown names are ignored."
                    },
                    "pronunciation_dicts": {
                        "type": "boolean",
                        "nullable": true,
                        "description": "Default false. Uses ThunderPhone's pronunciation dictionary for this call's Cartesia speech. Applies only with ThunderPhone's own Cartesia voices, not a customer's own Cartesia key."
                    },
                    "language": {
                        "type": "string",
                        "minLength": 1
                    },
                    "primary_language": {
                        "type": "string",
                        "minLength": 1
                    },
                    "has_additional_languages": {
                        "type": "boolean",
                        "default": false
                    },
                    "additional_languages": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "minLength": 1
                        }
                    },
                    "native_voice_switching": {
                        "type": "boolean",
                        "default": false
                    },
                    "language_switching": {
                        "nullable": true,
                        "description": "Default ask_first. How a multilingual agent treats a caller who speaks another of its languages: ask_first switches at once only when the caller asks and otherwise asks whether to continue in that language; follow_caller switches to the language the caller speaks.\n\n* `ask_first` - Ask first\n* `follow_caller` - Follow caller",
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/LanguageSwitchingEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "audio_tier": {
                        "nullable": true,
                        "description": "Bolt only. Hearing: how carefully the agent hears the caller. standard (the default; empty or null mean the same); lite is the cheapest; plus is standard plus a powerful ensemble of audio models that listens to the caller's audio on some turns, which take about 1–2 seconds longer; max is for the hardest audio and rare languages: every reply takes 3–4 seconds and always runs Pro intelligence (intelligence is ignored). max is not available for every organization: where it is not, an outbound call request that names it is refused and a config webhook's answer runs plus. The older values lean, hearing and deep_hearing are still accepted. storm_feedback_mode picks what the caller hears while plus or max works on a reply.\n\n* `lite` - Lite\n* `standard` - Standard\n* `plus` - Plus\n* `max` - Max\n* `lean` - Older name for lite, still accepted; responses use lite\n* `hearing` - Older name for plus, still accepted; responses use plus\n* `deep_hearing` - Older name for max, still accepted; responses use max",
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/AudioTierEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "endpointing": {
                        "nullable": true,
                        "description": "Default normal. How long a Bolt v2 agent waits after the caller stops before asking the model for a reply: faster 200 ms, fast 300 ms, normal 500 ms, patient 800 ms. Shorter waits can answer sooner but send more requests that the caller's next words make stale, which raises the model cost. Other products ignore it.\n\n* `faster` - Faster (200 ms)\n* `fast` - Fast (300 ms)\n* `normal` - Normal (500 ms)\n* `patient` - Patient (800 ms)",
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/EndpointingEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "eagerness": {
                        "nullable": true,
                        "description": "Deprecated: use endpointing (same values). Ignored when endpointing is set.\n\n* `faster` - Faster (200 ms)\n* `fast` - Fast (300 ms)\n* `normal` - Normal (500 ms)\n* `patient` - Patient (800 ms)",
                        "deprecated": true,
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/EagernessEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "faster_replies": {
                        "type": "boolean",
                        "nullable": true,
                        "description": "Default true. On a Bolt agent on the Bolt v2 pipeline, on replies where it helps, sends two requests and uses whichever answers first, which uses twice the model tokens on those replies. false sends one request per reply. Other products ignore it."
                    },
                    "intelligence": {
                        "nullable": true,
                        "description": "Default pro. The intelligence tier of a Bolt agent on the Bolt v2 pipeline, which decides how reliably it follows instructions: core (~700 ms to first word, cheapest, follows instructions a little less reliably; on calls treated as PHI ~900 ms and less reliable) or pro (~900 ms). Core replies that would only call a tool are handed to Pro. The older values lite (core) and standard (pro) are still accepted; the retired plus and max run on pro. Ignored when audio_tier is max, which always runs pro. Other products ignore it.\n\n* `core` - Core\n* `pro` - Pro\n* `lite` - Older name for core, still accepted; responses use core\n* `standard` - Older name for pro, still accepted; responses use pro",
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/IntelligenceEnum"
                            },
                            {
                                "$ref": "#/components/schemas/NullEnum"
                            }
                        ]
                    },
                    "background_track": {
                        "type": "string",
                        "nullable": true
                    },
                    "acknowledgement_prompt_mode": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/AcknowledgementPromptMode288Enum"
                            }
                        ],
                        "default": "auto"
                    },
                    "acknowledgement_prompt": {
                        "type": "string",
                        "default": ""
                    },
                    "silence_interval_seconds": {
                        "type": "integer",
                        "maximum": 120,
                        "minimum": 5,
                        "nullable": true
                    },
                    "silence_max_checkins": {
                        "type": "integer",
                        "maximum": 10,
                        "minimum": 1,
                        "nullable": true
                    },
                    "max_call_duration_seconds": {
                        "type": "integer",
                        "maximum": 21600,
                        "minimum": 60,
                        "nullable": true
                    },
                    "ring_duration_seconds": {
                        "type": "integer",
                        "maximum": 120,
                        "minimum": 5,
                        "nullable": true
                    },
                    "silence_checkins_enabled": {
                        "type": "boolean",
                        "default": true
                    },
                    "silence_hangup_seconds": {
                        "type": "integer",
                        "maximum": 3600,
                        "minimum": 60,
                        "nullable": true
                    },
                    "silence_final_action": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/SilenceFinalActionEnum"
                            }
                        ],
                        "default": "hang_up",
                        "description": "What the agent does after its last silence check-in: hang_up (default) or transfer to silence_transfer_destination.\n\n* `hang_up` - Hang up\n* `transfer` - Transfer"
                    },
                    "silence_transfer_destination": {
                        "type": "string",
                        "default": "",
                        "description": "Name of a transfer_destinations entry, used when silence_final_action is transfer. A config without transfer_destinations gives the phone number itself."
                    },
                    "silence_final_message": {
                        "type": "string",
                        "default": "",
                        "description": "What the agent says at the final action, spoken as written. Blank uses the default line. At most 300 characters."
                    },
                    "connect_tone_enabled": {
                        "type": "boolean",
                        "default": false
                    },
                    "typing_sounds_enabled": {
                        "type": "boolean",
                        "default": false
                    },
                    "typing_sound": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WebhookConfigTypingSoundEnum"
                            }
                        ],
                        "default": "keys_and_mouse"
                    },
                    "filler_phrases_enabled": {
                        "type": "boolean",
                        "default": true
                    },
                    "tool_start_line": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WebhookConfigToolStartLineEnum"
                            }
                        ],
                        "default": "only_if_slow"
                    },
                    "consent_announcement_enabled": {
                        "type": "boolean",
                        "default": false
                    },
                    "consent_announcement_text": {
                        "type": "string",
                        "default": ""
                    },
                    "disclosure_voice": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureVoiceEnum"
                            }
                        ],
                        "description": "Voice of the consent announcement: female (the default) or male.\n\n* `female` - Female\n* `male` - Male"
                    },
                    "disclosure_style": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/DisclosureStyleEnum"
                            }
                        ],
                        "description": "Version of the consent announcement: clean (the default) or phone (sounds like a phone line).\n\n* `clean` - High quality\n* `phone` - Corporate style"
                    },
                    "disclosure_ring_count": {
                        "type": "integer",
                        "maximum": 2,
                        "minimum": 0,
                        "description": "US rings (0-2) played after the consent announcement, before the agent speaks. Default 0."
                    },
                    "play_sound_asset": {
                        "default": "",
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/WebhookConfigPlaySoundAssetEnum"
                            },
                            {
                                "$ref": "#/components/schemas/BlankEnum"
                            }
                        ]
                    },
                    "speak_uninterruptible_enabled": {
                        "type": "boolean",
                        "default": false
                    },
                    "send_email_enabled": {
                        "type": "boolean",
                        "default": false
                    },
                    "send_email_recipient": {
                        "type": "string",
                        "format": "email",
                        "default": ""
                    },
                    "calculator_enabled": {
                        "type": "boolean"
                    },
                    "voicemail_action": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WebhookConfigVoicemailActionEnum"
                            }
                        ],
                        "default": "prompt"
                    },
                    "voicemail_message": {
                        "type": "string",
                        "default": ""
                    },
                    "agent_name": {
                        "type": "string",
                        "default": ""
                    },
                    "org_name": {
                        "type": "string",
                        "default": ""
                    },
                    "transfer_destinations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TransferDestinationRequest"
                        },
                        "nullable": true
                    },
                    "words": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/AgentWordRequest"
                        },
                        "nullable": true,
                        "description": "How the agent says specific words, and which words it listens for. Each entry: term (the word as the agent writes it), say_as (a plain respelling), optional ipa, language (defaults to this config's primary language), case_sensitive, speak_with (auto, ipa or say_as), hear, step, hear_always and hear_when. At most 200 entries."
                    }
                },
                "required": [
                    "prompt"
                ]
            },
            "WebhookConfigThinkingLevelEnum": {
                "enum": [
                    "base",
                    "extra",
                    "minimal"
                ],
                "type": "string",
                "description": "* `base` - base\n* `extra` - extra\n* `minimal` - minimal"
            },
            "WebhookConfigToolStartLineEnum": {
                "enum": [
                    "always",
                    "only_if_slow",
                    "never"
                ],
                "type": "string",
                "description": "* `always` - always\n* `only_if_slow` - only_if_slow\n* `never` - never"
            },
            "WebhookConfigTypingSoundEnum": {
                "enum": [
                    "mechanical",
                    "desktop",
                    "laptop",
                    "keys_and_mouse",
                    "office",
                    "quiet_room"
                ],
                "type": "string",
                "description": "* `mechanical` - mechanical\n* `desktop` - desktop\n* `laptop` - laptop\n* `keys_and_mouse` - keys_and_mouse\n* `office` - office\n* `quiet_room` - quiet_room"
            },
            "WebhookConfigVoicemailActionEnum": {
                "enum": [
                    "prompt",
                    "hangup",
                    "message"
                ],
                "type": "string",
                "description": "* `prompt` - prompt\n* `hangup` - hangup\n* `message` - message"
            },
            "WebhookCreated": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "readOnly": true
                    },
                    "label": {
                        "type": "string",
                        "maxLength": 120
                    },
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 200
                    },
                    "events": {},
                    "status": {
                        "$ref": "#/components/schemas/Status51eEnum"
                    },
                    "agent_id": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true
                    },
                    "agent_name": {
                        "type": "string",
                        "nullable": true,
                        "readOnly": true
                    },
                    "secret_hint": {
                        "type": "string",
                        "readOnly": true
                    },
                    "paused_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true,
                        "nullable": true,
                        "description": "When ThunderPhone set the endpoint to `failing` after a delivery used up its 24 h retry schedule. Null while active or disabled."
                    },
                    "pause_last_error": {
                        "type": "string",
                        "readOnly": true,
                        "description": "Last delivery error when the endpoint was paused (query strings removed)."
                    },
                    "pause_undelivered_count": {
                        "type": "integer",
                        "readOnly": true,
                        "nullable": true,
                        "description": "Events not delivered since the endpoint's last successful delivery, counted when it was paused."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    },
                    "secret": {
                        "type": "string"
                    }
                },
                "required": [
                    "agent_id",
                    "agent_name",
                    "created_at",
                    "id",
                    "label",
                    "pause_last_error",
                    "pause_undelivered_count",
                    "paused_at",
                    "secret",
                    "secret_hint",
                    "updated_at",
                    "url"
                ]
            },
            "WebhookDeliveryListResponse": {
                "type": "object",
                "properties": {
                    "results": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/DeveloperWebhookDelivery"
                        }
                    },
                    "limit": {
                        "type": "integer",
                        "maximum": 50,
                        "minimum": 1
                    },
                    "has_more": {
                        "type": "boolean"
                    },
                    "next_cursor": {
                        "type": "string",
                        "nullable": true,
                        "maxLength": 512
                    }
                },
                "required": [
                    "has_more",
                    "limit",
                    "next_cursor",
                    "results"
                ]
            },
            "WhisperAccepted": {
                "type": "object",
                "properties": {
                    "status": {
                        "$ref": "#/components/schemas/WhisperAcceptedStatusEnum"
                    }
                },
                "required": [
                    "status"
                ]
            },
            "WhisperAcceptedStatusEnum": {
                "enum": [
                    "sent"
                ],
                "type": "string",
                "description": "* `sent` - sent"
            },
            "WhoAmI": {
                "type": "object",
                "properties": {
                    "organization": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/WhoAmIOrganization"
                            }
                        ],
                        "readOnly": true
                    },
                    "credential_kind": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/CredentialKindEnum"
                            }
                        ],
                        "readOnly": true
                    },
                    "key_label": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "key_prefix": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "oauth_client_id": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    },
                    "scopes": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "readOnly": true
                    },
                    "role": {
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    }
                },
                "required": [
                    "credential_kind",
                    "key_label",
                    "key_prefix",
                    "oauth_client_id",
                    "organization",
                    "role",
                    "scopes"
                ]
            },
            "WhoAmIOrganization": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "readOnly": true
                    },
                    "name": {
                        "type": "string",
                        "readOnly": true
                    }
                },
                "required": [
                    "id",
                    "name"
                ]
            },
            "WidgetSession": {
                "type": "object",
                "properties": {
                    "call_id": {
                        "type": "integer"
                    },
                    "token": {
                        "type": "string"
                    },
                    "room_name": {
                        "type": "string"
                    },
                    "server_url": {
                        "type": "string"
                    },
                    "agent_name": {
                        "type": "string"
                    }
                },
                "required": [
                    "agent_name",
                    "call_id",
                    "room_name",
                    "server_url",
                    "token"
                ]
            },
            "WidgetSessionRequestRequest": {
                "type": "object",
                "properties": {
                    "variables": {
                        "type": "object",
                        "additionalProperties": {
                            "oneOf": [
                                {
                                    "type": "string"
                                },
                                {
                                    "type": "number"
                                },
                                {
                                    "type": "boolean"
                                }
                            ],
                            "nullable": true
                        },
                        "description": "Browser override. Accepted only when the publishable key's allowed_overrides lists \"variables\"; otherwise the request fails with 400 override_not_allowed."
                    },
                    "language": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Browser override. Accepted only when the publishable key's allowed_overrides lists \"language\"; otherwise the request fails with 400 override_not_allowed. The session starts in it: a saved agent speaks it with its voice for that language (its language_voices entry, native voice switching's choice, or its own voice when that speaks it) and keeps its other languages; when none speaks it, the language's default voice and that language alone. An unsupported code is 400 unsupported_language."
                    },
                    "primary_language": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Browser override. Accepted only when the publishable key's allowed_overrides lists \"language\"; otherwise the request fails with 400 override_not_allowed."
                    },
                    "voice": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Browser override. Accepted only when the publishable key's allowed_overrides lists \"voice\"; otherwise the request fails with 400 override_not_allowed."
                    },
                    "context": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Browser override. Accepted only when the publishable key's allowed_overrides lists \"context\"; otherwise the request fails with 400 override_not_allowed."
                    },
                    "website_context": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Browser override. Accepted only when the publishable key's allowed_overrides lists \"context\"; otherwise the request fails with 400 override_not_allowed."
                    },
                    "analytics_distinct_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                    },
                    "analytics_replay_url": {
                        "type": "string",
                        "format": "uri",
                        "minLength": 1,
                        "maxLength": 2048
                    }
                }
            },
            "WindowTimezoneModeEnum": {
                "enum": [
                    "campaign",
                    "contact"
                ],
                "type": "string",
                "description": "* `campaign` - Campaign timezone\n* `contact` - Each contact's local time"
            },
            "ProductB5bEnum": {
                "enum": [
                    "spark",
                    "bolt",
                    "storm-base",
                    "storm-base-with-ack",
                    "storm-extra",
                    "storm-extra-with-ack",
                    "full-duplex"
                ],
                "type": "string",
                "description": "* `spark` - Spark\n* `bolt` - Bolt\n* `storm-base` - Storm Base\n* `storm-base-with-ack` - Storm Base + Ack\n* `storm-extra` - Storm Extra\n* `storm-extra-with-ack` - Storm Extra + Ack\n* `full-duplex` - Full duplex"
            }
        },
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "scheme": "bearer",
                "bearerFormat": "sk_live_…",
                "description": "Organization API key. Send Authorization: Bearer sk_live_…; create a key in the dashboard."
            },
            "humanToken": {
                "type": "apiKey",
                "in": "header",
                "name": "Authorization",
                "description": "Human session token: Authorization: Token <session-token>. Organization API keys are rejected by key-management and account-control operations."
            }
        }
    },
    "servers": [
        {
            "url": "https://api.thunderphone.com",
            "description": "Production"
        }
    ],
    "x-mcp-server": "https://api.thunderphone.com/v1/mcp"
}