v2

latestOpenAPI 3.1.02026-08-05313314398.1 KB
chats

Download Chat Attachment

Stream a chat attachment by storage key.

Authz model: the signed token is the capability. Possession of a valid token grants read access for the token's TTL (7 days by default, matching the prior S3 presigned-URL behavior). The upload endpoint is still JWT-protected, so only authed users can ever obtain a valid token. <img src> cannot send Authorization headers, so the JWT trust model doesn't work here — signed URLs do.

get/api/v1/chats/attachments/{key}

Path parameters

keystring required

Query parameters

tokenstring required

HMAC-signed token returned by /attachments upload.

HMAC-signed token returned by /attachments upload.

Response

Successful Response

{"stackTrail":"paths:/api/v1/chats/attachments/{key}:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}