Autorización
string
required
Bearer token generado desde el portal Leadway. Ver Autenticación.
string
default:"2021-07-28"
required
Versión de la API.
Path parameters
string
default:"ve9EPM428h8vShlRW1KT"
required
The unique identifier of the account
Body
string
default:"+18305551234"
required
The phone number to purchase
string
default:"US"
ISO 3166-1 alpha-2 country code of the number
string
default:"local"
Type of phone number Posibles valores: ‘local’, ‘tollFree’, ‘mobile’
string
default:"AD1234567890abcdef1234567890abcde"
Twilio address SID for compliance
string
default:"BU1234567890abcdef1234567890abcde"
Twilio bundle SID for regulatory compliance
string
default:"San Antonio"
Locality where the number is being purchased
string
default:"TX"
Region where the number is being purchased
string
default:"fp_abc123def456"
Unique request ID for idempotency (fingerprint of the purchase request)
boolean
default:"False"
Skip account-level KYC verification if agency-level compliance has already been verified
Respuestas
201 - Phone number successfully purchased. Returns the updated Twilio account state for the account.
201 - Phone number successfully purchased. Returns the updated Twilio account state for the account.
string
default:"8xMPW85D2z5jgcTa5L1p"
required
Unique identifier of the Twilio account record
string
default:"ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
required
Twilio Account SID
boolean
default:"True"
required
Whether this account is under a GHL-managed Twilio account
boolean
default:"True"
required
Whether SMS validation is enabled
string
default:"aa4PBpxnPc9bs4LSdiW7"
required
The account ID this Twilio account belongs to
string
default:"completed"
Current migration status of the account
string[]
List of numbers being migrated
object
Map of phone numbers to assigned user IDs
object
required
Map of phone numbers to their service type (e.g. ‘conversation’)
object
Map of phone numbers to their friendly names
string
default:""
New account SID if the account has been migrated to new credentials
500 - Internal server error - An unexpected error occurred while purchasing the phone number
500 - Internal server error - An unexpected error occurred while purchasing the phone number

