Remove a member from a team chat group
Lab only, group members only. Any member may remove anyone; removing yourself leaves the group, and the response thread is then null.
Lab only, group members only. Any member may remove anyone; removing yourself leaves the group, and the response thread is then null.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Path Parameters
1 <= length <= 2001 <= length <= 200Response Body
application/json
curl -X DELETE "https://example.com/team-chat/threads/string/members/string"{ "thread": { "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 }}Prepare a team chat attachment upload POST
Lab only, members only. The conversation attachment contract: a one-use staging key and an exact-size, content-type-bound presigned PUT (15 minutes). Team chat makes no thumbnails, so the thumbnail fields are null. Call finalize after the upload.
Send a team chat message POST
Lab only, members only. The message id is `clientMessageId`: a retry returns the stored message with 200 and repeats no side effect. Attachments must be the caller's finalized, unsent uploads to this thread. Members are notified live; members who were caught up also get a content-free push.