API referenceProjects
List folders
GET
Needs a key withprojects:read
A scope's top-level folders, or a folder's subfolders, with breadcrumbs to it.
Requires scope projects:read.
apiKeyheader
x-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.
parentId?|The folder whose subfolders to list; the scope's top level when left out.
scope?stringteam: 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"The folders.
application/json- response
folders*array<>path*array<>Breadcrumbs to parentId, top level first.
scope*stringThe scope listed: parentId's when given.
Value in
"team""personal"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"}