Skip to content

Messages API

Real-time messaging system with threads, participants, and server-sent events for live updates.

Prefix: /api/messages

Endpoints

Threads

MethodPathDescriptionRole
GET/threadsList message threads for the current userViewer+
GET/threads/{id}Get thread detailsViewer+
POST/threadsCreate a new message threadViewer+
DELETE/threads/{id}Delete a threadViewer+

Messages

MethodPathDescriptionRole
GET/threads/{id}/messagesList messages in a thread (paginated)Viewer+
POST/threads/{id}/messagesSend a message to a threadViewer+

Participants

MethodPathDescriptionRole
GET/threads/{id}/participantsList participants in a threadViewer+
POST/threads/{id}/participantsAdd a participant to a threadViewer+
DELETE/threads/{id}/participants/{user_id}Remove a participant from a threadViewer+

Real-Time

MethodPathDescriptionRole
GET/streamSSE stream for real-time message updatesViewer+

UniSync Documentation