List team chat threads
Lab only. The caller's staff threads in the active lab, most recent activity first. Direct threads appear once they have a message. Paginate with the previous page's `nextCursor`.
Lab only. The caller's staff threads in the active lab, most recent activity first. Direct threads appear once they have a message. Paginate with the previous page's nextCursor.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Query Parameters
1 <= length <= 2001 <= value <= 50Response Body
application/json
curl -X GET "https://example.com/team-chat/threads"{ "data": [ { "id": "string", "kind": "dm", "title": "string", "memberUserIds": [ "string" ], "lastSequence": 0, "lastActivityAt": "string", "lastMessage": { "id": "string", "threadId": "string", "sequence": 0, "senderUserId": "string", "body": "string", "attachments": [ { "id": "string", "name": "string", "mimeType": "string", "size": 0 } ], "createdAt": "string" }, "unreadCount": 0 } ], "nextCursor": "string"}List team chat messages GET
Lab only, members only. Newest first; `nextCursor` is the lowest sequence on the page, and `cursor` returns the messages before it.
Mark a team chat thread read POST
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.