resourcepack.ai
DOCS

Gallery

Copy a gallery item into a pack

A gallery page's Add to a pack: the item, as its publisher made it, into a pack this key can edit (pack) or a new pack made for it (newPackName). It is then yours to change like anything else. A skin goes to your skins instead and needs neither. Free, but it counts against the plan's limits as any new asset or pack does.

POST/gallery/{item}/copy

Path parameters

itemstringrequired

The item's id from the gallery listing.

Body

packstring

The slug of the pack it goes into. Send this or newPackName.

newPackNamestringmax 100 characters

Make a new pack of this name for it instead.

Response · 201

Copied.

itemstringrequired

The gallery item.

typestringrequired

What it is.

packstringrequired

The pack it landed in. Null for a skin.

assetIdstringrequired

Its id there. Find it in GET /packs/{pack}/assets.

Error codes

Branch on error.code, never on the message.

invalid_json400

The request body wasn't a JSON object.

invalid_request400

Something in the body or query is wrong. message says what.

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.

asset_limit_reached403

The pack is at its asset limit.

pack_limit_reached403

The account is at its plan's pack limit.

plan_required403

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

not_found404

No such pack, asset or job.