ThunderPhone v3 is live.Self-serve, from 2¢/min.Read the announcement

Phone Numbers

Phone Numbers

Provision local and toll-free numbers, assign agents to them, transfer and verify them.

A phone number belongs to an organization and carries two agent assignments — one for the inbound direction (who answers) and one for the outbound direction (who is placed on the caller side). Numbers can be provisioned by ThunderPhone (a ThunderPhone number, number_type="thunderphone" in the API) or brought in through your own VoIP provider and verified via a VoIP connection (number_type="voip").

Endpoints

MethodPathDescription
GET/v1/phone-numbersList phone numbers
GET/v1/phone-numbers/limitsGet the organization cap and usage
GET/v1/phone-numbers/quoteWhat a new number costs before you buy it
GET/v1/phone-numbers/countries/{country}What getting a number in a country takes
GET/v1/phone-numbers/healthOutbound health of every number
GET/v1/phone-numbers/{phone_number_id}/healthOutbound health of one number
GET/v1/phone-numbers/toll-freeSearch toll-free numbers to buy
POST/v1/phone-numbersProvision a new number
GET/v1/phone-numbers/{phone_number_id}Retrieve a single number
PUT / PATCH/v1/phone-numbers/{phone_number_id}Assign agents / update status
DELETE/v1/phone-numbers/{phone_number_id}Release the number
POST/v1/phone-numbers/{phone_number_id}/transferMove a number to another org
GET/v1/phone-numbers/{phone_number_id}/versionsList prior assignments
POST/v1/phone-numbers/{phone_number_id}/verify-voipVerify a VoIP-sourced number
POST/v1/phone-numbers/{phone_number_id}/test-inboundTest that calls to a VoIP-sourced number reach ThunderPhone
POST/v1/phone-numbers/{phone_number_id}/test-outboundTest that calls from a VoIP-sourced number to a destination connect
GET/v1/outbound-platform-number-requestRead ThunderPhone-number outbound access and the latest request
POST/v1/outbound-platform-number-requestRequest outbound access for ThunderPhone numbers

Phone number object

{
  "id": 201,
  "number": "+15551234567",
  "label": "Support line",
  "source": "voip",
  "number_type": "voip",
  "status": "active",
  "inbound_agent_id": 12,
  "inbound_agent_version_id": null,
  "inbound_agent_version": null,
  "inbound_agent_variant_id": null,
  "inbound_experiment_id": null,
  "outbound_agent_id": null,
  "voip_connection_id": 5,
  "voip_verification_status": "verified",
  "voip_last_verified_at": "2026-04-20T18:24:10.113Z",
  "voip_inbound_status": "passed",
  "voip_inbound_tested_at": "2026-04-20T18:30:02.518Z",
  "voip_inbound_result": {
    "reason": "arrived",
    "detail": "A test call to +15551234567 reached ThunderPhone after 2.3 seconds.",
    "seconds": 2.3,
    "from_number": "+15550100000"
  },
  "outbound_eligible": true,
  "outbound_ineligible_reason": null,
  "sms_capable": true,
  "sms_capability_checked_at": "2026-09-19T15:42:10.113Z",
  "timezone": null,
  "expected_attestation": {
    "level": "full_expected",
    "label": "Full (A) expected from your carrier"
  }
}
FieldTypeDescription
idintegerServer-assigned number id
numberstringE.164-formatted phone number (e.g. +15551234567)
labelstringYour display label for the number (also settable via PATCH)
number_typestringthunderphone (provisioned by ThunderPhone) or voip (brought via a VoIP connection)
sourcestringDeprecated, use number_type. The same information under legacy values: demo means a ThunderPhone number (the value name predates production ThunderPhone numbers and is kept so existing integrations keep working) and voip means a VoIP number
statusstringprovisioning, active, failed, releasing, or released
inbound_agent_idinteger | nullAgent that answers inbound calls to this number. When the agent has a call setup webhook, it runs first to fill in the agent's variables and the call's context. Without an agent, the telephony.incoming webhook decides; a caller returning one of the number's outbound calls goes to the agent that called them when the webhook gives no answer (Callbacks)
inbound_agent_version_idinteger | nullThe published version of the inbound agent this number answers with, an id from GET /v1/agents/{id}/versions. null is Latest: the agent's published settings at the time of each call. See Answer with one version of an agent
inbound_agent_versionobject | nullThe pinned version's id, revision (its number in the agent's history) and created_at (when it was published); null for Latest
inbound_agent_variant_idinteger | nullThe variant of the inbound agent this number answers with on every call, or null for the agent itself
inbound_experiment_idinteger | nullThe experiment of the inbound agent this number runs: 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_idinteger | nullAgent used when placing outbound calls from this number. ThunderPhone numbers can set this after staff approves outbound access for the organization
voip_connection_idinteger | nullLinked VoIP connection (only when number_type="voip")
voip_verification_statusstringunverified, verified (an answered probe call), carrier_accepted (the carrier accepted the trunk, credentials and caller ID but would not route ThunderPhone's test destination — routable, shown with a caveat), or failed
voip_last_verified_attimestamp | nullLast successful verify
voip_inbound_statusstringResult of the optional inbound test: untested, passed (a call to the number arrived at ThunderPhone) or failed. Reads untested again once the VoIP connection's routing changes or the number is re-imported. Informational only: it never changes status or voip_verification_status. Always untested for ThunderPhone numbers
voip_inbound_tested_attimestamp | nullWhen the inbound test behind voip_inbound_status ran; null while untested
voip_inbound_resultobject | nullThat test's reason, detail, seconds (to arrival, on a pass), the from_number it called from and its method (loopback or platform, see the inbound test); null while untested
voip_inbound_test_methodstring | nullHow the next inbound test starts: loopback (the number first calls itself through its own outbound SIP trunk; it may still fall back to platform) or platform (a ThunderPhone test number calls it). null for ThunderPhone numbers
voip_outbound_test_methodstring | nullHow the next verification calls: self_call (manual SIP numbers outside the US and Canada: the number first calls itself through its own SIP trunk; it may still fall back to platform) or platform (it calls a ThunderPhone number). null for ThunderPhone numbers
carrier_routingstringRead-only. 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 call settings at your provider unchanged; see Keep your own call routing), or migration_split while a migration from another voice platform splits the number's calls between ThunderPhone and that platform. A migration_split number cannot be released, re-imported or given another inbound agent until the split is rolled back or completed
outbound_eligiblebooleanWhether the same local routing and trunk-configuration gate used at call placement currently allows this number to originate a call. This does not probe the carrier or LiveKit over the network.
outbound_ineligible_reasonstring | nullStable reason code from the placement gate. ThunderPhone-number access uses managed_number_inbound_only before a request, managed_number_outbound_pending during review, managed_number_outbound_denied after denial, and managed_number_outbound_revoked when a prior approval is no longer enabled. Routing failures include codes such as number_released, voip_verification_failed, voip_connection_error, voip_verification_stale, and outbound_trunk_unavailable
sms_capableboolean | nullCached carrier capability for customer-connected numbers. null means not checked yet. ThunderPhone numbers cannot send SMS
sms_capability_checked_attimestamp | nullWhen the carrier capability was last checked
sms_registration_statusstringFor a number on your Twilio account, where its US A2P 10DLC texting registration stands: verified (its Messaging Service has an approved campaign), not_required (toll-free or non-US), no_messaging_service, no_campaign, or campaign_ plus Twilio's campaign status, such as campaign_pending. Empty when not checked yet, and for other carriers. See SMS
sms_not_ready_reasonstring | nullWhy the carrier check found the number cannot send texts, and what to do; null when it can or has not been checked
webhook_urlstring | nullThis number's own webhook URL, set with PATCH. When set, it replaces the organization's webhook for this number's calls (call setup and call completion); null uses the organization's
webhook_signing_secretstring | nullThe secret that signs deliveries to webhook_url, generated when the URL is first set; null without one
timezonestring | nullIANA timezone of the number's area code (US and Canada) or country, for example America/Los_Angeles for a +1 415 number. null when the number spans several zones, such as toll-free numbers. New campaigns from this number default to it
expected_attestationobjectThe STIR/SHAKEN attestation to expect on calls from this number, as level and a plain-English label. See Expected attestation

