SMS
Create an SMS
Changed onThis endpoint creates an SMS message in Design Studio. After you create an SMS, link it to a workflow. If you make updates after linking the message, make sure you publish changes to send the latest content to your audience.
Not all accounts are set up to create SMS through Design Studio. Learn more about your options.
post/v1/design_studio/sms
Request
- Base URLhttps://api.customer.io
- URLhttps://api.customer.io/v1/design_studio/sms
- Authnone declared
Request body
Example request
{
"name": "Order shipped",
"content": "<x-sms><x-sms-body>Hi {{customer.first_name}}, your order has shipped.</x-sms-body><x-sms-media type=\"image\" href=\"https://example.com/order.png\"/></x-sms>",
"recipient": "{{customer.phone}}",
"sender_id": 2
}Response
SMS created
Example response
{
"sms": {
"name": "Order shipped",
"content": "<x-sms><x-sms-body>Hi {{customer.first_name}}, your order has shipped.</x-sms-body></x-sms>",
"recipient": "{{customer.phone}}",
"sender_id": 2,
"created": 1790000000,
"updated": 1790000000
}
}Changes
- info
api tag
SMSadded - info
api tag
Design Studio SMSremoved
- info
- info
endpoint added
- info