resourcepack.ai
DOCS

Packs

List a pack's folders

The folders on the pack page and which asset is filed in each. A folder holds one tab's assets (kind, a pack tab such as models or blocks). Folders are only layout: nothing an export or a push builds reads them. assignments maps an asset, as <type>:<id>, to its folder's id.

GET/packs/{pack}/folders

Path parameters

packstringrequired

The pack's slug, as returned by the packs endpoints.

Response · 200

The folders.

packstringrequired

The pack.

foldersarray of valuerequired

The folders, as {id, name, color, kind, createdAt}.

assignmentsobjectrequired

Asset (<type>:<id>) to folder id. An asset in no folder has no entry.

Error codes

Branch on error.code, never on the message.

invalid_api_key401

The key isn't one of ours, or it has been revoked.

missing_api_key401

No Authorization: Bearer header was sent.

wrong_key_kind401

An MCP key sent to the REST API, or an API key sent to the MCP server. Each only opens its own.

account_suspended403

The account is suspended, so its keys open nothing. message says until when, if the suspension has an end date.

plan_required403

The key is valid, but its account's plan does not include the API.

not_found404

No such pack, asset or job.