remagicaDocs home
API referenceSprites

List turnaround views

GET
/sprites/characters/{characterId}/views

Needs a key withsprites:read

The character's master in use from each of its camera's turnaround views (top-down 4-way: front, right, back; 8-way: also front-right and back-right; isometric: front-right, back-right; side-scroller: its own only), the master's own first, with the ones drawn so far and what drawing them sets aside.

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 views.

application/json
  1. response

The character's master in use from each of its camera's turnaround views, the master's own first. A take in a direction starts from its view when it's drawn.

credits*|

What drawing the views sets aside (masters.views); null: the camera has none to draw (a side-scroller mirrors left).

versionId*|

The master version they belong to; null: no master yet.

views*array<>
Example Request
curl -X GET 'https://api.remagica.com/api/v1/sprites/characters/8a1d5e3f-2b4c-4d6e-9f07-1a2b3c4d5e6f/views'
Example Response
{  "credits": 12,  "versionId": "772c657e-5b3d-4f60-8e2a-1d9c6b4f7e05",  "views": [    {      "direction": "E",      "file": {        "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",        "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png"      },      "main": true    }  ]}