remagicaDocs home
API referenceSprites

Get a character's running drift fix

GET
/sprites/characters/{characterId}/drift/active

Needs a key withsprites:read

The character's drift run still going (queued or running), so a page opened mid-run can follow it; run is null when none is. A character runs one fix at a time: starting another meanwhile is refused with CONFLICT.

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

Response Body

The run, or null.

application/json
  1. response

A character's drift run in progress, if any.

run*|

The run still going (queued or running), or null.

Example Request
curl -X GET 'https://api.remagica.com/api/v1/sprites/characters/8a1d5e3f-2b4c-4d6e-9f07-1a2b3c4d5e6f/drift/active'
Example Response
{  "run": {    "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"  }}