List phone numbers

cURL
curl https://api.thunderphone.com/v1/phone-numbers \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"
Python
numbers = requests.get(
    "https://api.thunderphone.com/v1/phone-numbers",
    headers={"Authorization": "Bearer sk_live_YOUR_API_KEY"},
).json()

Returns an array of Phone number objects, sorted by created_at descending.


Provision a number

Requests a new ThunderPhone number from ThunderPhone's pool, up to the organization's cap (see Phone number limits). To bring your own number through a VoIP provider, see Import VoIP numbers.

cURL
curl -X POST https://api.thunderphone.com/v1/phone-numbers \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"area_code": "415"}'
Python
number = requests.post(
    "https://api.thunderphone.com/v1/phone-numbers",
    headers={"Authorization": "Bearer sk_live_YOUR_API_KEY"},
    json={"area_code": "415"},
).json()
FieldTypeRequiredDescription
area_codestringno3-digit area code to prefer. With toll_free, how the number starts: 833, 844, 855, 866, 877 or 888
citystringnoUS city name. Not with toll_free
statestringno2-letter US state code. Not with toll_free
idempotency_keystringnoUp to 128 characters. Retrying with the same key does not buy a second number
max_monthly_price_centsintegernoThe monthly price you were shown (Quote a number). A dearer number is not bought. Send it with max_setup_price_cents
max_setup_price_centsintegernoThe one-time setup fee you were shown. A dearer number is not bought. Send it with max_monthly_price_cents
toll_freebooleannotrue buys a toll-free number instead of a local one
numberstringnoWith toll_free: the number to buy, as a toll-free search returned it, like +18885550123. Without it, any toll-free number with that start
quoted_monthly_centsintegernoWith toll_free: the monthly price you agreed to, from the search. Send it with quoted_setup_cents
quoted_setup_centsintegernoWith toll_free: the one-off fee you agreed to, from the search

Each number has its own price: its monthly price and one-time setup fee follow what the phone company charges for that number, so some area codes cost more. Send both max_* fields as the quote gave them; sending only one returns 400. Without either, the purchase is held to the usual price, $0.99 a month plus a one-time $0.99 setup fee. When the number would cost more than that limit, nothing is bought and the request returns 409 with code: "price_changed" and the new price in the same fields as the quote.

Returns 201 Created with the new Phone number object in status="provisioning". The upstream provider usually transitions to active within seconds; poll the detail endpoint to observe the change. When this is the organization's first number and it has exactly one agent, that agent is assigned to answer it.

Provisioning is admin-only. The number's first month and one-time setup fee (see Pricing) must be covered by paid balance, so without it the request returns 402. One exception: free call credit can pay the whole first charge (first month and setup fee, or a toll-free number's first month and one-off fee) of one ThunderPhone number per account, never part of it. The credit pays only when enough of it is left to cover all of it, and that number is released after 7 days unless you add funds.

Two refusals are particular to toll-free purchases. Each returns 400 with a code:

  • price_changed: the phone company's price is now higher than quoted_monthly_cents or quoted_setup_cents. Nothing is bought. The response carries the price now as monthly_price_cents and setup_price_cents; confirm it and buy again.
  • number_taken: that number isn't available any more. Search again and pick another.

Toll-free numbers

ThunderPhone sells U.S. and Canada toll-free numbers starting 833, 844, 855, 866, 877 or 888 (not 800). GET /v1/phone-numbers/toll-free lists up to 10 that can be bought now. It buys nothing and holds nothing; a number is ordered only when you buy it with POST /v1/phone-numbers and toll_free: true.

