remagicaDocs home
API referenceSprites

Get a character's drift report

GET
/sprites/characters/{characterId}/drift

Needs a key withsprites:read

Scores of every frame of each animation's standing take against the character's master (1 is identical), the frames below threshold worst first, counts, the take checks and what one try of a fix costs.

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.

Path Parameters

characterId*string
Length1 <= length <= 128

Query Parameters

outfitId?string

That outfit's takes; the base outfit's otherwise.

Length1 <= length <= 128
takeId?string

That take alone, its frames scored again first, whatever its outfit or whether it stands.

Length1 <= length <= 128
threshold?number

Frames scoring below it are flagged, from 0.5 to 0.99. Default 0.9.

Range0.5 <= value <= 0.99

Response Body

The report.

application/json
  1. response

How close every frame of each animation's standing take (the approved one, else the newest finished one) is to the master, 1 being identical.

counts*
creditsPerTry*|

What one try of a frame fix costs at most, in credits (the edit and background removal); null when it isn't priced. A run sets aside min(cap, fixable × tries × this).

rows*array<>
scoreModel*string
summary*string
threshold*number
Range0 <= value <= 1
worst*array<>

Every frame below the line, worst first.

Example Request
curl -X GET 'https://api.remagica.com/api/v1/sprites/characters/8a1d5e3f-2b4c-4d6e-9f07-1a2b3c4d5e6f/drift'
Example Response
{  "counts": {    "animations": 1,    "fixable": 1,    "frames": 1,    "low": 1,    "unscored": 1  },  "creditsPerTry": 12,  "rows": [    {      "actionId": "c4f7ff02-5b3d-4f60-8e2a-1d9c6b4f7e05",      "actionName": "string",      "checks": [        {          "detail": "string",          "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",          "label": "string",          "ok": true        }      ],      "direction": "E",      "frameIds": [        "string"      ],      "low": 1,      "scores": [        1      ],      "status": "queued",      "takeId": "2a6faac1-5b3d-4f60-8e2a-1d9c6b4f7e05"    }  ],  "scoreModel": "remagica-sim-2",  "summary": "string",  "threshold": 1,  "worst": [    {      "actionId": "c4f7ff02-5b3d-4f60-8e2a-1d9c6b4f7e05",      "direction": "E",      "frameId": "f68c2bb4-5b3d-4f60-8e2a-1d9c6b4f7e05",      "index": 1,      "label": "Walk, right, frame 6",      "locked": true,      "score": 1,      "takeId": "2a6faac1-5b3d-4f60-8e2a-1d9c6b4f7e05"    }  ]}