Skip to content
Inkbox

Inkbox

ContactDocs

Jump to

Phone Numbers

Manage the phone numbers associated with your organization. Provision toll-free or local numbers via Telnyx, configure how incoming calls are handled, and release numbers when no longer needed.


Provision phone number POST

POST /numbers

Provision a new phone number for your organization. Searches available Telnyx inventory, places an order, and registers the number to your account.

Request body

FieldTypeRequiredDescription
agent_handlestringYesAgent identity handle to assign this number to (e.g. "sales-agent" or "@sales-agent"). Leading @ is stripped.
typestringNo"toll_free" (default) or "local"
statestringNoUS state code (e.g. "NY"). Only applicable when type is "local"
incoming_call_actionstringNoHow to handle incoming calls: "auto_accept", "auto_reject" (default), or "webhook"
client_websocket_urlstringNoWebSocket URL (wss://) that Inkbox connects to when a call starts. Can carry text or audio, depending on how the connection is configured. Required when incoming_call_action is "auto_accept"
incoming_call_webhook_urlstringNoHTTPS URL for incoming call webhooks. Required when incoming_call_action is "webhook"

Request example

JSONJSON

Response (201)

JSONJSON

New numbers are provisioned with incoming_call_action set to auto_reject. Update the number to configure how incoming calls are handled.

Error responses

StatusDescription
404No available numbers matching the criteria
429Organization already has 3 active phone numbers. Release an existing number before provisioning a new one
502Telnyx provisioning failed

Code examples


Release phone number DELETE

DELETE /numbers/{phone_number_id}

Release a phone number from your organization. The number is deleted in Inkbox with status released and unlinked from any identity. Returns 204 No Content on success.

Caution: Releasing a number is irreversible. The number is returned to the carrier pool and you may not be able to reclaim it.

Path parameters

ParameterTypeDescription
phone_number_idUUIDUnique identifier of the phone number to release

Response (204)

Returns no content.

Error responses

StatusDescription
403Number does not belong to your organization
404Phone number not found

Code examples


List phone numbers GET

GET /numbers

List all phone numbers for your organization.

Response (200)

JSONJSON

Code examples


Get phone number GET

GET /numbers/{phone_number_id}

Get a single phone number by ID.

Path parameters

ParameterTypeDescription
phone_number_idUUIDUnique identifier of the phone number

Response (200)

Returns a phone number object.

Error responses

StatusDescription
403Number does not belong to your organization
404Phone number not found

Code examples


Update phone number PATCH

PATCH /numbers/{phone_number_id}

Update the configuration for a phone number. All fields are optional — only the fields you provide will be updated.

Path parameters

ParameterTypeDescription
phone_number_idUUIDUnique identifier of the phone number

Request body

FieldTypeRequiredDescription
incoming_call_actionstringNoHow to handle incoming calls: "auto_accept", "auto_reject", or "webhook"
client_websocket_urlstringNoWebSocket URL (wss://) that Inkbox connects to when a call starts. Can carry text or audio, depending on how the connection is configured. Required when incoming_call_action is "auto_accept"
incoming_call_webhook_urlstring | nullNoHTTPS URL for incoming call webhooks. Required when incoming_call_action is "webhook". Set to null to unsubscribe.

Request example

JSONJSON

Response (200)

Returns the updated phone number object.

Error responses

StatusDescription
403Number does not belong to your organization
404Phone number not found

Code examples


Phone number object

FieldTypeDescription
idUUIDUnique phone number identifier
numberstringPhone number in E.164 format (e.g. "+14155550100")
typestringNumber type: "toll_free" or "local"
statusstringLifecycle status: "active", "paused", or "released"
incoming_call_actionstringHow incoming calls are handled: "auto_accept", "auto_reject", or "webhook"
client_websocket_urlstring | nullWebSocket URL used for auto-accepted calls
incoming_call_webhook_urlstring | nullHTTPS URL for incoming call webhook notifications
created_atstringCreation timestamp (ISO 8601)
updated_atstringLast updated timestamp (ISO 8601)

Inkbox

Copyright © 2026 Inkbox

This site is protected by reCAPTCHA.

Google Privacy Policy and Terms of Service apply.

Website

Inkbox

Copyright © 2026 Inkbox

This site is protected by reCAPTCHA.

Google Privacy Policy and Terms of Service apply.

Website