resourcepack.ai
DOCS

Packs

List an asset's versions

An asset's history card: the original, then a version for every AI edit and regenerate since, oldest first, the last being what it is now. Kept for blocks, item sprites, icons and models. Download one with GET .../versions/{version} and go back to it with POST .../versions/{version}/restore.

GET/packs/{pack}/assets/{kind}/{name}/versions

Path parameters

packstringrequired

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

kindstringrequired

The asset's kind from the listing.

Options: texture, model, font, sound

namestringrequired

The asset's name from the listing.

Response · 200

The versions.

packstringrequired

The pack.

versionsarray of objectrequired

Oldest first.

idstringrequired

Pass as {version}.

atstringrequired

ISO 8601.

actionstringrequired

What made it.

Options: original, iterate, animate, regenerate

instructionstringrequired

The Edit with AI instruction behind it. Null for the original and a regenerate.

currentbooleanrequired

Whether this is what the asset is now.

Error codes

Branch on error.code, never on the message.

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.

plan_required403

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

not_found404

No such pack, asset or job.