Skip to main content

Add Phone Number

POST/api/v1/organizations/telephony-configs/{config_id}/phone-numbers

cURL example

curl -X POST \
  'http://localhost:8000/api/v1/organizations/telephony-configs/{config_id}/phone-numbers' \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{}'

Parameters

NameLocationTypeDescription
config_idrequiredpathinteger
authorizationheaderobject
X-API-Keyheaderobject

Request body

application/json
View schema
{
  "$ref": "#/components/schemas/PhoneNumberCreateRequest"
}

Responses

200Successful Response
application/json
View schema
{
  "$ref": "#/components/schemas/PhoneNumberResponse"
}
404Not found
422Validation Error
application/json
View schema
{
  "$ref": "#/components/schemas/HTTPValidationError"
}