chats
GET /chats/{id}/messages
const url = 'https://api.qwetty.com/api/v1/chats/example/messages?limit=20';const options = { method: 'GET', headers: {'Qwetty-Version': '2026-09-23', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.qwetty.com/api/v1/chats/example/messages?limit=20' \ --header 'Authorization: Bearer <token>' \ --header 'Qwetty-Version: 2026-09-23'Required grants: chats:view. Resource visibility follows the key’s channel access.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”The response version. Defaults to the API key’s pinned version; echoed on every answer.
Query Parameters
Section titled “Query Parameters”Opaque cursor bound to the tenant, resource and filters.
A message id: the messages after it, oldest first, paging forward (2026-10-20).
The Idempotency-Key a message was sent with (2026-10-20).
Responses
Section titled “Responses”Success
The 2026-10-20 shape. Keys pinned to 2026-09-23 receive the earlier flat rows.
object
object
object
Raw text in WhatsApp formatting; null once deleted
object
object
A video WhatsApp marked as a GIF: play it muted and looping
A ~20px image as a data URI, to draw before the file loads
object
object
Outgoing: sent, delivered, read or failed. Incoming: received until someone reads it, then read
The Idempotency-Key the message was sent with
object
object
Example
{ "data": [ { "object": "message", "direction": "incoming", "type": "text", "author": { "type": "contact" }, "reactions": [ { "authors": [ { "type": "business" } ] } ], "status": "sent" } ]}Error (see error.code). Rate rejection is 429; monthly quota is 403; unavailable admission is 503.
object
object
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }, "requestId": "example"}Error (see error.code). Rate rejection is 429; monthly quota is 403; unavailable admission is 503.
object
object
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }, "requestId": "example"}Error (see error.code). Rate rejection is 429; monthly quota is 403; unavailable admission is 503.
object
object
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }, "requestId": "example"}Error (see error.code). Rate rejection is 429; monthly quota is 403; unavailable admission is 503.
object
object
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }, "requestId": "example"}Error (see error.code). Rate rejection is 429; monthly quota is 403; unavailable admission is 503.
object
object
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }, "requestId": "example"}Error (see error.code). Rate rejection is 429; monthly quota is 403; unavailable admission is 503.
object
object
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }, "requestId": "example"}Error (see error.code). Rate rejection is 429; monthly quota is 403; unavailable admission is 503.
object
object
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }, "requestId": "example"}Error (see error.code). Rate rejection is 429; monthly quota is 403; unavailable admission is 503.
object
object
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }, "requestId": "example"}Error (see error.code). Rate rejection is 429; monthly quota is 403; unavailable admission is 503.
object
object
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }, "requestId": "example"}