remagicaDocs home
API referenceLibrary

List folders

GET
/library/folders

Needs a key withlibrary:read

The folders of the Team or your Private Library, with how many items each holds. Every Library starts with Character, Scene, Item, Style, Sound Effect and Others.

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

scope?string

team: every member of the workspace sees and uses it. private: only you (in this workspace). API keys act for the workspace, so they use team only.

Default"team"
Value in"private""team"

Response Body

The folders, in order.

application/json
  1. response
folders*array<>
Example Request
curl -X GET 'https://api.remagica.com/api/v1/library/folders'
Example Response
{  "folders": [    {      "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",      "isDefault": true,      "itemCount": 1,      "kind": "character",      "name": "Autumn campaign",      "parentId": "eb290249-5b3d-4f60-8e2a-1d9c6b4f7e05",      "scope": "private",      "sort": 1    }  ]}