GuideLab Docs

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.

POST
/team-chat/threads/{threadId}/attachments/finalize

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.

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/attachments/finalize" \  -H "Content-Type: application/json" \  -d '{    "attachmentId": "string"  }'
{  "attachmentId": "string",  "status": "ready"}
Empty
Empty
Empty
Empty
Empty