How to Claim a Phone Number
Purchasing a phone number is a two-step process. First, you need to search for available phone numbers using the Get available numbers endpoint. Then, you can purchase one of the available phone numbers using this endpoint.Authorizations
Body
Request data for purchasing (claiming) a phone number
The phone number to claim from the list of available phone numbers
"+14155551234"
24
Whether the phone should be setup to receive inbound calls.
Whether the phone should be setup to make outbound calls.
The region of the phone number. You can use it to easily identify the phone number.
"CA"
The country code of the phone number. You can use this field to easily identify the phone number.
"US"
The type of the phone number. Either local or toll-free. You can use this field to easily identify the phone number.
local
, toll-free
Response
Successful Response
Container for a single campaign record.
CREATED
, ACTIVE
, INACTIVE
, PAUSED
, PROCESSED
Phone numbers used by this campaign. Keyed by phone number. Using dict to ensure uniqueness. Stored also in phone_numbers and inbound_phone_numbers for backwards compatibility.
scheduled for removal
scheduled for removal
Use organization.twilio.a2p_status instead.
rejected
, verified
, pending
, unknown
web_voice
, telephony
, sms
, email
, chatbot
Inbound PreCallTasks can be executed:
- During the ringing phase (prolonged_ringing) - the tasks will be executed while the call is ringing. Agent will pick up the call only after the tasks are completed. Max duration is 10 seconds.
prolonged_ringing
The ID of the lead list associated with this campaign. Used to track and manage inbound leads.