Skip to content

Chat Messages

The /chat endpoint retrieves all messages sent during the last hour. This endpoint does not require any options.

Parameters

This endpoint does not require any parameters. It returns all messages from the last hour.

Response Fields

FieldTypeDescription
usernamestringUsername of the message sender
messagestringContent of the message
timestampstringISO 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 MessageDescription
No messages storedNo messages have been sent in the last hour