Chat Messages
The /chat endpoint retrieves all messages sent during the last hour. This endpoint does not require any options.
GET/v5/chat
Parameters
This endpoint does not require any parameters. It returns all messages from the last hour.
Response Fields
| Field | Type | Description |
|---|---|---|
username | string | Username of the message sender |
message | string | Content of the message |
timestamp | string | ISO 8601 timestamp of the message |
Code Examples
curl -X GET \
"https://api.sylvain.sh/v5/chat"Try It
Error Handling
If parameters are missing or invalid, the API will return an error:
| Error Message | Description |
|---|---|
No messages stored | No messages have been sent in the last hour |
Related Endpoints
- POST /v5/chat - Send a message
- POST /v5/chat/private - Create and manage private chat channels
- DELETE /v5/chat/:token - Clear all messages from a private chat