cURL
curl "https://api.thunderphone.com/v1/phone-numbers/toll-free?starts_with=888&contains=FLOWERS" \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"
Python
search = requests.get(
    "https://api.thunderphone.com/v1/phone-numbers/toll-free",
    headers={"Authorization": "Bearer sk_live_YOUR_API_KEY"},
    params={"starts_with": "888", "contains": "FLOWERS"},
).json()
Query parameterDescription
starts_withOptional. 833, 844, 855, 866, 877 or 888. 800 returns 400
containsOptional. 3 to 7 digits or letters the number must contain, read as a phone keypad spells them: FLOWERS finds numbers containing 3569377
Response
{
  "contains": "FLOWERS",
  "numbers": [
    {"number": "+18883569377", "monthly_cents": 125, "setup_cents": 125}
  ],
  "monthly_cents": 125,
  "setup_cents": 125,
  "price": "$1.25 a month, plus $1.25 once",
  "incoming_minute_cents": 1.875,
  "incoming_minute": "1.9¢ a minute more than a local number's calls",
  "starts_with": ["833", "844", "855", "866", "877", "888"],
  "notices": [
    "Callers pay nothing to call it. You pay for every minute of incoming calls: 1.9¢ a minute more than a local number's calls.",
    "It can't be used to call emergency services (911).",
    "People you call see the number, not a business name.",
    "It can't send or receive texts for now."
  ]
}
FieldDescription
numbersUp to 10 numbers, each with its own monthly_cents and setup_cents, and vanity when the phone company gives the number in letters. Empty when none match
containsThe letters or digits searched for, when sent
monthly_cents, setup_centsThe most a toll-free number costs: a month, and the one-off fee charged with the first month. Each number's own price is never more
priceThe same price in words
incoming_minute_centsWhat each incoming minute adds on top of a local number's calls, in cents. null on the new pricing, where the toll-free rate is part of the phone line and marked up with the rest of the call
incoming_minuteThe incoming-minute price in words, on either pricing
starts_withThe starts ThunderPhone sells
noticesWhat to show the buyer before they buy: callers pay nothing and you pay incoming minutes, no 911, no business name shown to people called, no texts for now

A toll-free number's price is the phone company's divided by 0.8. To buy one, send its number with the price you showed:

curl -X POST https://api.thunderphone.com/v1/phone-numbers \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"toll_free": true, "number": "+18883569377", "quoted_monthly_cents": 125, "quoted_setup_cents": 125}'

While ThunderPhone doesn't sell toll-free numbers, the search returns 404 and a purchase with toll_free: true returns 400. A toll-free number bought from your own phone company connects like any other VoIP number.


Retrieve a phone number

cURL
curl https://api.thunderphone.com/v1/phone-numbers/201 \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"

Returns 200 OK with a Phone number object, or 404 if not found.


Assign agents / update status

PATCH clears or changes inbound/outbound agent assignments. The new agents must belong to the same org.

cURL
curl -X PATCH https://api.thunderphone.com/v1/phone-numbers/201 \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "inbound_agent_id": 12,
    "outbound_agent_id": 13
  }'
