remagicaDocs home
API referenceProjects

List folders

GET
/project-folders

Needs a key withprojects:read

A scope's top-level folders, or a folder's subfolders, with breadcrumbs to it.

Requires scope projects:read.

Authorization

apiKey
headerx-api-key<token>

An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.

Query Parameters

parentId?|

The folder whose subfolders to list; the scope's top level when left out.

scope?string

team: the workspace's projects and team folders. personal: the projects you made and your personal folders, which only you see. API keys act for the workspace: their personal is empty.

Default"team"
Value in"team""personal"

Response Body

The folders.

application/json
  1. response
folders*array<>
path*array<>

Breadcrumbs to parentId, top level first.

scope*string

The scope listed: parentId's when given.

Value in"team""personal"
Example Request
curl -X GET 'https://api.remagica.com/api/v1/project-folders'
Example Response
{  "folders": [    {      "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",      "isPersonal": true,      "name": "Autumn campaign",      "parentId": "eb290249-5b3d-4f60-8e2a-1d9c6b4f7e05",      "projectCount": 1    }  ],  "path": [    {      "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",      "name": "Autumn campaign"    }  ],  "scope": "team"}