API
chat.setThreadRead
API
chat.setThreadRead
Updates the current identity's last read timestamp in the given thread.
POST https://chat.api.rivet.gg/v1/threads/{thread_id}/read
curl -X POST -d '@body.json' 'https://chat.api.rivet.gg/v1/threads/{thread_id}/read'
Authorizations
Authorization[header]required
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
thread_idrequired
string
Body
last_read_tsrequired
string
Any messages newer than this timestamp will be marked as unread. This should be the current timestamp (in milliseconds).
curl -X POST -d '@body.json' 'https://chat.api.rivet.gg/v1/threads/{thread_id}/read'