messages
Send Message
Changed onSend an outbound message (SMS or iMessage) via the provider assigned to the number.
post/v1/messages
Request
- Base URLhttps://api.agentphone.ai
- URLhttps://api.agentphone.ai/v1/messages
- AuthHTTP bearer
Request body
Example request
{
"recipients": [
"+14155551234",
"+16505551234"
],
"channel": "whatsapp",
"send_style": "confetti",
"reply_to_message_id": "cmat9x3i20000a2m6y3d9r1u2",
"buttons": [
"Confirm",
"Reschedule",
"Cancel"
],
"cta": {
"display_text": "Track order",
"url": "https://example.com/track/123"
},
"template": {
"language": "en_US",
"name": "order_shipped",
"variables": [
"1234"
]
}
}Response
Successful Response
Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning