Request
Method:POSTEndpoint:
/api/import-numberHeaders:
X-Authorization: Your API key (required)Content-Type:application/json
uid(string, required): Your user IDagentId(string, required): The ID of the agent to assign the phone number tosource(string, required): Must be “twilio” (only Twilio is currently supported)twilioAccountSid(string, required): Your Twilio Account SIDtwilioAuthToken(string, required): Your Twilio Auth TokenphoneNumber(string, required): The phone number to importcountryCode(string, required): The country code for the phone number
Response
Success Response (200):400 Bad Request: Invalid request body, invalid source, or agent already has a phone number401 Unauthorized: Invalid or missing API key, or insufficient permissions500 Internal Server Error: Agent not found, user needs paid plan, or server error
Example
Notes
- Only Twilio phone numbers are currently supported
- The agent must be on a paid plan to import phone numbers
- The agent cannot already have a business phone number assigned
- This operation has a maximum duration of 60 seconds
Authorizations
Body
application/json
User ID
Agent ID (agent should not have a phone number assigned yet)
Phone number source (currently only supports 'twilio')
Twilio account SID
Twilio auth token
Phone number to import, includes country code. i.e +10123456789
Country code of the phone number, ISO 3166-1 alpha-2 format
Response
Successful response
Message indicating the result of the operation

