Skip to main content
Add Phone Numbers
curl --request POST \
  --url https://{api_endpoint}/api/v1/channels/phone/{config_id}/numbers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "phone_number": "<string>",
  "description": "<string>",
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
"<any>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

config_id
string<uuid>
required

Body

application/json
phone_number
string
required
description
string | null
Maximum length: 1024
agent_id
string<uuid> | null
environment_id
string<uuid> | null

Response

Successful Response

The response is of type any.