POST
/
api
/
v1
/
phone-numbers
curl --request POST \
  --url https://api.elemente.ai/api/v1/phone-numbers \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "phone": "+1234567890",
  "country": "US"
}'
{
  "phone": "+1234567890",
  "agentId": "c84951a0-8354-40b0-a1ee-c43d259f6a40",
  "country": "US"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Input data for creating a phone number

The body is of type object.

Response

201
application/json

Phone number created successfully

The response is of type object.

POST
/
api
/
v1
/
phone-numbers
curl --request POST \
  --url https://api.elemente.ai/api/v1/phone-numbers \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "phone": "+1234567890",
  "country": "US"
}'
{
  "phone": "+1234567890",
  "agentId": "c84951a0-8354-40b0-a1ee-c43d259f6a40",
  "country": "US"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Input data for creating a phone number

The body is of type object.

Response

201
application/json

Phone number created successfully

The response is of type object.