chats
POST /chats
const url = 'https://api.qwetty.com/api/v1/chats';const options = { method: 'POST', headers: { 'Qwetty-Version': '2026-09-23', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"channelId":"example","contactId":"example","platformId":"example","phoneId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.qwetty.com/api/v1/chats \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Qwetty-Version: 2026-09-23' \ --data '{ "channelId": "example", "contactId": "example", "platformId": "example", "phoneId": "example" }'Required grants: chats:create. 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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "channelId": "example", "contactId": "example", "platformId": "example", "phoneId": "example"}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" } }}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"}