API References - Real Time Messaging
Last updated
Last updated
Welcome to the Awesome Chat API documentation! This API offers a robust set of endpoints for creating and managing chat platforms. Features include Room Management, Message Handling, Polls, Chat History, Message Replies, Room Role-Based Access Control (RBAC), Admin Moderation, User Management, Attachments, Emojis and Efficient Search Capabilities.
Get started by obtaining your API key and referring to detailed documentation for each endpoint. Ensure proper authentication and authorization for secure integration. Create a dynamic and feature-rich chat platform with the Awesome Chat API!
For a full list of APIs go to: https://messaging.sariska.io/swaggerui
/api/v1/messaging/rooms/{channel_id}/messages
Channel ID
channel123
Number of messages to retrieve
10
Offset for pagination
0
List of message IDs
[2001,2002]
messages group by day
false
/api/v1/messaging/rooms/{channel_id}/messages
Channel ID
channel123
If true, delete all messages in the channel
list of messages ids to delete
[2001,2002]
/api/v1/messaging/rooms/{channel_id}/messages/{message_id}
Channel ID
channel123
Message ID
1001
New content for the message
/api/v1/messaging/rooms/{channel_id}/messages/{message_id}/messages_replies
Channel ID
channel123
Message ID
1001
messages group by day
false
/api/v1/messaging/rooms/{channel_id}/messages/{message_id}/messages_replies
Channel ID
channel123
Message ID
1001
List of reply message IDs to delete
[2001,2002]
/api/v1/messaging/rooms/{channel_id}/messages/{message_id}/poll/is_voted
Channel ID
channel123
Message ID
1001
/api/v1/messaging/rooms/{channel_id}/messages/{message_id}/poll/{poll_option_id}
Channel ID
channel123
Message ID
1001
Poll Option ID
1
Generate a JWT token based on provided parameters.
/api/v1/misc/generate-token
API key tied to the Sariska account
Exp claim of JWT token
Nbf claim of JWT token
Scope of the token (messaging, media, sariska, or leave it blank)
User information
Get S3 presigned url and upload media to directly your s3 as you have configured in console
/api/v1/misc/get-presigned
File name
some-s3-folder/file-name.jpeg
File extension
jpeg