remagicaDocs home
API referenceSprites

Create a preset

POST
/sprites/presets

Needs a key withsprites:write

Saves a timing or export setup for every game of the workspace.

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.

Header Parameters

Idempotency-Key?string

Makes the request safe to retry: send a unique value (a UUID, say). The same request sent again with the same key within 24 hours gets the first one's response back, and nothing runs or is charged twice. Reusing a key for a different request, or while the first is still running, is 409 CONFLICT. A request that fails frees its key.

Length1 <= length <= 255

Request Body

application/json
  1. body
data*

The setup, as the Studio saves it.

kind*string

timing (fps, playback, holds) or export (engine setup).

Value in"timing""export"
name*string
Length1 <= length <= 120

Response Body

The preset.

application/json
  1. response

A saved timing or export setup of the workspace.

createdAt*string
Formatdate-time
data*
id*string
Length1 <= length <= 128
kind*string

timing (fps, playback, holds) or export (engine setup).

Value in"timing""export"
name*string
Length1 <= length <= 120
updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.remagica.com/api/v1/sprites/presets' \  -H 'Content-Type: application/json' \  -d '{  "data": {},  "kind": "timing",  "name": "Snappy combat"}'
Example Response
{  "createdAt": "2026-10-21T12:00:00.000Z",  "data": {},  "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",  "kind": "timing",  "name": "Autumn campaign",  "updatedAt": "2026-10-21T12:00:00.000Z"}