remagicaDocs home
API referenceLibrary

List items

GET
/library/items

Needs a key withlibrary:read

Lists and searches the Library, most recently changed first, a page at a time: filter by scope, folder, kind, type and your favorites. Each item carries its mention token for prompts.

Requires scope library: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.

Query Parameters

aspect?string

Only items whose files are square, landscape or portrait (within 5%).

Value in"square""landscape""portrait"
createdAfter?string

Only items made at or after this time.

Formatdate-time
cursor?string

nextCursor from the previous page.

Lengthlength <= 500
deleted?|

Recently Deleted instead: deleted items, purged 30 days after deletion (listing them purges the expired ones).

favorite?|

Only your favorites.

folderId?string
Length1 <= length <= 128
ids?array<>|

Exactly these items (comma-separated), including deleted ones, e.g. to check the versions a canvas pins.

kind?string

What it is, as the starting folders sort it: character, sprite (a Sprite Studio character), scene, item, style, sound_effect or other.

Value in"character""sprite""scene""item""style""sound_effect""other"
labelId?string

Only items with this label.

Length1 <= length <= 128
limit?integer
Range1 <= value <= 100
Default50
media?string

Items with a file of this kind; text: items with no files (description-only elements).

Value in"image""video""audio""text"
model?string

Generated by this model (canonical id).

Lengthlength <= 200
origin?string

upload: uploaded or made by hand. generation: filed from a generation (a workflow step's, the agent's or the API's).

Value in"upload""generation"
pinned?|

Only pinned items.

q?string

Search names, slugs and descriptions.

Lengthlength <= 200
reviewStatus?string

Where the asset's review stands: todo, in_progress, under_review or done.

Value in"todo""in_progress""under_review""done"
scope?string

team, private, or all (both).

Default"all"
Value in"private""team""all"
type?string

asset: one file. element: a reusable character, place, prop or style: a locked description, ordered reference files and an optional generated sheet.

Value in"asset""element"
workflowId?string

Came from this project (workflow).

Length1 <= length <= 128

Response Body

A page of items.

application/json
  1. response
items*array<>
nextCursor*|

Pass as cursor for the next page; null on the last.

Example Request
curl -X GET 'https://api.remagica.com/api/v1/library/items'
Example Response
{  "items": [    {      "createdAt": "2026-09-30T12:00:00.000Z",      "deleted": true,      "deletedAt": null,      "description": "Product shots for the autumn campaign.",      "faces": "trusted",      "favorite": true,      "fileCount": 1,      "folderId": "899433f8-5b3d-4f60-8e2a-1d9c6b4f7e05",      "generationId": "241081c2-5b3d-4f60-8e2a-1d9c6b4f7e05",      "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",      "kind": "character",      "labels": [        {          "color": "gray",          "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",          "name": "Autumn campaign"        }      ],      "latestVersion": 3,      "mention": "string",      "model": "google/nano-banana-pro",      "name": "Autumn campaign",      "origin": "upload",      "ownerUserId": "ba132481-5b3d-4f60-8e2a-1d9c6b4f7e05",      "pendingSheets": 1,      "pinnedAt": "2026-10-21T12:00:00.000Z",      "reviewStatus": "todo",      "scope": "private",      "slug": "string",      "sprite": {        "characterId": "eb1fe45b-5b3d-4f60-8e2a-1d9c6b4f7e05",        "masterVersionId": "371019b7-5b3d-4f60-8e2a-1d9c6b4f7e05",        "sizeClass": "small"      },      "thumbnail": {        "contentType": "image/png",        "durationSeconds": 5,        "height": 1280,        "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",        "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",        "kind": "image",        "position": 1,        "role": "sheet",        "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png",        "width": 1024      },      "type": "asset",      "updatedAt": "2026-09-30T12:00:00.000Z",      "workflowId": "cb35dcdb-5b3d-4f60-8e2a-1d9c6b4f7e05"    }  ],  "nextCursor": "string"}