Distribution
Bind a server
What the Distribution tab's Bind a server does: a code for somebody to type on a Minecraft server running RP Engine. Hand command (/rp distribute <code>) to whoever runs the server, then follow GET /packs/{pack}/distribution/servers until its status is bound. The code is for one server and expires if nobody types it; unbind a code you no longer want.
A pack can be bound to 10 servers, codes still waiting included. Needs the distribute permission on the pack. Free.
/packs/{pack}/distribution/serversPath parameters
packstringrequiredThe pack's slug, as returned by the packs endpoints.
Response · 201
A claim code, waiting.
packstringrequiredThe pack.
serverobjectrequiredThe server, waiting.
idstringrequiredThe server's id, for renaming or unbinding it.
namestringrequiredWhat the Studio calls it.
statusstringrequiredwaiting until somebody types the code on the server, bound after.
Options: waiting, bound
claimCodestringrequiredThe code to type, while waiting. Null once bound.
commandstringrequiredThe whole command to type in the server's console or chat, while waiting. Null once bound.
claimedAtstringrequiredISO 8601, when it was bound.
pluginVersionstringrequiredThe RP Engine version it runs, from its last check-in.
serverVersionstringrequiredIts Minecraft version, from its last check-in.
viaVersionbooleanrequiredWhether it runs ViaVersion, so players on other versions can join.
geyserbooleanrequiredWhether it runs Geyser, so Bedrock players can join.
lastSeenAtstringrequiredISO 8601, its last check-in: the plugin is alive.
lastServeAtstringrequiredISO 8601, the last time it handed the pack to somebody.
createdAtstringrequiredISO 8601.
Error codes
Branch on error.code, never on the message.
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.
server_limit_reached409The pack is bound to as many servers as it may, claim codes still waiting included. Unbind one first.