remagicaDocs home
API referenceSprites

List folders

GET
/sprites/folders

Needs a key withsprites:read

Every folder in the workspace, by name, each with its parent and how many characters it holds.

Requires scope sprites: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.

Response Body

The folders.

application/json
  1. response
folders*array<>

Every folder in the workspace, by name.

Example Request
curl -X GET 'https://api.remagica.com/api/v1/sprites/folders'
Example Response
{  "folders": [    {      "characters": 1,      "createdAt": "2026-10-21T12:00:00.000Z",      "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",      "name": "Autumn campaign",      "parentId": "eb290249-5b3d-4f60-8e2a-1d9c6b4f7e05",      "updatedAt": "2026-10-21T12:00:00.000Z"    }  ]}