Skip to main content
POST
/
api
/
phone-numbers
/
import
cURL
curl --request POST \
  --url http://localhost:8080/api/phone-numbers/import \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-SECRET: <api-key>' \
  --data '
{
  "provider": "twilio",
  "phone_number": "+14157774444",
  "account_sid": "AC1234567890abcdef1234567890abcdef",
  "auth_token": "your_auth_token",
  "nickname": "Customer Service Line",
  "inbound_agent_id": "agent_abc123",
  "outbound_agent_id": "agent_xyz789"
}
'
{
  "message": "Phone number validated and imported successfully",
  "status": "success",
  "error": null,
  "data": {
    "phone_number": {
      "phone_number": "+14157774444",
      "organization_id": "org_123",
      "phone_number_pretty": "+1 (415) 777-4444",
      "phone_number_type": "ZUDU_PLIVO",
      "nickname": "Customer Service Line",
      "inbound_agent_id": "agent_abc123",
      "outbound_agent_id": "agent_xyz789",
      "number_provider": "plivo",
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-15T10:30:00Z"
    }
  }
}

Authorizations

X-API-KEY
string
header
required

API Key for MCP server and external service authentication

X-API-SECRET
string
header
required

API Secret for MCP server and external service authentication

Body

application/json
provider
string
required

Provider name (twilio or plivo)

phone_number
string
required

E.164 format phone number

account_sid
string
required

Provider account SID/ID

auth_token
string
required

Provider auth token

nickname
string
inbound_agent_id
string
outbound_agent_id
string

Response

200 - application/json

Phone number validated and imported successfully

message
string
status
string
error
string | null
data
object