remagicaDocs home
API referenceSprites

Get an import

GET
/sprites/imports/{importId}

Needs a key withsprites:read

An import as it stands: queued, running (with what it's doing), done or failed (with why), and the takes it makes.

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

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

Response Body

The import.

application/json
  1. response

A sheet import.

characterId*string
Length1 <= length <= 128
createdAt*string
failure*|

Why it failed, in plain words.

gameId*string
Length1 <= length <= 128
id*string
Length1 <= length <= 128
masterVersionId*|

The master version it made, if it made one.

progress*number
Range0 <= value <= 1
status*string
Value in"queued""running""done""failed"
step*|

What it's doing now, in plain words.

takeIds*array<>

The takes it makes, a row each.

updatedAt*string
Example Request
curl -X GET 'https://api.remagica.com/api/v1/sprites/imports/2b7d4f9a1c3e5a7b9d0f2e4c6a8b0d1f'
Example Response
{  "characterId": "eb1fe45b-5b3d-4f60-8e2a-1d9c6b4f7e05",  "createdAt": "string",  "failure": "string",  "gameId": "86c3e75d-5b3d-4f60-8e2a-1d9c6b4f7e05",  "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",  "masterVersionId": "371019b7-5b3d-4f60-8e2a-1d9c6b4f7e05",  "progress": 1,  "status": "queued",  "step": "string",  "takeIds": [    "string"  ],  "updatedAt": "string"}