Finalize a team chat attachment upload
Lab only, the uploader only. Promotes the staged bytes to their immutable key and records their SHA-256; the attachment is then ready to send. Idempotent: an already finalized upload touches no storage.
Lab only, the uploader only. Promotes the staged bytes to their immutable key and records their SHA-256; the attachment is then ready to send. Idempotent: an already finalized upload touches no storage.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Path Parameters
1 <= length <= 200Request 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/attachments/finalize" \ -H "Content-Type: application/json" \ -d '{ "attachmentId": "string" }'{ "attachmentId": "string", "status": "ready"}Open a direct thread or create a group POST
Lab only. A direct thread is get-or-create per member pair (201 when created, 200 when it existed) and notifies nobody until its first message. A group includes the caller and notifies its members.
Download a team chat attachment GET
Lab only, thread members only. Streams a sent attachment. `proxy=true` serves safe types inline; `preview=true` reads are byte-budgeted.