cURL
curl --request POST \ --url https://api.example.com/api/phone-numbers/buy
Purchase a phone number from Twilio
curl -X POST https://app.orova.ai/api/phone-numbers/buy \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "phoneNumber": "+12125551234", "workspaceId": "WORKSPACE_ID" }'
phoneNumber
workspaceId
{ "_id": "phone_id", "number": "+12125551234", "status": "active", "workspaceId": "WORKSPACE_ID" }