Create a character
Needs a key withsprites:write
Adds a character to a game's cast. It's also a Library item (kind sprite) in the Team Library's Sprites folder, and starts with the standard actions (idle, walk, run, attack, jump, hurt and death) and no master. convertedFromItemId names a Library character it's made from.
Requires scope sprites:write.
apiKeyx-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.
gameId*string1 <= length <= 128Idempotency-Key?stringMakes the request safe to retry: send a unique value (a UUID, say). The same request sent again with the same key within 24 hours gets the first one's response back, and nothing runs or is charged twice. Reusing a key for a different request, or while the first is still running, is 409 CONFLICT. A request that fails frees its key.
1 <= length <= 255application/json- body
palette?array<>items <= 64prompt?stringWhat the character looks like, for its master.
length <= 4000role?stringlength <= 60rules?stringlength <= 2000sizeClass?string"small""medium""large"convertedFromItemId?stringA Library character (kind character) the sprite is made from.
1 <= length <= 128folderId?stringThe folder to keep it in; left out: the top level.
1 <= length <= 128name*string1 <= length <= 120The character.
application/json- response
A character of a game's cast.
convertedFromItemId*|The Library item it was converted from, if any.
counts*How far its animation has come.
createdAt*stringdate-timecurrentOutfitId*|The outfit it's shown in; null: the base outfit.
folderId*|The folder it's kept in; null: the top level.
gameId*string1 <= length <= 128id*string1 <= length <= 128imported*|nulllibraryItemId*stringIts Library item (kind sprite, type element).
1 <= length <= 128master*|The approved master's largest image; null until one.
masterVersionId*|The approved master (a Library version); null until one.
name*string1 <= length <= 120palette*array<>items <= 64prompt*stringlength <= 4000role*stringrules*stringIdentity rules every frame keeps, one per sentence.
sizeClass*string"small""medium""large"updatedAt*stringdate-timecurl -X POST 'https://api.remagica.com/api/v1/sprites/games/3c6f2a51-9d0e-4b7a-8f12-6e4d0c9b7a21/characters' \ -H 'Content-Type: application/json' \ -d '{ "name": "Ember knight"}'{ "convertedFromItemId": "a7447df4-5b3d-4f60-8e2a-1d9c6b4f7e05", "counts": { "actions": 1, "approved": 1, "takes": 1 }, "createdAt": "2026-10-21T12:00:00.000Z", "currentOutfitId": "581b2a39-5b3d-4f60-8e2a-1d9c6b4f7e05", "folderId": "899433f8-5b3d-4f60-8e2a-1d9c6b4f7e05", "gameId": "86c3e75d-5b3d-4f60-8e2a-1d9c6b4f7e05", "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05", "imported": { "action": "string", "cell": [ 0, 0 ], "file": "string", "grid": { "cellH": 1, "cellW": 1, "cols": 1, "gapX": 1, "gapY": 1, "offsetX": 1, "offsetY": 1, "rows": 1 }, "height": 1280, "importId": "1b0c94d4-5b3d-4f60-8e2a-1d9c6b4f7e05", "palette": [ "string" ], "rows": [ { "actionKey": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png", "actionName": "string", "direction": "E", "fps": 1, "frames": 1, "playback": "loop", "row": 1 } ], "sourceKey": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png" }, "libraryItemId": "17c56002-5b3d-4f60-8e2a-1d9c6b4f7e05", "master": { "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png", "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png" }, "masterVersionId": "371019b7-5b3d-4f60-8e2a-1d9c6b4f7e05", "name": "Autumn campaign", "palette": [ { "hex": "#140f17", "role": "skin" } ], "prompt": "A lighthouse on a cliff at dusk, cinematic", "role": "Hero", "rules": "Hood always up.", "sizeClass": "small", "updatedAt": "2026-10-21T12:00:00.000Z"}