API referenceSprites
Get a drift run
GET
Needs a key withsprites:read
A drift run as it stands: each queued frame's tries and outcome, what it spent, and its result once it ended.
Requires scope sprites:read.
apiKeyheader
x-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.
runId*stringMatch
^[A-Za-z0-9_-]{1,128}$The run.
application/json- response
A drift run: what it queued and how each frame ended.
characterId*stringcreatedAt*stringcreditCap*integercredits*integerCredits spent, once the run ended.
held*integerid*stringmodel*stringnow*|The frame being redrawn now.
outfitId*string|nullqueue*array<>result*string|nullstatus*stringValue in
"queued""running""done""failed"stoppedAtCap*booleanthreshold*numberRange
0 <= value <= 1triesPerFrame*integerupdatedAt*stringcurl -X GET 'https://api.remagica.com/api/v1/sprites/drift/2f9b1c7d4e5a6b8c9d0e1f2a3b4c5d6e'Example Response
{ "characterId": "eb1fe45b-5b3d-4f60-8e2a-1d9c6b4f7e05", "createdAt": "string", "creditCap": 1, "credits": 12, "held": 1, "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05", "model": "google/nano-banana-pro", "now": "string", "outfitId": "f54469b9-5b3d-4f60-8e2a-1d9c6b4f7e05", "queue": [ { "before": 1, "best": 1, "frameId": "f68c2bb4-5b3d-4f60-8e2a-1d9c6b4f7e05", "label": "string", "status": "pending", "takeId": "2a6faac1-5b3d-4f60-8e2a-1d9c6b4f7e05", "tries": 1 } ], "result": "Fixed 3 of 4 for 12 credits. Still low after 2 tries: walk, right, frame 6. Open them to touch up.", "status": "queued", "stoppedAtCap": true, "threshold": 1, "triesPerFrame": 1, "updatedAt": "string"}