resourcepack.ai
DOCS

Packs

Make a Custom GUI

A new Custom GUI, blank or from one of the templates the listing names. Write its pages yourself with update_custom_gui, or have the AI write them with generate_custom_gui_page. A pack holds up to 50. Free.

POST/packs/{pack}/custom-guis

Path parameters

packstringrequired

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

Body

namestringrequiredmax 50 characters

Its name.

templatestring

A template's id, or blank (the default).

promptstringmax 4000 characters

What it is for, kept with it as its generation prompt is with an asset.

Response · 201

Made.

packstringrequired

The pack.

guiobjectrequired

The new Custom GUI.

idstringrequired

Its id in the pack.

namestringrequired

Its name.

pagesintegerrequired

How many pages it has.

entrystringrequired

The page a server opens first.

updatedAtstringrequired

ISO 8601.

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.

not_found404

No such pack, asset or job.