remagicaDocs home
API referenceSprites

Follow Sprite Studio

GET
/sprites/events

Needs a key withsprites:read

Streams the workspace's Sprite Studio changes as server-sent events: master requests and candidates (topic master), outfits (outfit), takes (take), drift runs (drift), exports (export) and sheet imports (import), each as { topic, id, status, step?, progress? }. An event only says what changed: read the rows. Nothing is replayed: list when you connect and again whenever you reconnect. The stream ends after 15 minutes; reconnect to keep following.

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.

Response Body

An event stream of the workspace's sprite changes.

text/event-stream
  1. response
event*unknown
data*

One change in the workspace's Sprite Studio.

id?string
retry?number
Example Request
curl -X GET 'https://api.remagica.com/api/v1/sprites/events'
Example Response
{  "event": "message",  "data": {    "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",    "progress": 1,    "result": "fixed",    "status": "string",    "step": "string",    "topic": "drift"  },  "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",  "retry": 1}