Skip to main content
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 (“demo”) or brought in through your own VoIP provider and verified via a VoIP connection.

Endpoints

Phone number object


List phone numbers

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

Provision a number

Requests a new demo number from ThunderPhone’s pool. To bring your own number through a VoIP provider, see Import VoIP numbers.
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.

Retrieve a phone number

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.
Returns 200 OK with the updated Phone number object.

Release a phone number

Returns 204 No Content. Demo numbers are returned to the pool; VoIP numbers are detached from the phone record but remain in your VoIP provider.

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).
Response

Version history

Every assignment change records a snapshot so you can audit who changed what.
Response
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 end-to-end verification flow that confirms inbound routing works and outbound trunking is authorized.
Response
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.

Agents

Configure the voice agents you assign to these numbers.

VoIP Connections

Bring your own phone numbers via Twilio, Telnyx, and more.

Phone Number Labels

Tag caller phone numbers that show up in call history.

Calls

See call history filtered by phone number.