Auto-replies and quick replies
8 endpoints

Auto-replies and quick replies API

Keyword auto replies that answer incoming messages, and the saved quick replies your team sends from the inbox.

Badges:
Read onlyWrites dataSends to WhatsAppDestructive
GET/v1/auto-replies#

List auto-replies

Read only

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.

bashGET /v1/auto-replies
curl "https://backend.sheetwa.com/v1/auto-replies" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
POST/v1/auto-replies#

Create an auto-reply

Writes data

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)

  • triggersrequired

    object[]

    No extra notes.
  • match_mode

    "any" | "all"

    any fires when one trigger matches; all needs every trigger.
  • textrequired

    string

    The text sent back automatically.
  • interactive

    object

    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_active

    boolean

    false keeps the auto-reply saved but paused.
bashPOST /v1/auto-replies
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."
  }'
Writes data

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)

Body parameters (5)

  • triggers

    object[]

    No extra notes.
  • match_mode

    "any" | "all"

    any fires when one trigger matches; all needs every trigger.
  • text

    string

    The text sent back automatically.
  • interactive

    object

    No extra notes.
  • is_active

    boolean

    false keeps the auto-reply saved but paused.
bashPATCH /v1/auto-replies/{auto_reply_id}
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
  }'
Destructive

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)

bashDELETE /v1/auto-replies/{auto_reply_id}
curl -X DELETE "https://backend.sheetwa.com/v1/auto-replies/AUTO_REPLY_ID" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
GET/v1/quick-replies#

List quick replies

Read only

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.

bashGET /v1/quick-replies
curl "https://backend.sheetwa.com/v1/quick-replies" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
POST/v1/quick-replies#

Create a quick reply

Writes data

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)

  • namerequired

    string

    Short label the team picks it by, e.g. "Order status".
  • textrequired

    string

    The reply text. WhatsApp formatting such as *bold* works.
  • interactive

    object

    Buttons, a list or a link button sent with the text when the quick reply is used in POST /v1/chats/{chat_id}/reply.
bashPOST /v1/quick-replies
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."
  }'
Writes data

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)

Body parameters (3)

  • name

    string

    Short label the team picks it by, e.g. "Order status".
  • text

    string

    The reply text. WhatsApp formatting such as *bold* works.
  • interactive

    object

    No extra notes.
bashPATCH /v1/quick-replies/{quick_reply_id}
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."
  }'
Destructive

Removes a WhatsApp inbox quick reply for the whole workspace. Cannot be undone.

Permission: quick_replies:change

Path parameters (1)

bashDELETE /v1/quick-replies/{quick_reply_id}
curl -X DELETE "https://backend.sheetwa.com/v1/quick-replies/QUICK_REPLY_ID" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"