Python
number = requests.patch(
    f"https://api.thunderphone.com/v1/phone-numbers/{phone_number_id}",
    headers={"Authorization": "Bearer sk_live_YOUR_API_KEY"},
    json={"inbound_agent_id": 12, "outbound_agent_id": 13},
).json()
FieldTypeDescription
inbound_agent_idinteger | nullPass null to clear. An agent whose settings use a {{variable}} with no default can only be assigned once it has a call setup webhook to fill it in; otherwise 400 names the variables
inbound_agent_version_idinteger | nullA published version of the inbound agent to answer with, or null for Latest. Changing inbound_agent_id without it goes back to Latest. On a number running an experiment, the version must include every variant arm. See Answer with one version of an agent
inbound_agent_variant_idinteger | nullA variant of the inbound agent to answer with on every call, or null for the agent itself. Setting one takes the number off its experiment
inbound_experiment_idinteger | nullA running experiment of the inbound agent to run, or null for none. Start the experiment first: a draft or ended one is a 400. On a number pinned to a version, that version must include every variant arm of the experiment (400 names the ones it doesn't; publish a version that includes them). A number runs a variant or an experiment, not both: sending it with a non-null inbound_agent_variant_id is a 400, and so is sending it for a number on a variant without inbound_agent_variant_id: null. Changing inbound_agent_id without it sets null
outbound_agent_idinteger | nullPass null to clear. ThunderPhone numbers reject assignment with 400 until staff approves outbound access for the organization
labelstringDisplay label
webhook_urlstring | nullThis number's own webhook URL. Send null or "" to go back to the organization's webhook
statusstringUsually set by the server; write access is limited to toggling between active and released. Setting released also clears both agent assignments

Returns 200 OK with the updated Phone number object.

Answer with one version of an agent

By default a number answers with its agent's latest published settings, so every deploy reaches it. To keep a number on one published version while you change the agent (for example a test number on the next version, or the main line held back), pin it:

curl -X PATCH https://api.thunderphone.com/v1/phone-numbers/201 \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"inbound_agent_id": 12, "inbound_agent_version_id": 3051}'

Calls to a pinned number run that version's settings: its prompt, voice, steps, tools, knowledge, transfer numbers and call setup webhook, and each call records the version it ran. A few things always follow the agent as it is now: its name, its recording, consent and AI disclosure settings, its PHI setting, its recorded intro clip, and connected-app tools such as calendars. A tool connection's own settings are read as they are now; versions record which connections an agent used, not what was in them. A pinned number takes part in the agent's split test while it is on: each call gets an arm on top of the pinned version, and the control arm runs exactly that version. A split with an arm that sets its own full prompt runs no arm on pinned numbers, nor does an arm the version recorded with a language, and trials never reach them. Each published version also records the agent's variants as they were then, so a pinned number that runs a variant runs it as its version recorded it, not as it was edited since. A pinned number can run an experiment only when its version records every variant arm, so each arm stays frozen with the version.

A version that can no longer run as it was published, because a tool connection, MCP server, knowledge base or document, reusable instruction, custom voice or handoff agent it used has been deleted, is refused with 400. If one is deleted after you pin the version, calls still run that version without the missing piece and never switch to Latest on their own. "inbound_agent_version_id": null goes back to Latest.


Outbound platform-number access

ThunderPhone numbers start inbound-only. An organization admin can request permission to use its ThunderPhone numbers as outbound caller IDs. Organization API keys cannot submit this request; use a current human session token, Request access on Zeus's Phone & web page, or ask Zeus, which asks the questions below and sends the request when you confirm.

Daily and hourly limits

Every outbound call an organization places counts toward one daily limit, whichever carrier it goes through: ThunderPhone numbers and numbers on your own VoIP connections alike. New organizations start at 100 calls a day, and calls from your own VoIP numbers need no request up to that limit.

The first request asks for a daily limit: how many outbound calls per day the organization needs (100 unless you ask for a different number). ThunderPhone checks the answers and approves up to 100 calls a day right away, or asks for more details. Asking for more needs a written reason in note: once the answers check out, 100 a day are turned on at once and staff review the rest. Every call attempt counts, whether or not it is answered, and the count resets at 00:00 UTC. Once outbound access is enabled, an admin can request a higher daily limit, under the same rules. An organization that calls only from its own VoIP numbers asks for more with the same first request, with all its answers; approving it also turns on outbound calls from its ThunderPhone numbers, and never lowers its limit. ThunderPhone may turn outbound calling off at any time if it sees misuse.

Calls are also held to an hourly limit, at most this many in any 60 minutes:

Daily limitHourly limit
Up to 10030, or the daily limit if lower
101–30075
301–1,000250
Above 1,000A quarter of the daily limit

A higher daily limit brings its higher hourly limit with it, and ThunderPhone can set a higher hourly limit for an organization.

A call that would go over either limit is refused with 429 Too Many Requests before anything is dialed:

Response
{
  "code": "platform_outbound_daily_limit_reached",
  "detail": "This organization has used all 100 outbound calls for today. The limit resets at 00:00 UTC. You can request a higher limit on the Phone numbers page.",
  "daily_call_limit": 100,
  "resets_at": "2026-09-29T00:00:00Z"
}
Hourly limit
{
  "code": "outbound_hourly_limit_reached",
  "detail": "This organization has placed 30 outbound calls in the last hour, its hourly limit. The next call can go out at 14:52 UTC. A higher daily limit comes with a higher hourly one; you can request it on the Phone numbers page.",
  "hourly_call_limit": 30,
  "daily_call_limit": 100,
  "resets_at": "2026-09-28T14:52:00Z"
}

For the hourly limit, resets_at is the exact time the next call can go; detail rounds it down to the minute. Campaigns that reach either limit keep their remaining contacts pending and continue once calls can go again.

Read access and usage

GET /v1/outbound-platform-number-request returns the current outbound-access state and today's usage separately from the latest request. A historical approval does not mean access is still enabled after ThunderPhone revokes it.

Response
{
  "platform_outbound_enabled": true,
  "daily_call_limit": 100,
  "calls_today": 37,
  "resets_at": "2026-09-29T00:00:00Z",
  "default_daily_call_limit": 100,
  "outbound_levels": {
    "daily_call_limit": 100,
    "hourly_call_limit": 30,
    "calls_last_hour": 4
  },
  "request": {
    "id": 91,
    "kind": "outbound_platform_numbers",
    "status": "approved",
    "requested_count": 100,
    "use_case": "Appointment reminders",
    "expected_daily_calls": null,
    "consent_source": "Patients opt in on the intake form",
    "consent_wording": "I agree Clinic may call me about my appointments, including automated calls.",
    "consent_recency": "Within the last 30 days",
    "business_name": "Maple Clinic",
    "business_description": "A family dental clinic in Columbus, Ohio.",
    "list_source": "Our own patients, about 2,000, from our booking system.",
    "opt_out_handling": "The agent stops and we mark them do-not-call in our booking system.",
    "website": "https://clinic.example.com",
    "denial_reason": "",
    "created_at": "2026-09-19T18:00:00Z",
    "resolved_at": "2026-09-19T19:00:00Z"
  }
}
FieldTypeDescription
platform_outbound_enabledbooleanWhether ThunderPhone numbers can currently place outbound calls
daily_call_limitinteger | nullThe organization's daily limit, shown once outbound calls from ThunderPhone numbers are enabled (null until then). outbound_levels.daily_call_limit is the limit in force for every carrier
calls_todayintegerOutbound call attempts since 00:00 UTC, from any carrier
resets_attimestampThe next 00:00 UTC
default_daily_call_limitintegerThe daily limit a first request asks for when it sends no requested_count
outbound_levelsobjectThe limits every outbound call is held to, from any carrier: daily_call_limit, hourly_call_limit, and calls_last_hour
requestobject | nullThe latest request. requested_count is the daily limit it asks for. expected_daily_calls is only set on older requests or when you send it

request is null before the first request. A denied request, or an approved request whose access was later revoked, can be followed by a new request. The same state appears on each ThunderPhone number as managed_number_inbound_only, managed_number_outbound_pending, managed_number_outbound_denied, or managed_number_outbound_revoked in outbound_ineligible_reason. Once outbound access is enabled, the number can place calls while it is active, its outbound calling configuration is available, and the daily and hourly limits are not used up.

Request access or a higher limit

First request
curl -X POST https://api.thunderphone.com/v1/outbound-platform-number-request \
  -H "Authorization: Token tp_sess_YOUR_HUMAN_SESSION" \
  -H "X-ThunderPhone-Org: 42" \
  -H "Content-Type: application/json" \
  -d '{
    "requested_count": 100,
    "use_case": "Appointment reminders",
    "consent_source": "Patients opt in on the intake form",
    "consent_wording": "I agree Clinic may call me about my appointments, including automated calls.",
    "consent_recency": "Within the last 30 days",
    "business_name": "Maple Clinic",
    "business_description": "A family dental clinic in Columbus, Ohio.",
    "list_source": "Our own patients, about 2,000, from our booking system.",
    "opt_out_handling": "The agent stops and we mark them do-not-call in our booking system.",
    "website": "https://clinic.example.com"
  }'
