Skip to main content
Unpod Telephony has two products. Telephony APIs give you programmable calls on Unpod numbers - like Plivo or Twilio - and SIP Trunking lets you bring your own carrier.
unpod.dev Telephony Overview with call totals, a usage chart and inbound versus outbound calls

Telephony → Overview on unpod.dev - calls, numbers and spend

Which path?

Telephony APIs

Make, connect, blast and receive calls on an Unpod number. No carrier, no trunk.

SIP Trunking

Route your own carrier’s numbers through Unpod.

Credentials

Both paths use the same two credentials, and you get both from the Unpod dashboard.
  1. API key (the SDK calls it a platform token). Open Settings → Access → API keys and click Generate New. Copy the key from the list. It’s a personal key: it acts as you, in any org you’re a member of, so keep it secret and generate a new one if it leaks.
  2. Org handle. Open Settings → Workspace → General and copy the Domain value without the leading @ (for example acme, not @acme). Org owners and editors can also use Copy Org Handle in the menu at the top of the org page. No API returns the handle for an API key yet, so copy it from the dashboard.
Export them with the base URL:
The Python SDK reads all three when you create a client with no arguments. cURL samples call https://unpod.dev/api/v2/platform/... and send the token and org handle as Authorization: Token $UNPOD_PLATFORM_TOKEN and Org-Handle: $UNPOD_ORG_HANDLE. Check your credentials:
"status_code": 200 means both values are right (an empty data list just means you have no numbers yet). 401 means the key is wrong; 403 or “Organization not found” means the org handle is wrong. Use cURL for this check: the SDK’s overview() turns “Organization not found” into an empty list, which looks the same as having no numbers.
Use the dashboard API key with Authorization: Token … plus Org-Handle. An sk_... key (UNPOD_API_KEY) is a Bearer key and cannot reach telephony. Always set UNPOD_BASE_URL: if it is unset, the SDK falls back to a legacy host that no longer resolves.

Where a number can end up

Key concepts

  • Number - a phone number in E.164 format (e.g. +15551234567).
  • Call and legs - a call is made of legs, one per person. You dial the first with create and add the second with add_participant.
  • Answer URL - the https URL Unpod calls when a call starts on a leg (an inbound call is fetched while it’s still ringing). You reply with XML or JSON telling Unpod what to do.
  • Trunk - a SIP carrier credential (sip_url, transport, port, auth, source-IP allow-list). Secrets are always masked in responses.
  • Origin endpoint - the shared SBC ingress host (for example sip-lb1.unpod.tel) the carrier sends inbound calls to, plus the accepted source IPs and mapped numbers.

Sample code

Runnable code for this page in unpod-ai/sample-apps:

sbc/quickstart/step1_credentials.py

Checks your three credentials against the telephony API.

telephony/outbound_call.py

A complete outbound call in one file.