Skip to main content
GET
/
api
/
v1
/
folders
/
{id}
Get a folder by ID
curl --request GET \
  --url https://app.sajn.se/api/v1/folders/{id} \
  --header 'authorization: <authorization>'
{
  "id": "<string>",
  "name": "<string>",
  "parentFolderId": "<string>",
  "workspaceId": "<string>",
  "createdById": "<string>",
  "createdAt": "<unknown>",
  "updatedAt": "<unknown>",
  "childFolderCount": 0,
  "itemCount": 0
}

Documentation Index

Fetch the complete documentation index at: https://docs.sajn.se/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string
required

Bearer token for API authentication

Path Parameters

id
string
required

Response

200

id
string
required

Unique folder identifier

name
string
required

Folder name

type
enum<string>
required

Folder type: DOCUMENT or TEMPLATE

Available options:
DOCUMENT,
TEMPLATE
parentFolderId
string | null
required

Parent folder id, or null for top-level folders

workspaceId
string
required
createdById
string
required
createdAt
any
required
updatedAt
any
required
childFolderCount
integer

Number of direct child folders (non-deleted)

Required range: -9007199254740991 <= x <= 9007199254740991
itemCount
integer

Number of documents or templates directly in this folder

Required range: -9007199254740991 <= x <= 9007199254740991