remagicaDocs home
API referenceSprites

Create a folder

POST
/sprites/folders

Needs a key withsprites:write

Makes a folder for characters, at the top level or inside parentId.

Requires scope sprites:write.

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.

Request Body

application/json
  1. body
name*string
Length1 <= length <= 120
parentId?string

The folder to make it in; left out: the top level.

Length1 <= length <= 128

Response Body

The folder.

application/json
  1. response

A folder of the studio's characters.

characters*integer

Characters kept directly in it (not in its subfolders).

createdAt*string
Formatdate-time
id*string
Length1 <= length <= 128
name*string
Length1 <= length <= 120
parentId*|

The folder it sits in; null: the top level.

updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.remagica.com/api/v1/sprites/folders' \  -H 'Content-Type: application/json' \  -d '{  "name": "Bosses"}'
Example Response
{  "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"}