chats
GET /chats
const url = 'https://api.qwetty.com/api/v1/chats?limit=20&type=direct';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?limit=20&type=direct' \ --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”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.
One or more of open, pending, snoozed, closed, comma-separated (2026-10-20).
Only this channel’s chats (2026-10-20).
Direct or group (2026-10-20).
Unassigned, or a user id (2026-10-20).
Only chats changed after this ISO 8601 time: an incremental sync (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
The address on the channel: a phone number, a page-scoped id, a group id
object
object
Example
{ "data": [ { "object": "chat", "type": "direct", "status": "open", "handledBy": "bot", "lastMessage": { "direction": "incoming" } } ]}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"}