How to send WhatsApp message using REST API - QuickReply.ai
After your account on QuickReply.ai is active, you can send template message to users.
Below are the details of REST API
URL: https://app.quickreply.ai/api/whatsapp/send-template?templateId={template_id}
Method: POST
Headers: client-id: {client_id} secret-key: {secret_key} Content-Type: application/json
Body: {
"to": "{{recipient_phone in international format}}",
"name": "{{recipient_name}}",
"email": "{{recipient_email}}",
"link": "{{media_url}}",
"params": [ {{params}} ],
"button_params": [ {{button_params}} ],
"hook_with_playbook":"{{playbook_id}}"
}'
Below is the explanation of each parameter (Please remove { } while making API calls)
Sample curl request for template with dynamic URL as a cta button
curl --location --request POST 'https://app.intelliticks.com/api/whatsapp/send-template?templateId=31fa9753-f4f9-48b9-a5b6-ef62cbdd8eeb' \
--header 'client-id: <client id> \
--header 'secret-key: <secret key> \
--header 'Content-Type: application/json' \
--data-raw '{
"to": "+911231231231",
"name": "Iticks",
"params": [
"param1",
"param2"
],
"button_params": [
"param1"
],
}'
Last updated