Packs
Export the pack
Anything the Studio's Export menu downloads, built on request rather than kept warm, so this is slower than the other calls on a large pack.
format picks which: java (the default) is the resource pack .zip; bedrock is the Bedrock .mcpack; geyser is that .mcpack with the Geyser item mappings beside it, as a zip that unzips into Geyser's folder on a server with no RP Engine; itemsadder, nexo, oraxen and craftengine are content folders for a server running that plugin, which builds the pack itself from them; modelengine is a .bbmodel blueprint per model for Model Engine; and datapack is the pack's dialogs as a vanilla datapack, whose pictures are in the Java zip.
A format with nothing to build from yet (a pack with no models asked for blueprints, or everything still generating) answers nothing_to_export with what is missing.
/packs/{pack}/exportPath parameters
packstringrequiredThe pack's slug, as returned by the packs endpoints.
Query parameters
formatstringdefault "java"Which export to build.
Options: java, bedrock, geyser, itemsadder, modelengine, nexo, oraxen, craftengine, datapack
Response · 200
The file: application/zip, or application/octet-stream for a .mcpack.
Error codes
Branch on error.code, never on the message.
invalid_request400Something in the body or query is wrong. message says what.
nothing_to_export400The pack holds nothing that export format is built from yet, or all of it is still generating. message says which.
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.
export_failed500The export couldn't be built.