remagicaDocs home
API referenceSprites

Approve a take

POST
/sprites/takes/{takeId}/approve

Needs a key withsprites:write

Approves a finished take (draft or needing review) as its action's frames in that direction and outfit. The take approved there before goes back to review.

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.

Path Parameters

takeId*string
Length1 <= length <= 128

Response Body

The take.

application/json
  1. response

One generation of an action in one direction, with its frames.

actionId*string
Length1 <= length <= 128
approvedAt*|null
approvedByUserId*|null
change*|

What it was asked to change from its action's words; null: drawn as the action says.

clip*|

A clip take whose every frame was kept (takes.clipInspector); null: any other.

createdAt*string
Formatdate-time
credits*integer|null
direction*string
Value in"E""W""N""S""NE""NW""SE""SW"
failure*|

Why it failed, in plain words.

frames*array<>
generationIds*array<string>
id*string
Length1 <= length <= 128
masterVersionId*string|null
model*string
outfitId*|

null: the base outfit.

raw*|

The raw sheet or clip, before cleanup.

seed*integer|null
status*string
Value in"queued""generating""draft""review""approved""failed"
step*|

The pipeline step it's on, while it runs.

updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.remagica.com/api/v1/sprites/takes/6b7c8d9e-0f1a-4b2c-9d3e-4f5a6b7c8d9e/approve'
Example Response
{  "actionId": "c4f7ff02-5b3d-4f60-8e2a-1d9c6b4f7e05",  "approvedAt": "2026-10-21T12:00:00.000Z",  "approvedByUserId": "b11d81fb-5b3d-4f60-8e2a-1d9c6b4f7e05",  "change": "string",  "clip": {    "cutBy": "key",    "fallback": {      "from": "string",      "reason": "string"    },    "fps": 1,    "frameCount": 1,    "seconds": 5,    "snapped": true  },  "createdAt": "2026-10-21T12:00:00.000Z",  "credits": 12,  "direction": "E",  "failure": "string",  "frames": [    {      "clipIndex": 1,      "editedFromKey": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",      "gameplay": {        "events": [          "string"        ],        "hit": {          "h": 1,          "w": 1,          "x": 1,          "y": 1,          "damage": 1,          "knockback": {            "x": 1,            "y": 1          },          "on": true        },        "hurt": {          "h": 1,          "w": 1,          "x": 1,          "y": 1        },        "root": 1      },      "holdMs": 1,      "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",      "index": 1,      "isTween": true,      "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",      "locked": true,      "offsetX": 1,      "offsetY": 1,      "score": 1,      "scoreModel": "string",      "takeId": "2a6faac1-5b3d-4f60-8e2a-1d9c6b4f7e05",      "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png"    }  ],  "generationIds": [    "string"  ],  "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",  "masterVersionId": "371019b7-5b3d-4f60-8e2a-1d9c6b4f7e05",  "model": "google/nano-banana-pro",  "outfitId": "f54469b9-5b3d-4f60-8e2a-1d9c6b4f7e05",  "raw": {    "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",    "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png"  },  "seed": 1,  "status": "queued",  "step": "string",  "updatedAt": "2026-10-21T12:00:00.000Z"}