Import a Twilio phone number to an agent
POST/api/import-numberX-Authorization: Your API key (required)Content-Type: application/jsonuid (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 number400 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 errorUser 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
Successful response
Message indicating the result of the operation