Inbox
10 endpoints

Inbox API

Read chats and their messages, reply inside the 24-hour window or with a template, assign or close chats, and keep private team notes.

Badges:
Read onlyWrites dataSends to WhatsAppDestructive
GET/v1/inbox/counts#

Get inbox counts

Read only

Counts of unassigned, mine, open, closed and unread WhatsApp inbox chats. The fastest check for whether anything needs attention.

Permission: inbox:view

Takes no parameters.

bashGET /v1/inbox/counts
curl "https://backend.sheetwa.com/v1/inbox/counts" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
GET/v1/chats#

List chats

Read only

WhatsApp inbox chats with contact, phone, assignee, last message, reply-window state and whether a person still owes the customer a reply (is_awaiting_reply, waiting_minutes). view picks the queue. Narrow to customers who wrote on a day with date (or from_date and to_date), and to unanswered customers with is_awaiting_reply. Read a chat with GET /v1/chats/{chat_id}/messages; for every message of a day use GET /v1/messages.

Permission: inbox:view

Query parameters (11)

  • view

    "unassigned" | "mine" | "all" | "closed" | "unread"

    Which queue to read. Default all.Default "all"
  • query

    string

    Contact name or phone.
  • tag_id

    string

    Only chats whose contact carries this tag.
  • assignee_account_id

    string

    Only chats held by this account_id from GET /v1/members.
  • date

    string

    Only chats where the customer sent a message on this day, in timezone: today, yesterday or a date like 2026-10-05.
  • from_date

    string

    Start of a range, inclusive. Give with to_date instead of date; at most 31 days.
  • to_date

    string

    End of a range, inclusive.
  • is_awaiting_reply

    boolean

    true returns only open chats whose latest customer message has no reply from a person after it. Auto-replies, lifecycle messages and broadcasts do not count as replies. Without a date it checks customers who wrote in the last 7 days.
  • timezone

    string

    IANA timezone for the dates, e.g. Asia/Kolkata. Default: the workspace's timezone, else Asia/Kolkata.
  • cursor

    string

    next_cursor from the previous page; omit for the first page. Keep the other filters the same; the page size stays as on the first page.
  • page_size

    integer

    Rows per page, 1-100. Default 20.Default 20
bashGET /v1/chats
curl "https://backend.sheetwa.com/v1/chats?page_size=20" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
Read only

One WhatsApp inbox chat: contact, state, assignee, unread count, tags, reply-window state and whether a person still owes the customer a reply. Read its messages with GET /v1/chats/{chat_id}/messages.

Permission: inbox:view

Path parameters (1)

bashGET /v1/chats/{chat_id}
curl "https://backend.sheetwa.com/v1/chats/CHAT_ID" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
PATCH/v1/chats/{chat_id}#

Assign, close, reopen or mark a chat read

Writes data

Changes one WhatsApp chat: assign (needs assignee_account_id from GET /v1/members), claim (take it for this key's owner), release (back to unassigned), close, reopen or mark_read. Safe to repeat.

Permission: inbox:change

Path parameters (1)

Body parameters (2)

  • actionrequired

    "assign" | "claim" | "release" | "close" | "reopen" | "mark_read"

    No extra notes.
  • assignee_account_id

    string

    Needed for assign: an account_id from GET /v1/members.
bashPATCH /v1/chats/{chat_id}
curl -X PATCH "https://backend.sheetwa.com/v1/chats/CHAT_ID" \
  -H "Authorization: Bearer $SHEETWA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "close"
  }'
GET/v1/chats/{chat_id}/messages#

List a chat's messages

Read only

Messages of one WhatsApp chat, oldest to newest within a page, with direction, text, type and status. sender_kind says who wrote each one: customer, team_member, phone, ai_agent or api (a person), or auto_reply, lifecycle_message, broadcast, chatbot, chatbot_reminder or system (automatic). next_cursor pages back in time.

Permission: inbox:view

Path parameters (1)

