Skip to main content
POST
/
api
/
v1
/
sip-trunks
/
{trunk_id}
/
dids
curl -X POST "https://app.talkover.ai/api/v1/sip-trunks/trunk-uuid-1/dids" \
  -H "Authorization: Bearer talq_your_environment_token_here" \
  -H "Content-Type: application/json" \
  -d '{
    "country_code": "US",
    "number": "+15551234567"
  }'
{
  "success": true,
  "data": {
    "id": "phone-uuid-1",
    "number": "+15551234567",
    "country_code": "US",
    "formatted_number": "(555) 123-4567",
    "trunk_id": "trunk-uuid-1"
  }
}

Documentation Index

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

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

Create SIP Trunk DID

Register a new DID (phone number) on a SIP trunk. Once added, the DID can be assigned to agents for inbound or outbound calling.

Endpoint

POST /api/v1/sip-trunks/{trunk_id}/dids

Path Parameters

trunk_id
string
required
SIP trunk UUID.

Request Headers

Authorization
string
required
Bearer token. Format: Bearer talq_your_environment_token_here
Content-Type
string
required
Must be set to application/json

Request Body

country_code
string
required
ISO 3166-1 alpha-2 country code (e.g., US, BR, GB).
number
string
required
Phone number in E.164 format (e.g., +15551234567).

Examples

curl -X POST "https://app.talkover.ai/api/v1/sip-trunks/trunk-uuid-1/dids" \
  -H "Authorization: Bearer talq_your_environment_token_here" \
  -H "Content-Type: application/json" \
  -d '{
    "country_code": "US",
    "number": "+15551234567"
  }'

Response

{
  "success": true,
  "data": {
    "id": "phone-uuid-1",
    "number": "+15551234567",
    "country_code": "US",
    "formatted_number": "(555) 123-4567",
    "trunk_id": "trunk-uuid-1"
  }
}

Error Responses

409 — Number Already Exists

{
  "success": false,
  "message": "This number is already registered in your environment",
  "code": "DID_ALREADY_EXISTS"
}