resourcepack.ai
DOCS

Collaborators

Invite somebody to a pack

Invites a person by Minecraft username (one a resourcepack.ai account has verified) or by email, with what they may do once they accept: Discord and email tell them. By username it says whether there is such a player; by email it always answers `invited`, whether or not that address has an account, so it cannot be used to find out who does. Owner or team admin only.

POST/packs/{pack}/collaborators/invite

Path parameters

packstringrequired

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

Body

usernamestring

Their Minecraft username. Send this or email.

emailstring

Their email address.

sectionsstringdefault "*"

The sections they reach: a comma list of models, vehicles, mobs, blocks, items, armor, guis, hud, dialogs, icons, sounds, emotes, shaders, distribution, or * for all of them.

capsstring

What they may do there, a comma list of edit, generate, sync, export, distribute. None by default, which is looking only.

Response · 200

Invited.

packstringrequired

The pack.

statusstringrequired

Always invited.

invitedNamestring

By username: their name as their account has it.

emailstring

By email: the address, as sent.

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.

forbidden403

Valid key, but not permitted to do this in this pack.

plan_required403

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

no_such_player404

No resourcepack.ai account has verified that Minecraft username. Invite them by email instead.

not_found404

No such pack, asset or job.

too_many_invites429

The pack has as many invitations waiting as it may. Withdraw one first.