Query parameters (2)

  • cursor

    string

    next_cursor from the previous page; omit for the first page. Keep the other filters the same; the page size stays as on the first page.
  • page_size

    integer

    Rows per page, 1-100. Default 20.Default 20
bashGET /v1/chats/{chat_id}/messages
curl "https://backend.sheetwa.com/v1/chats/CHAT_ID/messages?page_size=20" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
POST/v1/chats/{chat_id}/reply#

Reply inside the 24-hour window

Sends to WhatsApp

Sends a free-text WhatsApp reply in a chat, or a saved quick reply with its buttons, list or link button (quick_reply_id; its file is not sent). Works only while the 24-hour reply window is open (is_reply_window_open from GET /v1/chats/{chat_id}); after that use POST /v1/chats/{chat_id}/reply-template. Claims an unassigned chat. Reaches a real phone.

Permission: inbox:change

Path parameters (1)

Body parameters (2)

  • text

    string

    The reply text. WhatsApp formatting such as *bold* works. With quick_reply_id, defaults to the quick reply's text.
  • quick_reply_id

    string

    A quick_reply_id from GET /v1/quick-replies: sends its buttons, list or link button with the text.
bashPOST /v1/chats/{chat_id}/reply
curl -X POST "https://backend.sheetwa.com/v1/chats/CHAT_ID/reply" \
  -H "Authorization: Bearer $SHEETWA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "text": "Thanks, your order is on its way."
  }'
Sends to WhatsApp

Sends an APPROVED WhatsApp template in an existing chat; the only way to reach the customer after the 24-hour window closes. variables fill body placeholders in order, NAMED ones too (see GET /v1/templates/{template_name}/{language_code}); a header variable needs header_variable. To message someone with no chat use POST /v1/messages. Reaches a real phone and is billed.

Permission: inbox:change

Path parameters (1)

Body parameters (4)

  • template_namerequired

    string

    An APPROVED template's name from GET /v1/templates.
  • language_coderequired

    string

    The template's language code, e.g. en_US.
  • variables

    string[]

    Body placeholder values in order.Default []
  • header_variable

    string

    Value for the template's header variable. Required when the header has one.
bashPOST /v1/chats/{chat_id}/reply-template
curl -X POST "https://backend.sheetwa.com/v1/chats/CHAT_ID/reply-template" \
  -H "Authorization: Bearer $SHEETWA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "template_name": "order_update",
    "language_code": "en",
    "variables": [
      "Asha",
      "#1042"
    ]
  }'
GET/v1/notes#

List notes of a chat or contact

Read only

Private team notes on a WhatsApp chat or CRM contact; never sent to the customer. A chat's list includes notes on its contact.

Permission: notes:view

Query parameters (2)

  • chat_id

    string

    An inbox chat. Give this or contact_id.
  • contact_id

    string

    A CRM contact. Give this or chat_id.
bashGET /v1/notes
curl "https://backend.sheetwa.com/v1/notes" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
POST/v1/notes#

Add a note

Writes data

Writes a private team note on a WhatsApp chat or CRM contact. The customer never sees it. Use for summaries, hand-over context and reminders.

Permission: notes:change

Body parameters (3)

  • chat_id

    string

    An inbox chat. Give this or contact_id.
  • contact_id

    string

    A CRM contact. Give this or chat_id.
  • textrequired

    string

    The note text.
bashPOST /v1/notes
curl -X POST "https://backend.sheetwa.com/v1/notes" \
  -H "Authorization: Bearer $SHEETWA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "chat_id": "CHAT_ID",
    "text": "Asked for a refund. Call back on Monday."
  }'
Destructive

Deletes one note from a WhatsApp chat or CRM contact. Authors can delete their own; owner and admin keys can delete any. Cannot be undone.

Permission: notes:change

Path parameters (1)

bashDELETE /v1/notes/{note_id}
curl -X DELETE "https://backend.sheetwa.com/v1/notes/NOTE_ID" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"