remagicaDocs home
API referenceLibrary

List filter choices

GET
/library/facets

Needs a key withlibrary:read

The models and projects your assets came from: the choices of the Assets page's filters.

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.

Response Body

The filter choices.

application/json
  1. response
models*array<>
projects*array<>
Example Request
curl -X GET 'https://api.remagica.com/api/v1/library/facets'
Example Response
{  "models": [    {      "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",      "name": "Autumn campaign"    }  ],  "projects": [    {      "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",      "name": "Autumn campaign"    }  ]}