Auto-replies and quick replies API
Keyword auto replies that answer incoming messages, and the saved quick replies your team sends from the inbox.
/v1/auto-replies#List auto-replies
WhatsApp auto-replies on the connected number: trigger words, reply text, buttons, list or link button (interactive), whether it sends a file (has_media, media_type; files are attached in the dashboard) and whether each is active. An auto-reply with is_dormant: true is over the plan limit and does not fire.
Permission: auto_replies:view
Takes no parameters.
curl "https://backend.sheetwa.com/v1/auto-replies" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/auto-replies#Create an auto-reply
Adds an auto-reply that answers incoming WhatsApp messages matching its triggers, optionally with buttons, a list or a link button (interactive). Pass is_active: false to save it paused. Fails with DUPLICATE_AUTO_REPLY when another auto-reply already uses the same word.
Permission: auto_replies:change
Body parameters (5)
triggersrequiredobject[]
No extra notes.match_mode"any" | "all"
anyfires when one trigger matches;allneeds every trigger.textrequiredstring
The text sent back automatically.interactiveobject
Buttons, a list or a link button sent with the text. Tapping a button or row sends its title back, which another auto-reply can answer.is_activeboolean
falsekeeps the auto-reply saved but paused.
curl -X POST "https://backend.sheetwa.com/v1/auto-replies" \
-H "Authorization: Bearer $SHEETWA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"triggers": [
{
"keyword": "price",
"match_type": "contains"
}
],
"text": "Our prices are on our website."
}'/v1/auto-replies/{auto_reply_id}#Update an auto-reply
Changes a WhatsApp auto-reply's triggers, match mode, text or buttons (interactive, null removes them), or turns it on or off with is_active; omitted fields stay; its file stays. Turning one on needs an active plan; pausing never does.
Permission: auto_replies:change
Path parameters (1)
auto_reply_idrequiredstring
Anauto_reply_idfrom GET /v1/auto-replies.
Body parameters (5)
triggersobject[]
No extra notes.match_mode"any" | "all"
anyfires when one trigger matches;allneeds every trigger.textstring
The text sent back automatically.interactiveobject
No extra notes.is_activeboolean
falsekeeps the auto-reply saved but paused.
curl -X PATCH "https://backend.sheetwa.com/v1/auto-replies/AUTO_REPLY_ID" \
-H "Authorization: Bearer $SHEETWA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"is_active": false
}'/v1/auto-replies/{auto_reply_id}#Delete an auto-reply
Removes a WhatsApp auto-reply for good. To stop it for now use PATCH /v1/auto-replies/{auto_reply_id} with is_active: false. Owner or admin keys only.
Permission: auto_replies:change
Path parameters (1)
auto_reply_idrequiredstring
Anauto_reply_idfrom GET /v1/auto-replies.
curl -X DELETE "https://backend.sheetwa.com/v1/auto-replies/AUTO_REPLY_ID" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/quick-replies#List quick replies
Saved quick replies of the WhatsApp team inbox: name, text, buttons, list or link button (interactive) and whether it has a file (has_media). Send one with POST /v1/chats/{chat_id}/reply and its quick_reply_id so its buttons go too. The Chrome extension's quick replies are separate and not included.
Permission: any key
Takes no parameters.
curl "https://backend.sheetwa.com/v1/quick-replies" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/quick-replies#Create a quick reply
Saves a new WhatsApp inbox quick reply for the team, optionally with buttons, a list or a link button (interactive). Files are attached in the dashboard. Fails with a limit error when the plan's quick-reply limit is reached.
Permission: quick_replies:change
Body parameters (3)
namerequiredstring
Short label the team picks it by, e.g. "Order status".textrequiredstring
The reply text. WhatsApp formatting such as *bold* works.interactiveobject
Buttons, a list or a link button sent with the text when the quick reply is used in POST /v1/chats/{chat_id}/reply.
curl -X POST "https://backend.sheetwa.com/v1/quick-replies" \
-H "Authorization: Bearer $SHEETWA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Order status",
"text": "Your order ships within 2 days."
}'/v1/quick-replies/{quick_reply_id}#Update a quick reply
Changes a WhatsApp inbox quick reply's name, text or buttons (interactive, null removes them); omitted fields stay. Attached media stays.
Permission: quick_replies:change
Path parameters (1)
quick_reply_idrequiredstring
Aquick_reply_idfrom GET /v1/quick-replies.
Body parameters (3)
namestring
Short label the team picks it by, e.g. "Order status".textstring
The reply text. WhatsApp formatting such as *bold* works.interactiveobject
No extra notes.
curl -X PATCH "https://backend.sheetwa.com/v1/quick-replies/QUICK_REPLY_ID" \
-H "Authorization: Bearer $SHEETWA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Your order ships within 3 days."
}'/v1/quick-replies/{quick_reply_id}#Delete a quick reply
Removes a WhatsApp inbox quick reply for the whole workspace. Cannot be undone.
Permission: quick_replies:change
Path parameters (1)
quick_reply_idrequiredstring
Aquick_reply_idfrom GET /v1/quick-replies.
curl -X DELETE "https://backend.sheetwa.com/v1/quick-replies/QUICK_REPLY_ID" \
-H "Authorization: Bearer $SHEETWA_API_KEY"