cURL
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" }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Input data for creating a phone number
The phone number
"+1234567890"
The country code
"US"
Phone number created successfully
The agent ID
"c84951a0-8354-40b0-a1ee-c43d259f6a40"