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 with https://).

Optional Parameters

  • header_text: Header text.
  • footer_text: Footer text.

Example

{
  "agentId": "agent-123",
  "conversationId": "conv-456",
  "header_text": "Check Us Out",
  "body_text": "Visit our website for more information.",
  "footer_text": "We look forward to seeing you!",
  "button_display_text": "Open Website",
  "button_url": "https://chatvolt.ai"
}

Error Responses

HTTP StatusMeaning
400Invalid request body (e.g., empty URL)
401Invalid or missing API key
403Agent does not belong to your organization
404Conversation or agent not found
500WhatsApp API error

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
agentId
string
required

The ID of the agent.

conversationId
string
required

The ID of the conversation.

header_text
string

Optional header text.

body_text
string
required

Main message body.

footer_text
string

Optional footer text.

button_display_text
string
required

Label for the URL button.

button_url
string
required

The URL to open.