Send CTA URL Message
Send messages with external link buttons
Reading time: 1 minute
Send CTA URL Message
Send messages with external link buttons.
POST
{{base_url}}/w/message/cta_urlQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
phone_number_id | string | Yes | Phone number ID of the sender |
Request Body (JSON)
| Parameter | Type | Required | Description |
|---|---|---|---|
phone | string | Yes | Recipient phone number |
body_text | string | Yes | Message text |
display_text | string | Yes | Button text (max 20 characters) |
url | string | Yes | Full URL (must start with https://) |
header_text | string | No | Header text |
footer_text | string | No | Footer text |
URL Requirements:
- Must start with
https://(nothttp://) - Must be a valid and accessible URL
Example Request
Example Requestbash
curl -X POST "{{base_url}}/w/message/cta_url?phone_number_id=123456" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Awal-Signature-256: sha256=abc..." \
-H "X-Timestamp: 1704124800" \
-H "X-Domain: your-workspace" \
-H "X-Client-ID: your-client-id" \
-d '{
"phone": "96650000000",
"header_text": "š Exclusive Offer",
"body_text": "Get 50% off on your first order! Don't miss this golden opportunity.",
"footer_text": "Offer ends soon",
"display_text": "Shop Now",
"url": "https://example.com/special-offer"
}'Related
ā Back to Messages
View Guide