Simplifying API Integration Through Clear and User-Friendly Documentation
This section provides detailed documentation for the available API endpoints in the Real-Time Chat API.
Endpoint: /auth/login
POST
{
"username": "string",
"password": "string"
}
{
"accessToken": "string",
"refreshToken": "string"
}
401
: Invalid credentials400
: Missing parametersEndpoint: /messages/send
POST
{
"chatId": "string",
"message": "string"
}
{
"messageId": "string",
"timestamp": "string"
}
404
: Chat not found400
: Invalid request bodyEndpoint: /messages
GET
chatId
(string): The ID of the chat.limit
(integer): Number of messages to fetch (optional).[
{
"messageId": "string",
"sender": "string",
"content": "string",
"timestamp": "string"
}
]
404
: Chat not found400
: Missing parametersEndpoint: /chats/create
POST
{
"name": "string",
"participants": ["string"]
}
{
"chatId": "string",
"name": "string",
"participants": ["string"]
}
400
: Invalid request bodyFor additional information, refer to the API Support Page.