Chat
POST /api/v1/chat/rooms/{roomId}/messages
POST
Access: Bearer token required.
bearerAuthheader
AuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
roomId*string- No bearer token was sent.
- The access token has expired. Refresh it and retry.
- The token is malformed or signed with another secret.
application/json- response
The envelope every error uses.
status*integerHTTP status code, repeated in the body.
success*booleanAlways false for errors.
message*stringHuman-readable reason. Safe to show to the user.
data*unknownAlways null for errors.
code?stringMachine-readable error code, present on some errors.
errorData?Extra details, present on some errors.
curl -X POST 'http://localhost:4000/api/v1/chat/rooms/string/messages'Example Response
{ "status": 401, "success": false, "message": "Authentication required. Please provide a valid token.", "data": null}