Skip to Content

Get a folder by ID

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/{id}

Retrieve a single folder. The folder must belong to the current workspace.

Authorization

headerAuthorizationBearer <token>

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

Path Parameters

id*string

Header Parameters

authorization*string

Bearer token for API authentication

Response Body

200

application/json
  1. response
id*string

Unique folder identifier

name*string

Folder name

type*string

Folder type: DOCUMENT or TEMPLATE

Value in"DOCUMENT""TEMPLATE"
parentFolderId*|

Parent folder id, or null for top-level folders

workspaceId*string
createdById*string
createdAt*unknown
updatedAt*unknown
childFolderCount?integer

Number of direct child folders (non-deleted)

Range-9007199254740991 <= value <= 9007199254740991
itemCount?integer

Number of documents or templates directly in this folder

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

Was this page helpful?