resourcepack.ai
DOCS

Packs

Read a pack's style guide

The house style every visual generation in the pack follows unless it sends useStyleGuide: false: a palette, the author's notes, and reference pictures the look is read from. A pack with nothing set answers an empty guide.

GET/packs/{pack}/style

Path parameters

packstringrequired

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

Response · 200

The guide.

packstringrequired

The pack.

styleobjectrequired

The guide.

enabledbooleanrequired

Whether generations follow it. Off keeps it without anything reading it.

notesstringrequired

The author's own words about the look. May be empty.

palettearray of objectrequired

The pack's colours. A visual generation paints in these.

hexstringrequired

#rrggbb, lowercase.

namestring

Its name, when it came from a named palette.

paletteNamestring

The named palette it came from, if any.

strictbooleanrequired

Whether finished pixels are snapped to the palette rather than only asked to use it.

imageIdsarray of stringrequired

Reference pictures the look is read from, as referenceIds.

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 is on Starter. The API needs a paid plan.

not_found404

No such pack, asset or job.