Skip to main content
POST
/
v1
/
phone-numbers
Register phone number
curl --request POST \
  --url https://api.oneinbox.ai/v1/phone-numbers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone_number": "+14155551234",
  "agent_id": "<string>",
  "friendly_name": "<string>",
  "credential_id": "<string>",
  "provider_config": {
    "trunk_address": "<string>",
    "auth_username": "<string>",
    "auth_password": "<string>"
  }
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.oneinbox.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key from the OneInbox dashboard (API Keys → Create)

Body

application/json
phone_number
string
required
Example:

"+14155551234"

agent_id
string
required
friendly_name
string
provider
enum<string>
Available options:
twilio
credential_id
string

Telephony integration ID (alternative to inline provider_config)

provider_config
object

Response

201

Created