chats
PATCH /chats/{id}
const url = 'https://api.qwetty.com/api/v1/chats/example';const options = { method: 'PATCH', headers: { 'Qwetty-Version': '2026-09-23', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"status":"open","snoozedUntil":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.qwetty.com/api/v1/chats/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Qwetty-Version: 2026-09-23' \ --data '{ "status": "open", "snoozedUntil": "2026-04-15T12:00:00Z" }'Required grants: chats:edit. 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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
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
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"}