Skip to Content

List folders

You're viewing API version 2026-09, which is deprecated and stops working on October 1, 2027. To move your integration, see Upgrading to 2026-10.
GET
/api/v1/folders

List folders in the current workspace, filtered by type (DOCUMENT or TEMPLATE) and optionally by parent folder.

Pass parentFolderId to list direct children of a specific folder. Omit it to list top-level folders.

Authorization

headerAuthorizationBearer <token>

Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.

Query Parameters

Header Parameters

authorization*string

Bearer token for API authentication

Response Body

List of folders

application/json
  1. response

List of folders

folders*array<>
Example Request
curl -X GET 'https://app.sajn.se/api/v1/folders?type=%22DOCUMENT%22' \  -H 'authorization: string'
Example Response
{  "folders": [    {      "id": "string",      "name": "string",      "type": "DOCUMENT",      "parentFolderId": "string",      "workspaceId": "string",      "createdById": "string",      "createdAt": null,      "updatedAt": null,      "childFolderCount": -9007199254740991,      "itemCount": -9007199254740991    }  ]}

Was this page helpful?