cURL
curl --request POST \ --url https://api.example.com/api/phone-numbers/import
Import an existing Twilio phone number
curl -X POST https://app.orova.ai/api/phone-numbers/import \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "phoneNumber": "+1234567890", "twilioAccountSid": "AC...", "twilioAuthToken": "...", "workspaceId": "WORKSPACE_ID" }'
phoneNumber
twilioAccountSid
twilioAuthToken
workspaceId
{ "_id": "phone_id", "number": "+1234567890", "status": "active", "type": "byot", "workspaceId": "WORKSPACE_ID" }