remagicaDocs home
API referenceLibrary

List labels

GET
/library/labels

Needs a key withlibrary:read

The workspace's asset labels, by name, with how many assets have each.

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 labels.

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