GET

List renders

This environment's renders, newest first.

View as Markdown
GEThttps://api.muzekit.com/v1/renders
curl "https://api.muzekit.com/v1/renders?limit=20" \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY"

Query

templatestring

Only this template's renders: its tpl_… id or its key.

batchbat_…

Only one batch's renders.

limitnumber

1 to 100, default 20.

afterrnd_…

next_cursor from the previous page.

batch (a bat_… id) shows one batch's renders. Each item is a render.

The list holds every render of this environment, whatever asked for it (trigger). A batch that isn't a bat_… id is ignored, and you get every render. template and batch combine. A key is looked up among this environment's templates (404 template_not_found when none has it); a tpl_… id also finds the renders of a template you deleted.

Examples

List one batch's renders

A batch has up to 100 renders, so one page with limit=100 holds them all.

curl "https://api.muzekit.com/v1/renders?batch=bat_Zb3x0k1PqLm2&limit=100" \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY"

See Follow a batch until it's done to poll until every render has finished.

List one template's renders

Pass the template's key or tpl_… id, for example to show the files made from it.

curl "https://api.muzekit.com/v1/renders?template=product-card&limit=50" \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY"

Page through every render

Send each page's next_cursor as after until has_more is false, for example to copy render history into your own database.

curl "https://api.muzekit.com/v1/renders?limit=100" \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY"

# The next page: after = next_cursor from the previous answer
curl "https://api.muzekit.com/v1/renders?limit=100&after=rnd_Ud1esqJ1JNC" \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY"

The list is newest first. To pick up only new renders next time, stop once you reach a render id you already have.

Response

JSON
{
  "object": "list",
  "data": [
    {
      "object": "render",
      "id": "rnd_vQ8VEOnjY5H",
      "status": "succeeded",
      "template": "tpl_Vk1t4l9xvQv",
      "revision": 4,
      "trigger": "api",
      "livemode": true,
      "format": "png",
      "pages": [1],
      "outputs": [
        {
          "page": 1,
          "part": null,
          "url": "https://storage.muzekit.com/r/d90/…/1.png",
          "content_type": "image/png"
        }
      ],
      "warnings": [],
      "error": null,
      "duration_ms": 2410,
      "created_at": "2026-11-29T10:52:43.248Z",
      "completed_at": "2026-11-29T10:52:45.658Z",
      "expires_at": "2027-02-27T10:52:45.658Z"
    }
  ],
  "has_more": true,
  "next_cursor": "rnd_vQ8VEOnjY5H"
}