Higher limit
curl -X POST https://api.thunderphone.com/v1/outbound-platform-number-request \
  -H "Authorization: Token tp_sess_YOUR_HUMAN_SESSION" \
  -H "X-ThunderPhone-Org: 42" \
  -H "Content-Type: application/json" \
  -d '{
    "requested_count": 500,
    "use_case": "Appointment reminders",
    "consent_source": "Patients opt in on the intake form",
    "consent_wording": "I agree Clinic may call me about my appointments, including automated calls.",
    "consent_recency": "Within the last 30 days",
    "business_name": "Maple Clinic",
    "business_description": "A family dental clinic in Columbus, Ohio.",
    "list_source": "Our own patients, about 2,000, from our booking system.",
    "opt_out_handling": "The agent stops and we mark them do-not-call in our booking system.",
    "website": "https://clinic.example.com"
  }'

requested_count is the daily limit you ask for, from 1 to 1,000,000. On the first request it is optional and defaults to 100. Once outbound access is enabled, it is required and must be more than the current daily_call_limit. website accepts a full URL or a bare domain such as clinic.example.com, which is stored as https://clinic.example.com. consent_wording is the wording on your form or sign-up where people agree to be called (or say that you only call business landlines), and consent_recency is how long ago the people you will call gave that permission. If you only call business landlines, send Only calls businesses on their business landlines in all three consent fields. business_name is your business as the people you call will hear it, business_description is what it does, list_source is where the numbers you will call come from and about how many there are, and opt_out_handling is what happens when someone asks not to be called again. Every field except requested_count and expected_daily_calls is required, placeholder answers such as NA are refused, and answers to what your business does, what the calls are for, where the numbers come from, the consent wording and the do-not-call question need at least 15 characters: ThunderPhone decides each request from these answers alone. expected_daily_calls is optional. Above 100 calls a day, note must say why you need that many (who you call, how they agreed and why fewer calls won't do), in at least 150 characters. consent_attestation: true is your written statement that everyone you call agreed to be called by you (or is a business on its business landline), that you keep a record of each agreement, and that you stop calling anyone who asks. Nothing is turned on without it; the request records when you sent it (consent_attested_at).

The response is 201 Created with the request. Its status is usually already approved, or needs_details with details_needed: the questions ThunderPhone needs answered. Send the request again with better answers: they update the same request, and ThunderPhone reads it again. When you asked for more than 100 a day and it was approved, the request is approved for 100 and the response carries extra_request, a second request for the full number that stays pending until staff decide. A request while another one is pending returns 409 Conflict.


Release a phone number

cURL
curl -X DELETE "https://api.thunderphone.com/v1/phone-numbers/201?confirm=true" \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"

confirm=true is required; without it the request returns 400 and nothing is released. Returns 200 OK with detail, released_at_provider and routing_removed. ThunderPhone numbers, toll-free ones included, go back to the phone company and stop billing; VoIP numbers are detached from ThunderPhone but stay in your VoIP provider account (add release_at_provider=true to release a Twilio or Telnyx number there too).


Transfer a number to another org

Atomically move a number between orgs. Requires admin+ in both orgs. On transfer, the number's inbound/outbound agent assignments are cleared (agents don't cross org boundaries).

A number always moves to a different organization, so this endpoint needs a signed-in session (Authorization: Token <session-token> plus X-ThunderPhone-Org for the source org). An sk_live_ API key is limited to its own organization and gets 403.

cURL
curl -X POST https://api.thunderphone.com/v1/phone-numbers/201/transfer \
  -H "Authorization: Token YOUR_SESSION_TOKEN" \
  -H "X-ThunderPhone-Org: 42" \
  -H "Content-Type: application/json" \
  -d '{"target_org_id": 77}'
Python
result = requests.post(
    f"https://api.thunderphone.com/v1/phone-numbers/{phone_number_id}/transfer",
    headers={"Authorization": "Token YOUR_SESSION_TOKEN", "X-ThunderPhone-Org": "42"},
    json={"target_org_id": 77},
).json()
Response
{
  "source_org_id": 42,
  "target_org_id": 77,
  "cleared_agent_assignments": true,
  "phone_number": { /* Phone number object in the target org */ }
}

Version history

Every assignment change records a snapshot so you can audit who changed what.

cURL
curl 'https://api.thunderphone.com/v1/phone-numbers/201/versions?limit=20' \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"
Response
{
  "count": 2,
  "results": [
    {
      "id": 88,
      "revision": 2,
      "created_by_id": 7,
      "created_at": "2026-04-20T18:24:10.113Z",
      "snapshot": { /* Phone number object at this revision */ },
      "changed_fields": ["inbound_agent_id"]
    }
  ]
}

created_by_id is the integer user id that made the change (null for system-initiated changes).


Verify a VoIP-sourced number

For numbers imported through a VoIP connection, run (or re-run) the verification flow. Provider connections (Twilio, Telnyx) re-check the provider credentials and SIP reachability. Manual SIP connections place a short probe call from this number, through the connection's trunk, to a ThunderPhone number (LiveKit hangs it up after a few seconds; your carrier bills it like any call). The carrier's SIP answer is classified in the evidence — 401/407 credentials, 403 forbidden (credentials or caller ID), 404/484 unroutable, 480/408 no answer, 5xx provider error — and the same text is returned as the failure reason. Two refusals are known to come after authentication: DIDWW's 403 Destination number blacklisted by routing plan and Twilio's 403: 32203 Phone number is blacklisted mean the trunk and credentials were accepted but the account does not call ThunderPhone's (US) test destination. That number becomes voip_verification_status = "carrier_accepted" (evidence outcome: "carrier_accepted"): routable, but calls to other destinations were not tested. Only an answered call yields verified.

