Flambe docs

Get a file

Returns the asset for a file the caller can read — their own, or one shared through a household. Prefer the CDN `url` from the file's metadata for anything user-facing; it is cached at the edge.

GET
/api/files/{id}

Returns the asset for a file the caller can read — their own, or one shared through a household. Prefer the CDN url from the file's metadata for anything user-facing; it is cached at the edge.

Authorization

bearerAuth
AuthorizationBearer <token>

A Clerk session JWT. Obtain one with a Clerk frontend SDK (session.getToken()) or, for server-to-server use, with a Clerk machine token. The token's sub claim is the Flambe user id that scopes every request.

In: header

Path Parameters

id*string
Formatuuid

Response Body

application/octet-stream

application/json

application/json

application/json

curl -X GET "https://example.com/api/files/497f6eca-6276-4993-bfeb-53cbbbba6f08"
"string"