curl "https://app.tatango.com/api/v2/transactional_messages" -d '{"phone_number":"2141234567","content":"Hello from Tatango!"}' -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-u [email protected]:my_api_key \
-H "Host: example.org" \
-H "Cookie: "{
"status": "Message successfully sent.",
"transactional_message": {
"id": 1,
"number": "2835550430",
"content": "Message content required. Max-size 5000 if is_mms",
"status": "pending"
}
}This endpoint sends a Transactional MMS Message. Transactional MMS Messages are limited to 5000 characters.
curl "https://app.tatango.com/api/v2/transactional_messages" -d '{"phone_number":"2141234567","content":"Hello from Tatango!"}' -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-u [email protected]:my_api_key \
-H "Host: example.org" \
-H "Cookie: "{
"status": "Message successfully sent.",
"transactional_message": {
"id": 1,
"number": "2835550430",
"content": "Message content required. Max-size 5000 if is_mms",
"status": "pending"
}
}POST https://app.tatango.com/api/v2/transactional_messages
Tatango authenticates API requests by validating an API key passed via HTTP Basic Authentication. Use your login email as the username and your API key as the password.
Show child attributes
Phone number (numbers only - no spaces, dashes or other characters).
Message content
5000Accepts true or false. If true message will be sent as MMS. If false, message will be sent as SMS.
The subject line of your message. The subject is bold and sent above the content included in your request. This is required if is_mms is true.
Fallback content is text only, and is sent in the case that the handset is unable to receive MMS messages, limited to 160 characters. This is required if is_mms is true.
160The attachment_id is the id that references the media attachment to include in an MMS message. This is required if is_mms is true.
Webhook url (will send result of send to).
Message successfully sent
"Message successfully sent."
Was this page helpful?