Packs
Publish an asset to the gallery
Puts one of the pack's assets on resourcepack.ai/gallery, as the Publish to gallery button on its page does: a snapshot of it as it is now, on a page of its own. Addressed by the listing's type and name. One live page per asset: publishing it again answers conflict.
Leave out title, description or tags and the gallery writes them, as the button's Write it for me does, from the asset's picture and prompt; send them to use your own. anonymous publishes it without your name on it. Only the pack's owner can publish. Free.
/packs/{pack}/galleryPath parameters
packstringrequiredThe pack's slug, as returned by the packs endpoints.
Body
typestringrequiredThe asset's type from the listing (item, icon, model…).
namestringrequiredThe asset's name from the listing.
titlestring3–80 charactersThe page's title. Written for you when left out.
descriptionstring20–600 charactersA sentence or two about it. Written for you when left out.
tagsarray of stringSearch tags. Written for you when left out.
anonymousbooleanPublish it without your name on it. Defaults to false.
Response · 201
Published.
packstringrequiredThe pack.
slugstringrequiredThe page's slug.
urlstringrequiredThe page.
titlestringrequiredThe title as published.
descriptionstringrequiredThe description as published.
tagsarray of stringrequiredThe tags as published.
anonymousbooleanrequiredWhether it carries your name.
Error codes
Branch on error.code, never on the message.
invalid_request400Something in the body or query is wrong. message says what.
invalid_api_key401The key isn't one of ours, or it has been revoked.
missing_api_key401No Authorization: Bearer header was sent.
wrong_key_kind401An MCP key sent to the REST API, or an API key sent to the MCP server. Each only opens its own.
account_suspended403The account is suspended, so its keys open nothing. message says until when, if the suspension has an end date.
forbidden403Valid key, but not permitted to do this in this pack.
plan_required403The key is valid, but its account's plan does not include the API.
not_found404No such pack, asset or job.
conflict409That vanilla target is already reskinned in this pack. Change it in the Studio rather than overwriting it.