Self-call. A manual SIP number outside the US and Canada (its voip_outbound_test_method is self_call) instead calls itself through the connection's trunk: a domestic call, so a trunk barred from international calls can verify. When the call comes back to ThunderPhone it is hung up before anything answers (no agent, call record or billing), the number is verified, the evidence has proof: "self-call", and the number's inbound test is recorded as passed too. Answered somewhere else, it is verified on outgoing alone. A 401/407/403, or any final refusal 10 seconds or more after dialing (usually a recorded message such as no credit), fails verification with that reason. Other refusals, ringing out or a call that comes back under another caller ID are inconclusive: the number then calls the ThunderPhone number as above, and the evidence keeps the self-call under self_call. The evidence's test_method says which call decided (self-call or target-call). The self-call rings for up to 25 seconds. Verification that ThunderPhone runs on its own (after an import, or after a connection change) never rings a phone unasked: it self-calls only a number whose inbound test is current and passed. After a connection change it otherwise calls the ThunderPhone number. After an import it does not call a number that would call itself at all, since its only other test would usually be an international call to the ThunderPhone number: verify it with this request, or on Phone & web → Phone numbers.

Verification is admin-only, rate-limited, and serialised per number (409 while a verification of the same number is in flight, and 409 if the number or its connection changed while the probe was running — verify again). Numbers that are released cannot be verified.

cURL
curl -X POST https://api.thunderphone.com/v1/phone-numbers/201/verify-voip \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"
Response
{
  "phone_number_id": 201,
  "status": "active",
  "voip_verification_status": "verified",
  "provider_charge_estimate_cents": 0,
  "provider_charge_currency": "usd",
  "provider_charge_note": ""
}

Verification may take several seconds; the response reflects the final state. If verification fails, voip_verification_status becomes failed and the phone status returns to provisioning — fix the VoIP connection (credentials, trunk, SIP allowlist) and call this endpoint again.

Verification proves that the number can place calls. Except for a self-call that comes back, it never calls the number, so it does not prove that calls to it reach ThunderPhone; use the inbound test below for that.


Test inbound calls to a VoIP number

POST /v1/phone-numbers/{phone_number_id}/test-inbound calls the number and checks that your carrier delivers the call back to ThunderPhone. When it arrives, ThunderPhone hangs up both legs: no agent answers, and nothing appears in call history or billing. The response reflects the result.

