chat
chat

Get Messages Since

Return messages between two users that arrived AFTER since.

Used by the frontend after a WebSocket reconnect to backfill messages that may have arrived while the socket was offline. Without this, a user who briefly loses connection sees no messages until they reload — inbox and open thread both appear frozen.

The caller passes the timestamp of the newest message it already has locally. The server returns everything strictly newer, ordered ASC so the client can append directly.

get/chat/messages-since/{user_id}/{other_user_id}

Path parameters

user_idstring required
other_user_idstring required

Query parameters

sincestring required

ISO 8601 timestamp; returns messages with timestamp > this

ISO 8601 timestamp; returns messages with timestamp > this

limitinteger

Safety cap on number of messages returned

Safety cap on number of messages returned

Headers

authorizationstring nullable

Response

Successful Response

{"stackTrail":"paths:/chat/messages-since/{user_id}/{other_user_id}:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 4 revisions of this API.