cURL
curl --request POST \ --url https://api.vogent.ai/api/phone_numbers/purchase \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "number": "<string>" } '
{ "id": "<string>", "number": "+18001234567", "type": "PSTN", "agentId": "<string>" }
Purchase an available phone number.
In the form Bearer <api_key_here>. You can find your api key in your dashboard.
Bearer <api_key_here>
The number as returned by the phone number search endpoint.
Successful operation
The number in e.164 format, or the SIP username, if the type is SIP_USERNAME.
"+18001234567"
PSTN
SIP_USERNAME
The ID of the linked agent, if the phone number is linked to one.