remagicaDocs home
API referenceSprites

Get a drift run

GET
/sprites/drift/{runId}

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.

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

runId*string
Match^[A-Za-z0-9_-]{1,128}$

Response Body

The run.

application/json
  1. response

A drift run: what it queued and how each frame ended.

characterId*string
createdAt*string
creditCap*integer
credits*integer

Credits spent, once the run ended.

held*integer
id*string
model*string
now*|

The frame being redrawn now.

outfitId*string|null
queue*array<>
result*string|null
status*string
Value in"queued""running""done""failed"
stoppedAtCap*boolean
threshold*number
Range0 <= value <= 1
triesPerFrame*integer
updatedAt*string
Example Request
curl -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"}