Skip to content

Agent API ​

Generated from docs/agent-gateway-openapi.json. This reference lists 40 operations. The count is produced by the generator.

MethodPathSummary
GET/siteStart here: the site, what this token may do, and what no agent may ever do.
GET/pagesList the pages of the site, with their address, type and state.
GET/pageRead one page: every section with its id, text, rich text as markdown and links.
GET/site-partRead the header, footer, a menu, or the banner.
GET/componentsThe section types a page can be built from, with guidance and the exact props of each.
GET/page-typesThe page types (templates) and which sections each allows or requires.
GET/searchFind words anywhere on the site: every page, the header, footer, menus and banner.
GET/linksFind every link to an address across the whole site, including buttons, menus and the footer.
GET/changesYour recent changes and their state.
GET/changes/{change_id}One change: its state and what it does.
GET/changes/{change_id}/previewShow exactly what an open change would do, and whether it could go live by itself. Changes nothing.
POST/edits/textReplace words on one page, or everywhere on the site.
POST/edits/remove-linkTake a link down: remove every link to an address on a page or the whole site.
POST/edits/replace-linkPoint every link to one address at a different address.
POST/edits/insert-rich-textAdd paragraphs, headings or lists to a text section, written in simple markdown.
POST/edits/componentChange props of one section, for example a heading, button or list of cards.
POST/edits/block-cssSet or clear the custom CSS on one section.
POST/edits/add-componentAdd a section to a page.
POST/edits/remove-componentRemove one section from a page.
POST/edits/move-componentMove a section up or down a page.
POST/edits/page-detailsChange a page's title, address, or search-engine title and description.
POST/edits/create-pageCreate a new page as a draft.
POST/edits/create-pagesBuild several new pages (and menu entries) as one draft change.
POST/edits/menu/remove-itemRemove an item from a menu.
POST/edits/menu/add-itemAdd an item to a menu.
POST/edits/menu/rename-itemChange the words on a menu item.
POST/edits/menu/set-tileSet or clear a photo tile on a mega-menu sub-item.
POST/edits/bannerShow, change or hide the site-wide banner.
POST/edits/headerChange the header small link, see-through setting, or the heart on the existing Donate button.
POST/edits/footerChange the footer words, contact, social links, tagline, layout, menus or charity number.
GET/mediaList photos and videos in the media library, newest first.
POST/media/importsImport a photo into the media library from a public address (runs in the background).
GET/media/imports/{import_id}See whether a photo import has finished, and get its media_id.
POST/media/{media_id}/altSet the alt text of a photo in the library (or mark it decorative).
POST/changes/{change_id}/request-publishSend a change to a person for approval. It does NOT go live until they approve.
POST/changes/{change_id}/publishMake a change live NOW if a rule allows it; otherwise send it for approval.
POST/changes/{change_id}/discardThrow away an open change you do not want. Live pages are untouched.
POST/changes/{change_id}/undoUndo a change that went live: restore the earlier content as a new change.
POST/soulPropose a new AI personality. A person must approve it.
POST/pluginsPropose a plugin. A person must approve it.

The same operations are the tools in Tools. Nothing here is copied by hand.

Released under the MIT licence.