Logo
Hack Back Better Demo API Documentation

Buy a phone number

POST {{2010-04-01-Accounts-AccountSid-IncomingPhoneNumbers.json-Url}}/2010-04-01/Accounts/:AccountSid/IncomingPhoneNumbers.json

Purchase a phone-number for your Twilio account. Afterwards you can use this number to send or receive SMS and calls.

Read more about it in the Twilio Docs

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status Created

{ "account_sid": "ACB6", "address_requirements": "foreign", "address_sid": "ADeA", "api_version": "reprehenderit laborum Excepteur", "beta": false, "bundle_sid": "BUB2", "capabilities": {}, "date_created": "incididunt ad", "date_updated": "consequat nostrud non Excepteur", "emergency_address_sid": "ADAd", "emergency_status": "Inactive", "friendly_name": "Excepteur qui aute occaecat", "identity_sid": "RI4F", "origin": "ex sit non", "phone_number": "incididunt", "sid": "PNFd", "sms_application_sid": "APD1", "sms_fallback_method": "put", "sms_fallback_url": "https://sqnVhokvKfX.ggVS", "sms_method": "delete", "sms_url": "http://KvTTK.eixDOBAKnXDodC", "status": "Duis est", "status_callback": "https://lukPySBKCSJZRDfZeLGCQEJiiZlrSGtT.slbsog2f2Byb3SNOpnvFCnKiEUbexVWC5tK9Qaj0IFkIVhVKN+mNB826euAwsZOYNBGrdhphsN", "status_callback_method": "HEAD", "trunk_sid": "TK29", "uri": "http://efvlxkNPQlPFtoHjtYEM.qceW6gOSsyL5X8uZPGhiRrpPWucrUmJlQexyf4Dl9T7ahcoPDgC3k2TRG", "voice_application_sid": "AP5b", "voice_caller_id_lookup": true, "voice_fallback_method": "head", "voice_fallback_url": "https://YYJSXXIemHJDgyPulvPuSDhUfIJ.ofhsUNmlqzZSTo7nnhXYYLQgunn2ScfFWt4qoJ,M2zYA,", "voice_method": "PATCH", "voice_receive_mode": "voice", "voice_url": "https://lNOljQzheebolftPuuCa.qjzdVdF,m6lXjsq+rV4sijQkntubbHInkrQaJO2zBraF0" }



Curl
curl -X POST '2010-04-01-Accounts-AccountSid-IncomingPhoneNumbers.json-Url/2010-04-01/Accounts/:AccountSid/IncomingPhoneNumbers.json' -H 'Content-Type: application/x-www-form-urlencoded' --data-urlencode '%7B%22name%22%3D%3E%22PhoneNumber%22%2C+%22value%22%3D%3E%22%2B12513060906%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22AddressSid%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22ApiVersion%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22AreaCode%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22BundleSid%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22EmergencyAddressSid%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22EmergencyStatus%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22FriendlyName%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22IdentitySid%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22SmsApplicationSid%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22SmsFallbackMethod%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22SmsFallbackUrl%22%2C+%22value%22%3D%3E%22%3Curi%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22SmsMethod%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22SmsUrl%22%2C+%22value%22%3D%3E%22%3Curi%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22StatusCallback%22%2C+%22value%22%3D%3E%22%3Curi%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22StatusCallbackMethod%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22TrunkSid%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22VoiceApplicationSid%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22VoiceCallerIdLookup%22%2C+%22value%22%3D%3E%22%3Cboolean%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22VoiceFallbackMethod%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22VoiceFallbackUrl%22%2C+%22value%22%3D%3E%22%3Curi%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22VoiceMethod%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22VoiceReceiveMode%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22VoiceUrl%22%2C+%22value%22%3D%3E%22%3Curi%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D'

ENDPOINTS