remagicaDocs home
API referenceSprites

Get a character's Sprite DNA

GET
/sprites/characters/{characterId}/dna

Needs a key withsprites:read

A character's Sprite DNA, as its export ships it: the JSON and a Markdown brief any LLM or image model can follow. Its animations' timing and gameplay come from their approved takes.

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

application/json
  1. response

Everything that makes a character itself, as exports ship it (dna.json and DNA.md).

dna*

The DNA as JSON (schema remagica.sprite-dna/1): identity, style traits, palette, proportions, animations with their timing, keyframes, gameplay and status per direction, and the master's file names.

markdown*string

The same DNA as a Markdown brief, ending with a prompt any image model can follow.

Example Request
curl -X GET 'https://api.remagica.com/api/v1/sprites/characters/8a1d5e3f-2b4c-4d6e-9f07-1a2b3c4d5e6f/dna'
Example Response
{  "dna": {},  "markdown": "string"}