PyAI Telephony API

Managed phone numbers: search, provision, route to an agent, and release. Call minutes bill on telephony.minutes ($0.01/min).

GitHub OpenAPI

Operations 48

POST /v1/managed-tenants/numbers Import one existing company-owned number for a managed workspace #
GET /v1/managed-tenants/numbers Recover one exact managed owned-number import #
POST /v1/telephony/compliance-cases Start a number compliance or porting case #
GET /v1/telephony/compliance-cases List number compliance cases #
GET /v1/telephony/compliance-cases/{id} Get a number compliance case #
POST /v1/telephony/compliance-cases/{id}/checklist Compute the current blocking checklist #
POST /v1/telephony/compliance-cases/{id}/uploads:grant Create a short-lived document upload grant #
POST /v1/telephony/compliance-cases/{id}/uploads Register document upload metadata #
POST /v1/telephony/compliance-cases/{id}/uploads/{uploadId}/download:grant Create a short-lived clean-document download grant #
POST /v1/telephony/compliance-cases/{id}/extractions Run document extraction #
POST /v1/telephony/compliance-cases/{id}/corrections Correct an extracted field #
POST /v1/telephony/compliance-cases/{id}/attestations Sign a required attestation #
POST /v1/telephony/compliance-cases/{id}/submit Human-approve and submit for network review #
POST /v1/telephony/compliance-cases/{id}/cancel Cancel a number compliance case #
GET /v1/telephony/compliance-cases/{id}/network-operations List normalized network status #
GET /v1/telephony/available Search available numbers #
GET /v1/telephony/numbers List your numbers #
POST /v1/telephony/numbers Provision (buy) a number #
GET /v1/telephony/number-orders/{id} Read a saved number order #
POST /v1/telephony/number-orders/{id}/reconcile Confirm a saved number order #
GET /v1/telephony/numbers/{id}/inbound-capabilities Read incoming ring options for a number #
GET /v1/telephony/desktop-endpoints List this project's managed app desktop endpoints #
POST /v1/telephony/desktop-endpoints Register an application desktop identity #
POST /v1/telephony/desktop-endpoints/{id}/enrollment Create one-use desktop app enrollment #
GET /v1/telephony/numbers/{id}/inbound-binding Read an explicit managed inbound binding #
PUT /v1/telephony/numbers/{id}/inbound-binding Set an explicit managed inbound binding #
POST /v1/telephony/numbers/{id}/assign Route a number to an agent #
DELETE /v1/telephony/numbers/{id} Release a number #
GET /v1/telephony/compliance/policy Get outbound compliance policy #
PUT /v1/telephony/compliance/policy Configure outbound compliance policy #
POST /v1/telephony/compliance/consents Record destination consent #
POST /v1/telephony/compliance/suppressions Suppress an outbound destination #
GET /v1/telephony/compliance/caller-identities List caller identity readiness #
POST /v1/telephony/browser-sessions Create a managed human calling session #
GET /v1/telephony/calls/{id}/capabilities Read supported controls for an owned call #
GET /v1/telephony/calls/{id}/quality Read stored call audio-quality measurements #
POST /v1/telephony/calls/{id}/dtmf Send keypad digits to a connected caller #
POST /v1/telephony/calls/{id}/hold Hold or resume a caller #
POST /v1/telephony/calls/{id}/transfers Start a human call transfer #
POST /v1/telephony/calls/{id}/transfers/{transfer_id}/complete Complete a connected warm transfer #
POST /v1/telephony/calls/{id}/transfers/{transfer_id}/cancel Cancel a consultation or pending cold transfer #
GET /v1/telephony/calls/{id}/recording Read a private human-call recording #
DELETE /v1/telephony/calls/{id}/recording Erase a human-call recording #
GET /v1/telephony/calls List telephony calls #
POST /v1/telephony/calls Start an outbound agent call #
POST /v1/telephony/calls/{id}/admission Decide a pending inbound admission #
POST /v1/telephony/calls/{id}/hangup Request call termination #
GET /v1/telephony/calls/{id} Get an outbound call #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pyai-com:pyai-com-telephony-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pyai-com-telephony-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PyAI Telephony API
  version: 2.14.0
  description: 'Telephony-native Voice AI behind one bearer key:


    - **Hear**, speech-to-text · `POST /v1/audio/transcriptions` (streaming + batch)

    - **Speak**, text-to-speech · `POST /v1/audio/speech`, `GET /v1/voices`

    - **Clone**, custom voices from a short clip · `/v1/voice/clones`

    - **Cast**, auto-directed expressive voiceovers · `/v1/cast`

    - **Dub**, asynchronous audio and video dubbing · `POST /v1/dub` (guide)

    - **Cue configuration frames (reserved)**; Hear streams skip knowledge-base retrieval by default

    - **Omni**, full-duplex agentic voice (speech-to-speech, grounded in your knowledge bases + tools) · `/v1/omni`

    - **Knowledge Bases**, hosted grounding for Omni: create bases, add documents (file, URL, or text), crawl a public website, bind to agents or org defaults · `/v1/knowledgebases`

    - **AMD API**, answering-machine detection: know *who or what* answered a call (human, voicemail, IVR, iPhone/Google screening, dead number) with the reason it decided · `wss …/v1/amd/stream` (Twilio Media Streams drop-in), `POST /v1/amd/config`, `GET /v1/amd/calls/{id}`

    - **Agents Beta**, the live console feature to create, configure, test, and connect Omni voice agents without code. Beta features and limits may change. ## Identity, billing and authentication

    - Before any generation or transcription, call GET /v1/me (MCP: whoami). Verify org_id, project_id, environment, scopes, limits and billing/credit context against the intended project. Do not infer identity or free usage from a key prefix or tool name. Stop on a mismatch or unknown budget; never switch to a live project automatically. - Test usage has enforced limits; live usage is billed. Current meters and rates: https://pyai.com/pricing. Agree a bounded input/request count before generating, and do not retry uncertain billable submissions blindly. Create a key in the console (it is shown once) and send it as a bearer token:


    ```

    Authorization: Bearer pyai_live_... ```


    Keys are environment-scoped: `pyai_live_...` (production) and `pyai_test_...` (sandbox). `POST /v1/sandbox/keys` creates an instant, short-lived test key without login or billing. Account signup also creates a sandbox key. Live keys consume prepaid credit; phone verification may unlock promotional credit under graduated-signup rules, but credit is not guaranteed at signup. Keys are self-validating signed tokens: they work on every PyAI surface the instant they are created, no activation or propagation delay. Treat them as opaque strings (up to 512 chars) and never parse their contents. Keep long-lived keys on trusted servers. For Omni browsers, mint an origin-locked short-lived token on your backend with POST /v1/omni/sessions; never expose a live or test API key in browser code. Offer the protocol marker and session token:


    ```

    Sec-WebSocket-Protocol: pyai.v1, pyai-key. ```


    (server-side clients may instead append `?api_key=...` to the URL). Your key is authenticated on the upgrade and never reaches the model. ## Quickstart, Hear (speech-to-text)


    ```

    curl https://api.pyai.com/v1/audio/transcriptions \

    -H "Authorization: Bearer $PYAI_API_KEY" \

    -F file=@audio.wav -F model=pyai-hear

    # -> { "text": "..." }

    ```


    ## Quickstart, Speak (text-to-speech)


    ```

    curl https://api.pyai.com/v1/audio/speech \

    -H "Authorization: Bearer $PYAI_API_KEY" \

    -H "Content-Type: application/json" \

    -d ''{"model":"pyai-speak","input":"Hello from PyAI.","voice":"voice_abc"}'' \

    --output speech.wav

    ```


    `voice` is a stock voice id from `GET /v1/voices` (the curated prebuilt catalog with personas and avatars) or a cloned voice id from `/v1/voice/clones`. Omit it to use the platform default voice (`stock_dorit_en_us`).'
  contact:
    name: PyAI
    url: https://pyai.com
servers:
- url: https://api.pyai.com
  description: Production
security:
- apiKey: []
- xApiKey: []
tags:


# --- truncated at 32 KB (135 KB total) ---
# Full source: https://artifacts.apis.io/pyai-com/openapi/pyai-com-telephony-api-openapi.yml