Send an SMS
POST
{{2010-04-01-Accounts-AccountSid-Messages.json-Url}}/2010-04-01/Accounts/:AccountSid/Messages.json
Send a message from the account used to make the request with the phone number you purchased from Twilio in the previous step or with any other Twilio phone number you have associated in your account.
Read more about it in the Twilio Docs
Body
PARAM
Key |
Datatype |
Required |
Description |
HEADERS
Key |
Datatype |
Required |
Description |
Content-Type
|
string |
|
|
RESPONSES
curl -X POST '2010-04-01-Accounts-AccountSid-Messages.json-Url/2010-04-01/Accounts/:AccountSid/Messages.json' -H 'Content-Type: application/x-www-form-urlencoded' --data-urlencode '%7B%22name%22%3D%3E%22Body%22%2C+%22value%22%3D%3E%22Take+notes+for+the+swag+challenge%21%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22To%22%2C+%22value%22%3D%3E%22MY_PHONE_NUMBER%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22From%22%2C+%22value%22%3D%3E%22TWILIO_PHONE_NUMBER%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22AddressRetention%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22ApplicationSid%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22Attempt%22%2C+%22value%22%3D%3E%22%3Cinteger%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22ContentRetention%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22ForceDelivery%22%2C+%22value%22%3D%3E%22%3Cboolean%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22MaxPrice%22%2C+%22value%22%3D%3E%22%3Cnumber%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22MediaUrl%22%2C+%22value%22%3D%3E%22%5B%5C%22%3Curi%3E%5C%22%2C%5C%22%3Curi%3E%5C%22%5D%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22MessagingServiceSid%22%2C+%22value%22%3D%3E%22%3Cstring%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22PersistentAction%22%2C+%22value%22%3D%3E%22%5B%5C%22%3Cstring%3E%5C%22%2C%5C%22%3Cstring%3E%5C%22%5D%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22ProvideFeedback%22%2C+%22value%22%3D%3E%22%3Cboolean%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22SmartEncoded%22%2C+%22value%22%3D%3E%22%3Cboolean%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%22ValidityPeriod%22%2C+%22value%22%3D%3E%22%3Cinteger%3E%22%2C+%22datatype%22%3D%3E%22string%22%7D'