Developers
API Versions
Qwetty versions what the API answers and what webhooks carry by date. Routes and request bodies are the same in every version; only the shape of responses and webhook payloads changes.
| Version | Shape |
|---|---|
2026-10-20 |
One shape per object, shared by REST answers and webhooks. Every object has object and id, references are nested (channel, contact, assignee), times are ISO 8601, and media comes as { url, expiresAt, … }. |
2026-09-23 |
The first release: flat rows with ids only. |
Choose a version
Section titled “Choose a version”Send the Qwetty-Version header to choose one per request:
curl https://api.qwetty.com/api/v1/chats \ -H "Authorization: Bearer $QWETTY_API_KEY" \ -H 'Qwetty-Version: 2026-10-20'Without the header, your key’s pinned version answers. New keys are pinned to the newest version; keys created before 2026-10-20 stay on 2026-09-23. The web app does not change a key’s pinned version, so to move an older key, send the header on every request or replace the key with a new one. Every authenticated response carries a Qwetty-Version header saying which version it is in. An unknown version returns 400 invalid_version.
Webhook endpoints have their own payload version. Endpoints on 2026-10-20 receive the same object REST answers with, under data.object — see webhooks.
Upgrade
Section titled “Upgrade”- Send
Qwetty-Version: 2026-10-20on a few requests and update your parsing. - Move your webhook endpoint to payload version
2026-10-20withPATCH /webhooks/{id}and update your receiver. - Keep sending the header, or create a new key (pinned to
2026-10-20) and drop the header.
What 2026-10-20 adds
Section titled “What 2026-10-20 adds”- Chats include
lastMessage,unreadCountand the replywindow, list by most recent activity, and filter bystatus,channelId,type,assignee,updatedSince, and name or number. - Messages include
direction,author, resolvedmentions, groupedreactions, signedmedia,replyTo, deliverystatuswith the provider’serror,edited/deleted, and theclientReferencethey were sent with.afterpages forward from a message you already have. - Lists add
hasMorebesidenextCursor. - New endpoints: group participants, the templates a chat can use now, and template render.
- New webhook events:
message.updatedandchat.updated.