Flambe docs

List file metadata

Every file readable by the caller, paginated.

GET
/api/files/metadata

Every file readable by the caller, paginated.

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

Query Parameters

limit?integer
Range1 <= value <= 100
Default25
cursor?string

Opaque pagination cursor returned as next_cursor by the previous page. Base64-encoded DynamoDB ExclusiveStartKey; treat it as opaque.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/files/metadata"
{  "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"    }  ],  "next_cursor": "string"}