Graniite Docs

List folders the token can see.

Returns folders in the token's scope. Unscoped tokens get the user's full folder list; scoped tokens get only the folders they were minted against. Each row includes item_count. Per-token rate limit: 1000/hr.

GET
/folders

Returns folders in the token's scope. Unscoped tokens get the user's full folder list; scoped tokens get only the folders they were minted against. Each row includes item_count. Per-token rate limit: 1000/hr.

Authorization

bearerAuth
AuthorizationBearer <token>

Per-user bearer token minted at /settings/integrations. Format: 'lev_' followed by 32 base64url chars. Each token carries a capability set (read | write) and a folder scope (whole library or a list of specific folders). Per-endpoint requirements are noted on each operation.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/folders"
{
  "folders": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "last_added_at": "2019-08-24T14:15:22Z",
      "item_count": 0
    }
  ]
}
{
  "error": "string",
  "message": "string"
}
{
  "error": "rate_limited",
  "retry_after_sec": 0
}