Flambe docs

Resolve file metadata in bulk

Resolves many file ids in one call. Ids the caller cannot read are omitted from the response rather than erroring, so a partial result is normal.

POST
/api/files/metadata/query

Resolves many file ids in one call. Ids the caller cannot read are omitted from the response rather than erroring, so a partial result is normal.

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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/files/metadata/query" \  -H "Content-Type: application/json" \  -d '{    "ids": [      "6f1c2e5a-6f0a-4c4e-9d2f-2c5a5b9e1a11",      "7a2d3f6b-7b1b-4d5f-8e3a-3d6b6c0f2b22"    ]  }'
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "user_id": "string",      "url": "http://example.com",      "content_type": "image/jpeg",      "size": 0,      "width": 0,      "height": 0,      "blur_hash": "string",      "created_at": "2019-08-24T14:15:22Z"    }  ]}