cURL
curl --request POST \ --url https://api.zavu.dev/v1/phone-numbers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "phoneNumber": "+15551234567", "name": "Primary Line" } '
{ "phoneNumber": { "id": "<string>", "phoneNumber": "+15551234567", "capabilities": [ "sms", "voice" ], "status": "active", "pricing": { "monthlyPrice": 123, "upfrontCost": 123, "monthlyCost": 123, "isFreeNumber": true }, "createdAt": "2023-11-07T05:31:56Z", "name": "<string>", "senderId": "<string>", "nextRenewalDate": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } }
Purchase an available phone number. The first US phone number is free for each team.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Phone number in E.164 format.
"+15551234567"
Optional custom name for the phone number.
100
Phone number purchased successfully.
Show child attributes