API referenceLibrary
List folders
GET
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.
apiKeyheader
x-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.
scope?stringteam: 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"The folders, in order.
application/json- response
folders*array<>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 } ]}