The test uses one of two methods, reported as inbound_probe.method:

  • loopback: for numbers on a connection with its own outbound SIP trunk (manual SIP, and Twilio once ThunderPhone has provisioned outbound calling in the customer's Twilio account), the number first calls itself through that trunk. The number's voip_inbound_test_method says in advance whether it will. The call goes out through your carrier and back in on the number's inbound routing. When it arrives under the number's own caller ID, inbound_probe.proves_outbound is true: that call also proves your carrier accepts ThunderPhone's calls as the number. It rings for up to 8 seconds (25 seconds outside the US and Canada, where no platform call can follow it), and waits up to 8 seconds on an answered call. A phone the number forwards to may therefore ring twice: once showing the number's own caller ID, then ThunderPhone's test number if the test falls back. A self-call that is refused, rings out or is answered without arriving is inconclusive (some carriers refuse or don't connect a call from a number to itself), never a failure: the test then falls back to platform, and inbound_probe.loopback records what the self-call did (outcome refused, no_arrival, answered_no_arrival or platform_error, with sip_status_code and the carrier's carrier_message).
  • platform: a ThunderPhone test number calls the number. It rings for up to 8 seconds; if something answers before the call reaches ThunderPhone (a Twilio app that answers and then forwards, a phone menu), the test stays on the line for up to 15 seconds waiting for the forwarded call.

The whole test takes up to about 30 seconds, or about 50 when a self-call falls back.

The test is optional and informational. It never changes the number's status, voip_verification_status or whether it can route calls, and ThunderPhone never runs it on its own (the verification it runs after an import or a connection change is outbound only). The number must be active and verified (voip_verification_status of verified or carrier_accepted), otherwise the request returns 400. It is admin-only, shares verification's rate limit, and returns 409 while a verification or another inbound test of the same number is running, or if the number or its connection changed during the test.

inbound_probe.status is one of:

StatusMeaning
passThe call reached ThunderPhone, with seconds_to_arrival. reason is arrived, or arrived_caller_id_changed when a call to the number arrived during the test under another caller ID, most likely the test call after a carrier changed its caller ID. That call is handled as an ordinary call, so your agent may answer it for a moment
failIt did not. reason is no_arrival (it rang for 8 seconds without reaching ThunderPhone), answered_elsewhere (something answered it and it had not reached ThunderPhone 15 seconds later: a phone, voicemail, another service, or a forward to the wrong address), busy, unroutable or forbidden (refused by the carrier). On a Manual SIP connection with Allowed Source IPs, a call that reached ThunderPhone in a way real calls are refused also fails: direct_source_not_allowed (it came straight to ThunderPhone, not through sip.thunderphone.com), edge_source_not_allowed (it came from an address not on the list; detail names it) or edge_source_unverified (its source address couldn't be verified)
unavailableThunderPhone could not run the test (not configured, a problem on ThunderPhone's side, or reason country_not_dialable: ThunderPhone can't place test calls to the number's country yet, currently numbers outside the US and Canada). After an inconclusive self-call that the platform method cannot follow up, reason is loopback_refused (the self-call was refused; see loopback.carrier_message) or loopback_inconclusive (it went out but didn't come back). source_unconfirmed: the call reached ThunderPhone, but where it came from couldn't be read, so whether Allowed Source IPs let it in is unknown. None of these says anything about the number's inbound routing. Nothing is recorded and the previous result stays

A pass or fail is stored on the number as voip_inbound_status, voip_inbound_tested_at and voip_inbound_result, and resets to untested when the VoIP connection's routing or Allowed Source IPs change, or the number is re-imported. If answered_elsewhere comes back, your carrier answered the test call somewhere else; it may bill up to about 20 seconds.

cURL
curl -X POST https://api.thunderphone.com/v1/phone-numbers/201/test-inbound \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"
Response
{
  "phone_number_id": 201,
  "voip_inbound_status": "passed",
  "voip_inbound_tested_at": "2026-04-20T18:30:02.518Z",
  "inbound_probe": {
    "status": "pass",
    "reason": "arrived",
    "detail": "A test call to +15551234567 reached ThunderPhone after 2.3 seconds.",
    "seconds_to_arrival": 2.3,
    "from_number": "+15550100000",
    "tested_at": "2026-04-20T18:30:02.518Z",
    "method": "platform",
    "loopback": null,
    "proves_outbound": false
  }
}

Test outbound calls to a destination

Verification places one call (to a ThunderPhone test number, or from the number to itself), so it does not show whether your carrier connects calls to every country you call. POST /v1/phone-numbers/{phone_number_id}/test-outbound with {"call_to": "+905012345678"} calls call_to from the number through your own carrier account. Use a phone of your own in the country you will call and answer it: ThunderPhone hangs up as soon as the call is answered (voicemail counts as answered), and no agent speaks. Your carrier may bill the call. The test is for numbers on your own carrier account; a number that calls out through ThunderPhone's own carrier returns 409.

Before calling, ThunderPhone reads your carrier account's setting for call_to's country, which costs nothing: Twilio's Voice geographic permissions, or the outbound voice profile's allowed destinations on your own Telnyx account. The call is placed either way. When the carrier refuses it because of that setting, outcome is blocked_by_account, with the setting to change in detail. When the call fails for another reason, detail gives that reason and mentions the setting if it reads as off. permission says what was read: checked, allowed (true, false, or null when it could not be read) and source (twilio_geo_permissions, telnyx_outbound_voice_profile, or empty for other carriers).

OutcomeMeaning
connectedThe call to call_to was answered (by a person or voicemail), so calls from this number to that country go through
not_connectedThe call did not connect: the carrier refused it (sip_status_code and the carrier's own words in carrier_message), it was busy, or nobody picked up within 30 seconds. detail says which and what to check
blocked_by_accountYour carrier refused the call because your account does not allow calls to that country

call_to must be a full number in E.164 format, other than the number itself; emergency numbers, short codes and the destinations no ThunderPhone call may dial return 400. The test is admin-only, shares verification's rate limit, allows 10 tests per account each clock hour (429 past that; tests refused before dialing don't count) and returns 409 while a verification or another test of the same number runs, or when the number can't place calls right now (for example while it is still provisioning, or when outbound calling is turned off for the organization). It records nothing: the number's status, voip_verification_status and verification evidence are unchanged.

cURL
curl -X POST https://api.thunderphone.com/v1/phone-numbers/201/test-outbound \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"call_to": "+905012345678"}'
Response
{
  "phone_number_id": 201,
  "outcome": "connected",
  "call_to": "+905012345678",
  "country": "TR",
  "country_name": "Turkey",
  "detail": "A test call from +14155550100 to +905012345678 was answered, so calls from this number to Turkey go through.",
  "sip_status_code": null,
  "carrier_message": "",
  "permission": {"checked": true, "allowed": true, "source": "twilio_geo_permissions"}
}

Outbound number health

Carrier analytics (Hiya for AT&T, TNS for Verizon, First Orion for T-Mobile) label numbers as spam from how they call: how many calls a number places a day, how many end within seconds, and how often a person answers. They don't share their scores. These endpoints read the same signals from your own outbound calls, so you can slow down or fix a number before it gets labeled. Treat them as a guide, not as any carrier's actual label.

GET /v1/phone-numbers/health returns every number in the organization in one response; GET /v1/phone-numbers/{phone_number_id}/health returns one. Both take the same authentication as listing phone numbers. A number that placed no outbound calls comes back good with zeros.

{
  "phone_number_id": 201,
  "number": "+15551234567",
  "expected_attestation": {"level": "full_expected", "label": "Full (A) expected from your carrier"},
  "status": "at_risk",
  "reasons": [
    {
      "code": "high_daily_volume",
      "severity": "at_risk",
      "message": "Over 100 calls a day from one number",
      "params": {"calls": 100}
    }
  ],
  "windows": {
    "1d": {"outbound_calls": 142, "connected_calls": 61, "rang_unanswered_calls": 74, "peak_calls_per_day": 142, "answer_outcome_calls": 135, "human_answer_rate": 0.31, "voicemail_rate": 0.12, "short_call_share": 0.36, "short_ring_share": 0.08, "average_talk_seconds": 74.2, "average_ring_seconds": 24.5, "status": "at_risk", "reasons": [{"code": "high_daily_volume", "severity": "at_risk", "message": "Over 100 calls a day from one number", "params": {"calls": 100}}]},
    "7d": {"...": "same fields"},
    "30d": {"...": "same fields"}
  }
}

The list endpoint wraps these in {"results": [...]}.

FieldDescription
status, reasonsFrom the last 7 days: good, watch or at_risk, with the reasons worst first. Each reason has a code, a severity (watch or at_risk), a plain-English message and the numbers in it as params
windowsThe same figures for the last day (1d), week (7d) and 30 days (30d), each with its own status and reasons
outbound_callsOutbound calls placed from the number
connected_callsCalls that were answered (by anyone or anything)
rang_unanswered_callsCalls that rang out, were busy or were declined
peak_calls_per_dayCalls on the busiest day, in the number's own time zone (its area code's, else your organization's, else UTC). For 1d, the last 24 hours
answer_outcome_callsCalls the answer rates are computed on: answered calls that say who answered (answered_by), and calls that rang out since your organization's calls started saying so. Earlier calls are left out rather than counted as unanswered
human_answer_rateShare of answer_outcome_calls a person answered (answered_by human). null with none
voicemail_rateShare that went to voicemail, on the same base
short_call_shareShare of answered calls that lasted under 10 seconds
short_ring_shareShare of unanswered calls that rang under 12 seconds (below the 14-second outbound ring floor, so it counts calls the callee declined or the carrier cut off)
average_talk_seconds, average_ring_secondsAverage time on answered calls, and average ring time of unanswered ones
Reason codewatchat_risk
high_daily_volumeOver 50 calls on the busiest dayOver 100
low_answer_rateFewer than 1 in 5 calls reach a personFewer than 1 in 10
short_callsOver 30% of answered calls under 10 secondsOver half
short_ringsOver half of unanswered calls ring under 12 seconds—

Answer rates and short-call shares count only once a window has enough calls: 20 answer_outcome_calls for low_answer_rate, 10 answered for short_calls, 10 rung out for short_rings. More reason codes may be added; show message for any you don't recognize.

Expected attestation

Carriers sign each outbound call with a STIR/SHAKEN attestation: A when they know the caller owns the number, B when they know the caller but not the number. B calls are labeled spam more often. ThunderPhone can't see the signature a call actually got, so expected_attestation says what to expect from where the number lives:

levelNumberlabel
fullA ThunderPhone numberFull (A)
full_expectedA number on your Telnyx, SignalWire or Vonage account, or a Twilio number with approved verified caller IDFull (A) expected from your carrier
carrierA number on a manual SIP trunkSet by your carrier. Ask them for A attestation.
partial_likelyA caller ID your carrier account does not own. Reserved: not returned yet, since every imported number comes from your carrier account's own listPartial (B) likely; calls are more likely to be labeled spam
partial_until_registeredA Twilio number without approved verified caller ID (register it). Twilio signs its calls B until thenPartial (B) until you register verified caller ID
unknownA VoIP number whose connection is goneUnknown

Quote a number

GET /v1/phone-numbers/quote takes the same area_code, city and state as a purchase and returns what the number it would buy costs now. Nothing is bought or held.

{"monthly_price_cents": 99, "setup_price_cents": 99, "first_charge_cents": 198,
 "price_words": "the same price in words", "funding": "free_credit",
 "shortfall_cents": 0, "funding_detail": ""}

funding says what would pay first_charge_cents now: free_credit (the free call credit pays all of it, for one number per organization), cash (your balance), or insufficient. When it is insufficient, a purchase returns 402; shortfall_cents is the cash to add and funding_detail says why.

It returns 400 when there is no number for those options. Each Phone number object also carries monthly_price_cents: what that number renews at each month.


Phone number limits

GET /v1/phone-numbers/limits returns the current organization's ThunderPhone number cap and usage. Authentication and organization selection are the same as for listing phone numbers.

{"max_platform_numbers": 25, "platform_numbers_used": 3}

Usage counts platform numbers that are provisioning, active, or releasing. Toll-free numbers count toward the same limit.

While ThunderPhone sells toll-free numbers, the response also has a toll_free object: the same price, incoming_minute, starts_with and notices fields as the toll-free search, plus:

FieldTypeDescription
credit_left_centsintegerThe free call credit a number's whole first charge (its first month plus its one-off fee) can come from right now. The credit pays only when this covers the whole charge. 0 when the credit can't pay for a number, for example because the organization's one credit-paid number is already used
To request a higher limit, ask Zeus: its card's Ask for more sends the
request, and ThunderPhone reviews it.

Numbers in other countries

ThunderPhone's own numbers are US numbers. For a number in another country, connect an account with a phone provider that sells numbers there. GET /v1/phone-numbers/countries/{country} says what that takes for any two-letter country code (TR, NG, DE):

  • telnyx and twilio: whether each sells numbers there and of which kinds (local, national, mobile, toll-free). For Telnyx, whether each kind can be the caller ID on calls inside the country, and the paperwork each kind needs. For Twilio, each Twilio account the organization has connected answers for itself, with its paperwork. Without one, Twilio's public price list gives kinds and prices for the countries it covers, and the paperwork is unknown.
  • twilio.country_rules: the country's caller ID rules as Twilio publishes them, quoted from its public guidelines page.
  • other_providers: other providers that list numbers there on their public coverage pages (DIDWW, DIDlogic, AVOXI, Global Call Forwarding, Vonage, Plivo, Sonetel, Bandwidth, IDT Express), with kinds, prices, paperwork and restrictions where the page states them, and how each connects to ThunderPhone. These come from a snapshot refreshed weekly, not a live read: other_providers_checked is the snapshot's date and each entry's as_of the day its data was read, which is earlier when that provider's page couldn't be read at the last refresh. Paperwork and notes are the providers' own words; confirm with the provider before buying.
  • thunderphone_numbers_call_here: whether a ThunderPhone number can call people in the country right now, as landline and mobile (each true or false). It is read from the rules calls are placed under at the moment you ask, so it changes when the countries we reach change. needs says what such a call takes: outbound calling approved for the number, and outside the US and Canada each minute charged at the country's rate (see Pricing).
  • shares_numbering_with: for a few territories that are part of a larger country's numbering plan (Jersey, Guernsey and the Isle of Man in the UK's; the Vatican in Italy's), that country's code, when no provider sells numbers in the territory itself.
  • calling_rules: ThunderPhone's research into the country's laws on business calls to people there: whether sales and non-sales calls to consumers and to businesses need consent (b2c_sales, b2c_non_sales, b2b_sales, consent_form), rules for automated or AI voices, the do-not-call registry, calling hours, what the caller must say, recording consent, penalties, and calling_number_requirements where the law says which number a business may call from (a required prefix or range, a registered or local number). Each entry carries its sources, a confidence (high, medium or low) and the date it was last_checked; regions_with_own_rules counts the states, provinces, counties and cities that add rules of their own. It is orientation, not legal advice, and the law of the called person's country applies wherever the number is from. A country that has not been researched has no calling_rules.
  • next_step: a recommendation.

A live source (Telnyx, Twilio) that can't be read just now is reported as unknown. Countries ThunderPhone can't call return "available": false. An unknown code returns 400 with code: "unknown_country".