GuideLab Docs

Mark a team chat thread read

Lab only, members only. Moves the caller's read position forward, never back, and never past the last message. Returns it with the caller's unread total across the lab.

POST
/team-chat/threads/{threadId}/read

Lab only, members only. Moves the caller's read position forward, never back, and never past the last message. Returns it with the caller's unread total across the lab.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Path Parameters

threadId*string
Length1 <= length <= 200

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/team-chat/threads/string/read" \  -H "Content-Type: application/json" \  -d '{    "upToSequence": 1  }'
{  "lastReadSequence": 0,  "unreadCount": 0}
Empty
Empty
Empty