Chats API
API is ideal for building collaborative or real-time messaging platforms with rich interaction capabilities.
The Chats API is currently in a closed beta phase and not publicly available.
Access is limited to selected partners for testing and feedback purposes.
The Chats API offers a comprehensive set of endpoints designed to manage conversations and user interactions within a chat environment.
It supports key features:
Chat Management: Create, retrieve, and manage chat messages.
Reaction Management: Add, view, and track emoji or custom reactions on messages.
Pinning Management: Pin important messages.
For real time events, look at Real Time Events
Chat Management
Fetches a list of chat messages in a paginated format. Supports sorting by creation time, pinned status, or specific reaction types.
The number of items to skip before starting to return results. Useful for paginating through results.
0
Example: 10
The number of items to return. Used for paginating results. Limits the size of the result set.
20
Example: 20
The field by which to sort the results. Supported values include 'CreatedAt', 'Pinned', and reaction types like ':thumbsup:' or ':thumbsdown:'.
CreatedAt
Example: Pinned
Possible values: Determines whether the sorting should be in ascending order. Set to 'false' for descending order.
true
Example: false
GET /v1/chats HTTP/1.1
Host: api.quicksync.me
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Success
{
"totalCount": 1,
"messages": [
{
"chatId": "text",
"message": "text",
"createdAt": "2025-06-26T08:48:07.130Z",
"user": {
"id": "text",
"name": "text"
},
"pinned": {
"id": "text"
},
"reactions": [
{
"name": "text",
"count": 1,
"users": [
{
"id": "text"
}
]
}
]
}
]
}
Creates and stores a new chat message within a session. This is typically used when a user sends a message in a conversation.
POST /v1/chats HTTP/1.1
Host: api.quicksync.me
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"message": "text"
}
Success
{
"chatId": "text",
"message": "text",
"createdAt": "2025-06-26T08:48:07.130Z"
}
Deletes a chat message by its unique identifier.
DELETE /v1/chats/{chatId} HTTP/1.1
Host: api.quicksync.me
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Adds a reaction (e.g., emoji in shortcodes format) to a specific chat message identified by its chatId.
POST /v1/chats/{chatId}/reactions HTTP/1.1
Host: api.quicksync.me
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"reaction": "text"
}
{
"reactionId": "text"
}
Reactions Management
Retrieves a list of reactions associated with multiple chat messages using their chat IDs.
GET /v1/chats/reactions HTTP/1.1
Host: api.quicksync.me
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Success
[
{
"chatId": "text",
"id": "text",
"reaction": "text"
}
]
Removes a specific reaction from a chat message. Requires both the chatId and reactionId.
DELETE /v1/chats/{chatId}/reactions/{reactionId} HTTP/1.1
Host: api.quicksync.me
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Success
No content
Pinning Management
Removes a previously pinned message in a chat, using the chatId and pinId.
DELETE /v1/chats/{chatId}/pins/{pinId} HTTP/1.1
Host: api.quicksync.me
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Success
No content
Last updated