Interactive Messages
Send CTA
Sends a message with a URL button. Supported on WhatsApp and Z-API.
POST
/
messages
/
interactive
/
send-cta
Sends a message with a URL button (Call to Action). This is supported on WhatsApp and Z-API channels.
Authentication: Requires a valid API key or session. Pass as Authorization: Bearer <api_key>.
Request Body
Required Parameters
agentId: The ID of the agent.conversationId: The ID of the conversation.body_text: Main message body.button_display_text: Label for the URL button.button_url: The URL to open (must be a valid URL withhttps://).
Optional Parameters
header_text: Header text.footer_text: Footer text.
Example
Error Responses
| HTTP Status | Meaning |
|---|---|
| 400 | Invalid request body (e.g., empty URL) |
| 401 | Invalid or missing API key |
| 403 | Agent does not belong to your organization |
| 404 | Conversation or agent not found |
| 500 | WhatsApp API error |
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
agentId
string
requiredThe ID of the agent.
conversationId
string
requiredThe ID of the conversation.
header_text
string
Optional header text.
body_text
string
requiredMain message body.
footer_text
string
Optional footer text.
button_display_text
string
requiredLabel for the URL button.
button_url
string
requiredThe URL to open.
Was this page helpful?

