
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.- 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.
- Org handle. Open
Settings → Workspace → General and copy
the Domain value without the leading
@(for exampleacme, 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.
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.
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
createand add the second withadd_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.