Appearance
chat
13 endpoints at a glance
| Method | Path | Summary |
|---|---|---|
DELETE | /chat/attachments/{attachment_id} | Delete Attachment |
GET | /chat/attachments/{attachment_id}/download | Download Attachment |
GET | /chat/conversations | List Conversations |
POST | /chat/conversations | Create Conversation |
GET | /chat/conversations/{conv_id} | Get Conversation |
POST | /chat/conversations/{conv_id}/attachments | Upload Attachment |
POST | /chat/conversations/{conv_id}/leave | Leave Conversation |
GET | /chat/conversations/{conv_id}/messages | List Messages |
POST | /chat/conversations/{conv_id}/messages | Send Message |
POST | /chat/conversations/{conv_id}/read | Mark Read |
DELETE | /chat/messages/{msg_id} | Delete Message |
PATCH | /chat/messages/{msg_id} | Edit Message |
GET | /chat/unread-count | Unread Count |
chat
List Conversations
Create Conversation
Get Conversation
Mark Read
Leave Conversation
POST
/chat/conversations/{conv_id}/leave
Leave a conversation. If it becomes empty, it's destroyed and its
messages, read cursors, and attachments are cascaded away.
Parameters
Header Parameters
authorization
Path Parameters
conv_id*
Type
Requiredstring
Responses
Successful Response
application/json
JSON "additionalProperties": "string"
{
}
Unread Count
List Messages
GET
/chat/conversations/{conv_id}/messages
Cursor window of messages as a diff.
before→ older history (scroll-up);newcarries the older page,
has_morereports whether yet-older messages exist.after→ live incremental poll;newcarries messages newer than
the cursor andsince(if given) yields thechangedset (edits +
tombstones) so already-rendered bubbles can be patched.- neither → initial load;
newis the latest page,has_morereports
whether older history exists.
Parameters
Header Parameters
authorization
Path Parameters
conv_id*
Type
Requiredstring
Query Parameters
after
before
since
limit
Type
integer
Default
50Responses
Successful Response
application/json
JSON "additionalProperties": "string"
{
}
Send Message
Delete Message
Edit Message
Upload Attachment
Download Attachment
Delete Attachment
DELETE
/chat/attachments/{attachment_id}
Remove a chat attachment (uploader-only) — e.g. an uploaded file the
user decides not to send.
Parameters
Header Parameters
authorization
Path Parameters
attachment_id*
Type
Requiredstring
Responses
Successful Response
application/json
JSON "additionalProperties": "string"
{
}