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.
/v1/inbox/counts#Get inbox counts
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.
curl "https://backend.sheetwa.com/v1/inbox/counts" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/chats#List chats
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. Defaultall.Default"all"querystring
Contact name or phone.tag_idstring
Only chats whose contact carries this tag.assignee_account_idstring
Only chats held by thisaccount_idfrom GET /v1/members.datestring
Only chats where the customer sent a message on this day, intimezone:today,yesterdayor a date like2026-10-05.from_datestring
Start of a range, inclusive. Give withto_dateinstead ofdate; at most 31 days.to_datestring
End of a range, inclusive.is_awaiting_replyboolean
truereturns 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.timezonestring
IANA timezone for the dates, e.g.Asia/Kolkata. Default: the workspace's timezone, else Asia/Kolkata.cursorstring
next_cursorfrom the previous page; omit for the first page. Keep the other filters the same; the page size stays as on the first page.page_sizeinteger
Rows per page, 1-100. Default 20.Default20
curl "https://backend.sheetwa.com/v1/chats?page_size=20" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/chats/{chat_id}#Get a chat
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)
chat_idrequiredstring
Achat_idfrom GET /v1/chats.
curl "https://backend.sheetwa.com/v1/chats/CHAT_ID" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/chats/{chat_id}#Assign, close, reopen or mark a chat read
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)
chat_idrequiredstring
Achat_idfrom GET /v1/chats.
Body parameters (2)
actionrequired"assign" | "claim" | "release" | "close" | "reopen" | "mark_read"
No extra notes.assignee_account_idstring
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"
}'/v1/chats/{chat_id}/messages#List a chat's messages
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)
chat_idrequiredstring
Achat_idfrom GET /v1/chats.
Query parameters (2)
cursorstring
next_cursorfrom the previous page; omit for the first page. Keep the other filters the same; the page size stays as on the first page.page_sizeinteger
Rows per page, 1-100. Default 20.Default20
curl "https://backend.sheetwa.com/v1/chats/CHAT_ID/messages?page_size=20" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/chats/{chat_id}/reply#Reply inside the 24-hour window
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)
chat_idrequiredstring
Achat_idfrom GET /v1/chats.
Body parameters (2)
textstring
The reply text. WhatsApp formatting such as *bold* works. Withquick_reply_id, defaults to the quick reply's text.quick_reply_idstring
Aquick_reply_idfrom GET /v1/quick-replies: sends its buttons, list or link button with the text.
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."
}'/v1/chats/{chat_id}/reply-template#Reply with a template
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)
chat_idrequiredstring
Achat_idfrom GET /v1/chats.
Body parameters (4)
template_namerequiredstring
An APPROVED template's name from GET /v1/templates.language_coderequiredstring
The template's language code, e.g.en_US.variablesstring[]
Body placeholder values in order.Default[]header_variablestring
Value for the template's header variable. Required when the header has one.
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"
]
}'/v1/notes#List notes of a chat or contact
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_idstring
An inbox chat. Give this or contact_id.contact_idstring
A CRM contact. Give this or chat_id.
curl "https://backend.sheetwa.com/v1/notes" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/notes#Add a note
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_idstring
An inbox chat. Give this or contact_id.contact_idstring
A CRM contact. Give this or chat_id.textrequiredstring
The note text.
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."
}'/v1/notes/{note_id}#Delete a note
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)
note_idrequiredstring
Anote_idfrom GET /v1/notes.
curl -X DELETE "https://backend.sheetwa.com/v1/notes/NOTE_ID" \
-H "Authorization: Bearer $SHEETWA_API_KEY"