Management API
Writing: the model, the entries, the files. It needs a management key or an agent token (pluma_agt_, see Agents); with a delivery or preview key you get key_cannot. Conventions in API.
Everything written by API starts as a draft. Publishing is a separate request. Every change goes into the site's activity with the key's name.
Site settings
PATCH /api/v1/spaces/:space_id
{ "production_url": "https://www.example.com", "preview_url": "https://staging.example.com" }
Where the live site and the staging site live. With them and each type's url_path, entries come with sys.url and sys.preview_url. Needs manage_webhooks. An empty string clears a URL. Whatever you don't send doesn't change.
It also takes the site's languages settings (Languages):
default_locale: the language the content is written in, like"es". Changing it moves every value stored under the old code to the new one (all entries, all versions) and renames the language; it doesn't translate. If an entry has values in both, you getvalidation_failedwithdetails.fields.default_localenaming the entries, and nothing changes.prefix_default_locale:trueputs the default language in URLs built with{locale}too (/es/menu);false(the default) leaves it out (/menu).
Snippets
PATCH /api/v1/spaces/:space_id/integrations
Tracking tools by ID, and the site-wide custom code. The how and why, with how to render it, is in Snippets, tracking and custom code.
curl -X PATCH https://pluma.so/api/v1/spaces/acton-estero/integrations \
-H "Authorization: Bearer $PLUMA_KEY" -H "Content-Type: application/json" \
-d '{ "integrations": { "google_analytics": "G-ABC123DEF4", "plausible": "acton-estero.org" } }'
integrations:google_analytics,google_tag_manager,meta_pixel,hotjar,clarity,plausible. Only the ones you send change;nullor""turns one off. Each ID is checked against its format (the table); one that doesn't fit givesvalidation_failedwithdetails.fields["integrations.<tool>"], and nothing is saved. Needsmanage_webhooks(the site's settings).code:{ "head": "…", "body_end": "…" }, raw HTML for every page. A place you don't send keeps its code;""empties it. Also needsmanage_code(who has it); without it,key_cannotwithdetails.needs: "manage_code". It's saved as a new draft version (no new version if nothing changed), and it isn't live until a person with code permission publishes it in the dashboard (Settings → Code): there's no API route that publishes code.?dry_run=truechecks everything and saves nothing.
It answers with the same shape as reading it, with the draft included, plus:
check: what the code you sent loads and its red flags,{ "domains": [...], "flags": [ { "flag": "eval", "message": "…" } ] }(The check).warnings: the same, one sentence each. Show them to the person.next: one plain sentence on what happens now; for code, that it's a draft a person has to publish.
{
"integrations": { "google_analytics": "G-ABC123DEF4", "google_tag_manager": null, "meta_pixel": null, "hotjar": null, "clarity": null, "plausible": "acton-estero.org" },
"code": { "head": "", "body_end": "", "status": "draft", "version": 1, "published_version": null, "published_at": null,
"draft": { "version": 1, "head": "<script src=\"https://widget.example.com/chat.js\" async></script>", "body_end": "",
"saved_at": "2026-10-02T15:00:00Z", "author": "María's Claude",
"check": { "domains": ["widget.example.com"], "flags": [] },
"publish_in": "https://pluma.so/spaces/acton-estero/settings/code" } },
"head": "<!-- Google Analytics 4 (Pluma) -->\n<script async src=\"https://www.googletagmanager.com/gtag/js?id=G-ABC123DEF4\"></script>…",
"body_end": "",
"check": { "domains": ["widget.example.com"], "flags": [] },
"warnings": ["loads from widget.example.com. Check that you trust each one: what they serve runs or shows on every visit."],
"next": "The code is saved as a draft (version 1). It is NOT on the site: a person with code permission has to review it and publish it in the dashboard: https://pluma.so/spaces/acton-estero/settings/code. Tell the person that, and don't say it's live."
}
Code fields. A field of type code takes raw HTML in an entry (Code fields). Creating or editing an entry that changes one needs manage_code as well as write, and the write's warnings include the check, prefixed with the field ("embed: loads from player.vimeo.com…"). Publishing it (POST …/entries/:id/publish, publish_entry, a batch) when its code fields gained or changed code needs a person: an agent or a key gets key_cannot with details.needs: "person_with_manage_code" and details.publish_in, the entry's page in the dashboard. Publishing an entry whose code didn't change since its last publish works as always.
Languages
The site's languages are in GET /api/v1/spaces/:space_id (locales). Changing them needs manage_model.
POST /api/v1/spaces/:space_id/locales
{ "code": "en", "name": "English", "fallback_code": "es" }
code: two letters, or two plus a region (en-US).nameis optional (the language's own name by default).fallback_code: what to show when a value is missing in this language. Without it, the default language;nullfor none.- It answers
201with{ "code": "en", "name": "English", "default": false, "fallback_code": "es" }.
PATCH /api/v1/spaces/:space_id/locales/:code changes name or fallback_code.
DELETE /api/v1/spaces/:space_id/locales/:code removes a language. Its values are deleted from every entry and version, published ones too, so if it has any, it refuses with validation_failed (details.fields.delete_values says how many entries) unless you add ?delete_values=true. The default language can't be removed. It answers with entries_changed and the languages left.
Reading (list types, get one entry, filter by field) uses the same routes as the Delivery API: GET /api/v1/spaces/:space_id/content_types, GET /api/v1/spaces/:space_id/entries/:id, GET /api/v1/spaces/:space_id/entries with filters like ?content_type=menu_item&fields.slug=morning-bun. With a management key or an agent token they return the latest version, drafts included.
Model
Create a content type
POST /api/v1/spaces/:space_id/content_types
curl -X POST https://pluma.so/api/v1/spaces/acton-estero/content_types?dry_run=true \
-H "Authorization: Bearer $PLUMA_KEY" -H "Content-Type: application/json" \
-d '{
"name": "Event", "api_id": "event", "description": "Calendar events",
"fields": [
{ "api_id": "title", "name": "Title", "type": "symbol", "required": true },
{ "api_id": "slug", "name": "Slug", "type": "slug", "required": true },
{ "api_id": "startsAt", "name": "Starts", "type": "date" },
{ "api_id": "body", "name": "Description", "type": "rich_text" }
]
}'
- With
dry_run=truenothing is saved: the response says what would be created, or the errors. Always use it first. - If it looks right, send the same thing without
dry_run. It answers201with the content type (same shape as in the Delivery API):
curl -X POST https://pluma.so/api/v1/spaces/acton-estero/content_types \
-H "Authorization: Bearer $PLUMA_KEY" -H "Content-Type: application/json" \
-d '{
"name": "Event", "api_id": "event", "description": "Calendar events",
"fields": [
{ "api_id": "title", "name": "Title", "type": "symbol", "required": true },
{ "api_id": "slug", "name": "Slug", "type": "slug", "required": true },
{ "api_id": "startsAt", "name": "Starts", "type": "date" },
{ "api_id": "body", "name": "Description", "type": "rich_text" }
]
}'
- The title field, unless you send
display_field: asymbolnamedtitle,name,question,heading,headline,labelorcaption, else the firstsymbolorslug. Adding a field named like a title later takes over from a title that was picked automatically as the first short text. - Optional on create too:
guidance,previews,url_path(where its entries live on your site, like/blog/{slug}) and how the type shows in Content:kind,subtitle_field,image_field,position,entry_order(see Edit a content type). - Agent guidance (optional):
guidance(when to use the type),previews(ids of up to 4 images that show what it looks like) andhelpon each field (one line: format or example). See Agent guidance. - For the site's settings (name, phone, menu), send
"singleton": true: the type has a single entry. - Field types: the ones in Model your content. References accept
link_content_types. - Each field can also take
help(one line),group(a heading for the form),options(forselectandmulti_select) andaccept(forassetandassets). See Field settings.
Edit a content type
PATCH /api/v1/spaces/:space_id/content_types/:id
Accepts name, description, display_field, guidance, previews ([] clears them) and url_path (where its entries live on your site, like /blog/{slug}; see Staging). The api_id can't be changed.
It also takes how the type shows in the dashboard's Content section (How content is organized). Send null to go back to the automatic choice.
| Property | What it is | When not set |
|---|---|---|
kind |
page, section, collection or settings: the group it's listed in |
settings if singleton; page if it has a references field named sections, blocks, modules or components; section if such a field accepts it and it has no url_path; else collection |
subtitle_field |
The field shown under the title in lists | A single reference (a parent), else a short or long text that isn't the title, a slug or a link. Pages with a url_path show their path |
image_field |
The thumbnail in lists. Must be an asset or assets field |
The first file field that takes images |
position |
Place in the Content menu, 1 first | After the ones that have one, by name |
entry_order |
How its entries are listed: sys.position (manual), sys.created_at, sys.updated_at, sys.published_at or fields.<api_id>, with a leading - for descending |
fields.<api_id> if the type has an integer or number field named order, position, sort, sortOrder, weight or rank; else -sys.updated_at |
The content type JSON always returns the values in effect for kind, subtitle_field, image_field and entry_order, set or inferred, plus position.
Adding or editing a field and editing a content type also take ?dry_run=true (or "dry_run": true in the MCP tools update_content_type, add_field and update_field): nothing is saved and the answer is {"dry_run": true, "would_update": …} with the content type as it would be, or the same errors as the real call. A field's api_id is never reused, so try new fields with dry_run first.
Add a field
POST /api/v1/spaces/:space_id/content_types/:content_type_id/fields
{ "api_id": "seats", "name": "Seats", "type": "integer" }
{ "api_id": "level", "name": "Level", "type": "select", "options": ["Beginner", "Intermediate", "Advanced"], "group": "Details",
"help": "Who it's for" }
Field settings
| Setting | For | What it does |
|---|---|---|
help |
Any field | One line for whoever fills it in: format, unit or example. Up to 300 characters. Shown under the field's label |
group |
Any field | A short heading (up to 40 characters) that groups fields in the form: Contact, Hours, SEO. Fields with the same group show together, in a section that can collapse |
options |
select, multi_select (required there) |
The values to pick from: up to 50, unique, up to 100 characters each. A value outside them is rejected |
accept |
asset, assets |
image, video or any: what the file picker shows. When not set, it's read from the API ID: video, clip, reel → video; image, photo, logo, cover, poster, thumbnail, avatar, icon, banner → image; anything else → any |
The field JSON returns group when set, options on select and multi_select, and accept (set or inferred) on asset and assets.
List item fields (item_fields) can be symbol, text, integer, number, boolean, date, url, email, color, select (with its own options) or reference (with optional link_content_types). See Lists.
Edit or hide a field
PATCH /api/v1/spaces/:space_id/content_types/:content_type_id/fields/:id
Accepts name, required, localized, type, link_content_types, item_fields, help (one line, up to 300 characters), group, options, accept and hidden (true hides it, false shows it). Whatever you don't send doesn't change.
Changing type on a field that has data: it can move between the text types (symbol, text, url, email, color, select, slug) when every value it has fits the new type. A symbol full of https:// links can become url; one with a value like /menu can't, and you get validation_failed naming that value. Any other change of type on a field with data is rejected too: create a new field, copy the data, and hide the old one.
Order
How the dashboard's Content menu and each type's entries are ordered. Both take ?dry_run=true (or "dry_run": true in the body): nothing is saved and only the request is checked. In the MCP, both are the set_order tool.
Order the Content menu
POST /api/v1/spaces/:space_id/content_types/order
curl -X POST "https://pluma.so/api/v1/spaces/acton-estero/content_types/order?dry_run=true" \
-H "Authorization: Bearer $PLUMA_KEY" -H "Content-Type: application/json" \
-d '{ "content_types": ["event"], "groups": ["pages", "collections", "settings"] }'
content_types: API IDs in menu order. They come first; the types you leave out keep their order after them. It sets each type'sposition.groups(optional): the order of the menu's groups,pages,collectionsandsettings. Sections aren't a group: they're edited inside their pages.- Needs
manage_model. An unknown or repeated API ID givesvalidation_failedand nothing changes.
It answers with the menu:
{ "content_menu": {
"groups": [ { "group": "pages", "name": "Pages", "content_types": ["page"] },
{ "group": "collections", "name": "Collections", "content_types": ["event", "person"] },
{ "group": "settings", "name": "Settings", "content_types": ["site_settings"] } ],
"sections": ["section_hero", "section_text"] } }
Quick access
Shortcuts at the top of the dashboard's Content menu, for what the owner opens most: the site settings, the home page, a collection. With none, the menu has no such group. Owners and admins pin them from the dashboard too (Quick access on an entry or a list).
GET /api/v1/spaces/:space_id/quick_access answers with the list. PUT replaces it (needs manage_model, takes ?dry_run=true):
curl -X PUT https://pluma.so/api/v1/spaces/acton-estero/quick_access \
-H "Authorization: Bearer $PLUMA_KEY" -H "Content-Type: application/json" \
-d '{ "items": [ { "content_type": "event", "label": "Events" } ] }'
{ "quick_access": [ { "content_type": "event", "label": "Events" } ] }
An entry goes as { "entry": "12" }: for example the site settings or the home page.
- Each item is an
entry(an id) or acontent_type(an API ID), with an optionallabelof up to 40 characters; without it, the entry's title or the type's name. - Up to 8, in the order sent.
"items": []removes them all. An entry that's archived or deleted later just stops showing. - An unknown entry or type, or a repeated item, gives
validation_failedand nothing changes.
Order a type's entries
POST /api/v1/spaces/:space_id/content_types/:content_type_id/entries/order
{ "entries": ["12", "9", "15"] }
- The entries you name get positions 1, 2, 3… in that order. The type's other active entries keep their current order after them.
- The type's
entry_orderbecomessys.position, so the dashboard and the Delivery API list them in this order. - Needs
write(and access to that type, if the person is limited to some types). An id that isn't an active entry of the type givesvalidation_failed.
{ "content_type": "event", "entry_order": "sys.position",
"items": [ { "id": "12", "position": 1 }, { "id": "9", "position": 2 }, { "id": "15", "position": 3 } ] }
With dry_run: { "dry_run": true, "content_type": "event", "entry_order": "sys.position", "would_order": ["12", "9", "15"] }.
To go back to an automatic order, set the type's entry_order with Edit a content type (like -sys.published_at); the positions stay saved.
Entries
Create
POST /api/v1/spaces/:space_id/entries
curl -X POST https://pluma.so/api/v1/spaces/acton-estero/entries \
-H "Authorization: Bearer $PLUMA_KEY" -H "Content-Type: application/json" \
-d '{
"content_type": "event",
"fields": {
"title": "Open House",
"slug": "open-house",
"startsAt": "2026-10-12T09:00:00-06:00",
"body": "## Come join us\n\nA **great** day."
}
}'
- It answers
201with the entry as a draft (Delivery API shape,sys.status: "draft"). - Rich text: send markdown (a string) or the block document (an object, or that object as JSON text).
- Other types:
urlis a fullhttps://orhttp://link;emailan address;colora hex color (#1f6feb, stored lowercase;1f6febgets its#);selectone of the field'soptions;multi_selecta list of them. A value that doesn't fit givesvalidation_failedsaying what it expects. - References: the entry's
id("7"). Files: the asset'sid. - Dates: stored as you send them.
"2026-08-14"stays a date only;"2026-10-12T09:00:00-06:00"keeps its time zone. They are not converted to UTC. - Saving validates the types; required fields are validated on publish.
Edit
PATCH /api/v1/spaces/:space_id/entries/:id
{ "version": 3, "fields": { "title": "Open House 2026" } }
- Only the fields you send change. To empty one, send it as
null. - Every edit is a new version.
version(optional, recommended): the version you read. If someone saved another one in between, you getversion_conflictand nothing is overwritten.- Another language: add
?locale=enand the fields you send are written in English (only localized fields). With?locale=*, each field is an object by language,{ "title": { "es": "Menú del día", "en": "Daily menu" } }, and errors for a language other than the default come astitle.en. Creating takes the samelocale. See Languages.
Translate with AI
POST /api/v1/spaces/:space_id/entries/:id/translate
{ "to": "en" }
Fills the English localized fields that are still empty from the default language, with AI, and saves them as a new draft version. It never publishes. Text, rich text (same structure), slugs (translated and unique), tags and the text in lists are translated; references, files, numbers, dates and yes/no stay. "overwrite": true translates every field again. Needs write.
It answers with the entry in that language plus translation: { "from": "es", "to": "en", "fields": ["title", "slug", "body"], "skipped": [] }. skipped lists rich text fields whose translation came back with a different structure; they're left as they were. If the AI provider is down: translation_unavailable, and nothing is saved.
Publish, archive, unarchive
POST /api/v1/spaces/:space_id/entries/:id/publish
POST /api/v1/spaces/:space_id/entries/:id/archive
POST /api/v1/spaces/:space_id/entries/:id/unarchive
Publishing validates the whole entry (required fields, unique slugs, references, files with alt text). If it fails, you get validation_failed with the details per field.
Every write answers with where the entry shows and what happens to the live site now: see What a write tells you.
Versions
GET /api/v1/spaces/:space_id/entries/:id/versions
{ "sys": { "type": "Array" }, "total": 3, "items": [
{ "version": 3, "author": { "type": "ApiKey", "name": "Rosa's agent" }, "created_at": "…", "published": false, "fields": { … } }
] }
Find content
GET /api/v1/spaces/:space_id/search
Finds where something is before you change it. q (required) is the text a person sees on the site ("el sabor de compartir") or a key: a field's API ID or name (tagline), a content type (hero). Every key can use it: a delivery key only searches what's published.
curl "https://pluma.so/api/v1/spaces/acton-estero/search?q=open+house" \
-H "Authorization: Bearer $PLUMA_KEY"
- What it searches: every field of every active entry (short and long text, rich text as plain text, list rows, tags, options, numbers), in
localeand in the default language; plus field API IDs, names and help, and content type names. Accents, case and punctuation don't count:el sabor de compartirfindsEl sabor de\n*compartir.*. - Order: the phrase in a title-like field of something on a page first; then the rest of what pages show; then collections; then site-wide settings. On the home page before other pages, and higher on the page first.
limit: 1 to 50, default 20.totalsays how many matched.
{ "query": "el sabor de compartir", "locale": "es", "total": 2, "limit": 20, "results": [
{ "entry": { "id": "270", "title": "El sabor de compartir", "status": "published", "version": 3, "published_version": 3 },
"content_type": { "api_id": "section_home_hero", "name": "Home hero", "kind": "section" },
"field": { "api_id": "title", "name": "Title", "type": "symbol", "help": "The big title at the top of the home", "path": "title" },
"match": { "on": "value", "how": "exact", "locale": "es", "value": "El sabor de compartir", "snippet": "«El sabor de compartir»" },
"appears_on": { "site_wide": false, "pages": [
{ "id": "205", "title": "Inicio", "content_type": "page", "status": "published", "home": true,
"url": "https://www.example.com/", "preview_url": "https://staging.example.com/",
"section": { "id": "270", "content_type": "section_home_hero", "field": "sections", "position": 1, "of": 9,
"where": "section 1 of 9, top of the page" } } ] },
"note": "A site-wide setting has the same text: site_settings.tagline (entry 92). This field is the one the page shows." },
{ "entry": { "id": "92", "title": "Pastelería Kolonia", "status": "published", "version": 5, "published_version": 5 },
"content_type": { "api_id": "site_settings", "name": "Site settings", "kind": "settings" },
"field": { "api_id": "tagline", "name": "Tagline", "type": "symbol", "path": "tagline" },
"match": { "on": "value", "how": "exact", "locale": "es", "value": "El sabor de compartir", "snippet": "«El sabor de compartir»" },
"appears_on": { "site_wide": true, "pages": [], "note": "Site-wide settings: …" },
"note": "This is a site-wide setting. The page \"Inicio\" shows the same text in section_home_hero.title (entry 270, section 1 of 9, top of the page). This setting may only be a fallback the site uses when that field is empty: to change what visitors see there, edit entry 270." }
] }
match.on:value,field(the field's API ID or name),help, orcontent_type.match.how:exact(the whole value),phrase,words(every word, in any order), or the same asonfor the others.snippetputs«»around the match;pathpoints inside lists and tags (openingHours[0].days).appears_on: the pages that show the entry, following references up through sections to the page, with the section's place on it and the page'surlandpreview_url.site_wide: truefor settings, and for what a settings entry points to.note: when a settings field has the same text as something a page shows. The page's field is the one visitors see; the setting is often only a fallback.
The dashboard's Content search uses the same search.
Describe a page
GET /api/v1/spaces/:space_id/entries/:id/outline
GET /api/v1/spaces/:space_id/outline
A page as a visitor sees it, top to bottom: its own fields, then each section in order, with its entry id, type and fields (name, help and a preview of the value; null when empty). The second route takes ?path=/about (a path on the site). Without id or path, the home page: the page at /, or with the slug home, inicio or index, or else the first page.
{ "page": { "id": "205", "title": "Inicio", "content_type": { "api_id": "page", "name": "Page", "kind": "page" },
"status": "published", "version": 4, "home": true, "url": "https://www.example.com/" },
"fields": [ { "api_id": "title", "name": "Title", "type": "symbol", "help": "Browser tab title", "value": "Inicio" } ],
"sections_field": "sections",
"sections": [
{ "position": 1, "of": 9, "where": "section 1 of 9, top of the page", "id": "270", "title": "El sabor de compartir",
"content_type": { "api_id": "section_home_hero", "name": "Home hero", "kind": "section" }, "status": "published", "version": 3,
"fields": [ { "api_id": "title", "name": "Title", "type": "symbol", "help": "The big title at the top of the home", "value": "El sabor de compartir" } ] }
],
"site_wide": { "note": "Site-wide settings can also show on this page …", "entries": [ { "id": "92", "title": "Pastelería Kolonia", "content_type": "site_settings", "fields": 34 } ] },
"next": "To change something on this page, update the entry and field listed here …" }
An entry that isn't a page gives invalid_parameter, and fix names the pages it's on.
What a write tells you
Creating, editing, publishing, unpublishing and archiving an entry answer with the entry, as always, plus three keys, so whoever made the change knows what visitors see and when:
{ "sys": { "id": "270", "status": "published", "…": "…" }, "fields": { "…": "…" },
"appears_on": { "site_wide": false, "pages": [ { "id": "205", "title": "Inicio", "home": true, "url": "https://www.example.com/",
"section": { "position": 1, "of": 9, "where": "section 1 of 9, top of the page", "…": "…" } } ] },
"deploy": { "id": "8812", "state": "pending", "done": false, "live": false, "event": "entry.published",
"hooks": [ { "id": "3", "name": "Netlify", "kind": "netlify", "target": "production", "state": "pending", "fires_at": "2026-10-02T15:04:31Z" } ],
"verify_at": "https://www.example.com/",
"poll": { "tool": "get_deploy_status", "arguments": { "id": "8812" }, "api": "GET /api/v1/spaces/kolonia/deploys/8812",
"wait": "Check again in 30-60 s: …", "until": "done is true (hooks delivered and live_page_changed_at set), or about 5 minutes" } },
"next": "Published in Pluma. The live site is rebuilding: Pluma calls Netlify (Netlify) within 30 s, and the build usually takes 1-3 minutes. It isn't live yet: poll get_deploy_status, then check https://www.example.com/. Nobody notifies you when it's done: tell the person it's building, share https://www.example.com/ (where the change will show), and call get_deploy_status again before saying it's there." }
appears_on: where the entry shows; see Find content. For settings:site_wide: true.deploy: what the change does to the site now, with anidto poll. A save fires thepreviewhooks (the staging site); a publish or an unpublish theproductionones.next: one plain sentence to repeat to a person. It never says "live" unless Pluma saw the live page change after the build: right after publishing, a site with a deploy hook is rebuilding, not live. While the deploy isn'tdone, it ends by saying that nothing notifies you when it finishes, and gives the link to share (verify_at, where the change will show): tell the person it's building, share the link, and call deploy status again before saying it's there.field_help(saves only): the help of each field the save changed,{ "title": "Big title. *Italics* between asterisks; a line break is kept." }. Only fields that have help.warnings(saves only): one sentence per value that lost markup its old value had: text between asterisks (*like this*) or line breaks. With the old and new value and the field's help, so you can write it again if that wasn't on purpose.- A batch adds the same keys to each entry result.
Trigger a deploy
POST /api/v1/spaces/:space_id/deploys
Rebuilds the site now by calling its deploy hooks, without publishing or changing anything. For a site that reads other data when it's built (prices, stock, another system), or when someone just says "redeploy". Needs publish: owners, admins and editors, and their agents; viewers and authors can't. Over MCP it's trigger_deploy.
curl -X POST "https://pluma.so/api/v1/spaces/acton-estero/deploys" \
-H "Authorization: Bearer $PLUMA_KEY" -H "Content-Type: application/json" \
-d '{ "target": "production" }'
{ "deploy": { "id": "8830", "state": "pending", "done": false, "live": false, "event": "deploy.requested", "target": "production",
"hooks": [ { "id": "3", "name": "Netlify", "kind": "netlify", "target": "production", "state": "pending", "fires_at": "2026-11-10T15:04:31Z" } ],
"verify_at": "https://www.example.com", "poll": { "tool": "get_deploy_status", "arguments": { "id": "8830", "wait": true }, "…": "…" } },
"coalesced": false,
"next": "Rebuild of the live site requested (nothing was published). Pluma calls Netlify within 30 s, and the build usually takes 1-3 minutes. …" }
target:production(default) calls the hooks with targetproduction(the live site);stagingcalls thepreviewhooks (the staging site). A hook'seventsdon't matter here: every hook of that target is called, with one eventdeploy.requested(Webhooks).- Coalescing: hooks call 30 s after the first request (like after a publish). Asking again for the same target while that deploy is still waiting returns the same deploy (
coalesced: true, sameid, HTTP 200 instead of 202), so a double "redeploy" is one build. Changes published in those 30 s go out in the same call. Once the hooks were called, a new request is a new deploy. - The answer is
deployandnext, like a write: poll deploy status withdeploy.idbefore saying it's rebuilt. A rebuild with the same content can leave the live home page the same, solivemay stayfalse:nextsays to check the site. - No hook for that target:
deploy_unavailable, and nothing is called.fixnames the other target when it has one.targetother thanproductionorstaging:invalid_parameter.
Deploy status
GET /api/v1/spaces/:space_id/deploys/:id
What a change did to the site. id is the deploy.id a write or a deploy returned, or latest for the site's last change. Needs read_drafts.
curl "https://pluma.so/api/v1/spaces/acton-estero/deploys/latest" \
-H "Authorization: Bearer $PLUMA_KEY"
{ "id": "8812", "state": "delivered", "done": true, "live": true, "event": "entry.published", "change": "entry.published", "at": "2026-10-02T15:04:01Z",
"entry": { "id": "270", "title": "El sabor de compartir", "content_type": "section_home_hero", "status": "published" },
"hooks": [ { "id": "3", "name": "Netlify", "kind": "netlify", "target": "production", "state": "delivered", "status_code": 200, "attempts": 1,
"first_attempt_at": "2026-10-02T15:04:31Z", "last_attempt_at": "2026-10-02T15:04:32Z" } ],
"live_page_changed_at": "2026-10-02T15:06:40Z",
"live_page": { "url": "https://www.example.com", "picture_taken_at": "2026-10-02T15:06:40Z", "note": "…" },
"verify_at": "https://www.example.com/",
"next": "Live: Netlify (Netlify) accepted the build and the live home page changed at 2026-10-02T15:06:40Z. Check https://www.example.com/." }
seen_on_page_at: when you poll this endpoint after the hooks delivered, Pluma opensverify_atlike a visitor and checks that it shows the text the change wrote (the longest changed text; for a publish, changed since the previous publish; accents, case and markup aside). A change that wrote no text (a yes/no, a number, a reference) can't be confirmed this way, soseen_on_page_atstays empty andnextdoesn't say live. That's the sign the change is on the page where it shows, not only the home. It's checked at most once a minute and never inside a write's response.?wait=40: holds the answer until the change isdone(the page shows it), up to 40 s, checking every 5 s;waitedsays how long it waited. Use it right after a change, so you can confirm before you answer the person: nothing notifies you later. A build usually takes 1-3 minutes, so call again whiledoneisfalse. The MCP tool waits by default (wait: falseanswers right away).shot_url: the first time Pluma sees the change on its page, it takes a picture of the part of the page that shows it, marked, and keeps it. Anyone with the link can open it, so you can show it to the person. Over MCP,get_deploy_statusalso returns it as an image.- A saved draft with a staging hook gets the same check on the staging page (
verify_atis the staging URL):donestaysfalseuntil staging shows the change, or 5 minutes after the hook delivered, andnextsays which.livestaysfalse: visitors don't see a draft. drafts_live: true: the site's live and staging addresses are the same, so it's built with drafts. There a saved draft is what visitors see once the build finishes, andnextsays so instead of "not live until published".
state |
What it means |
|---|---|
pending |
The hook fires 30 s after the last change (changes in a row go in one call) |
delivering |
Pluma is calling the hook, or retrying after an error (up to 5 times, waiting longer each time) |
delivered |
Every hook answered 2xx: the host accepted the build. It may still be building |
failed |
A hook failed 5 times: the site did not update. hooks[].error says why |
no_hook |
No deploy hook listens to this change. If the site is built ahead of time, it won't change until someone rebuilds it |
not_needed |
The change doesn't touch the live site (taking something out of the archive, archiving a draft) |
unknown |
Pluma can't find the change in the hook's queue or deliveries |
live_page_changed_at: when the live home page changed after a publish. Pluma watches it for 20 minutes after each change (Site preview); it's the sign that the build is live, wherever the site is hosted. Pluma knows when the host accepted the hook, not when the build finished. A change on another page may not change the home: then openverify_at.live:trueonly when the hooks delivered and either the page already shows the change (seen_on_page_at) or the live home page changed after it.done: stop polling. While it'sfalse,pollsays how: call again right away withwait, for about 5 minutes at most.
Files
Upload
POST /api/v1/spaces/:space_id/assets
As multipart, with the file:
curl -X POST https://pluma.so/api/v1/spaces/acton-estero/assets \
-H "Authorization: Bearer $PLUMA_KEY" \
-F "file=@playground.jpg" -F "title=Playground" -F "alt=Recess in the playground"
Or as JSON, with the file's URL: Pluma downloads it. Useful for migrating from another CMS without downloading anything to your machine.
{ "url": "https://images.ctfassets.net/…/playground.jpg", "alt": "Recess in the playground" }
- The URL must be
httpsand on the public internet. Up to 3 redirects are followed, and each one is checked again. filename(optional) changes the name; otherwise the one from the URL is used. The title comes from the name if you don't sendtitle.- Types and sizes: JPG, PNG, WebP, GIF, SVG and PDF up to 20 MB; MP4 and WebM up to 50 MB. An SVG can't contain scripts or load things from outside. See Images and files.
Edit or replace a file
PATCH /api/v1/spaces/:space_id/assets/:id
Accepts title, alt and description. To replace the file itself, also send file (multipart) or url (JSON, like when uploading). The id stays the same, so every entry that uses it shows the new file without being edited. Same types and sizes as an upload.
# 4 is the id of the file you're replacing
curl -X PATCH https://pluma.so/api/v1/spaces/acton-estero/assets/4 \
-H "Authorization: Bearer $PLUMA_KEY" -F "file=@patio-2027.jpg"
If something published uses the file, the deploy hooks get asset.replaced so the site rebuilds with it.
Batch
POST /api/v1/spaces/:space_id/batch
Several operations in a single request, all or nothing: if one fails, nothing is saved. To migrate a whole site in a few calls instead of hundreds.
curl -X POST https://pluma.so/api/v1/spaces/acton-estero/batch \
-H "Authorization: Bearer $PLUMA_KEY" -H "Content-Type: application/json" \
-d '{
"operations": [
{ "op": "create_entry", "ref": "fair", "content_type": "event",
"fields": { "title": "Science fair", "slug": "science-fair", "startsAt": "2026-11-05T14:00:00-06:00" } },
{ "op": "create_entry", "ref": "graduation", "content_type": "event",
"fields": { "title": "Graduation", "slug": "graduation", "startsAt": "2026-11-28" } },
{ "op": "publish_entry", "id": "$fair" },
{ "op": "publish_entry", "id": "$graduation" }
]
}'
It answers 200 with one result per operation, in the same order:
{ "dry_run": false, "total": 4, "results": [
{ "op": "create_entry", "ref": "fair", "sys": { "id": "12", "type": "Entry", "content_type": "event", "version": 1, "status": "draft" } },
…
{ "op": "publish_entry", "sys": { "id": "13", "type": "Entry", "content_type": "event", "version": 1, "status": "published" } }
] }
op |
Fields | Permission |
|---|---|---|
create_entry |
content_type, fields, locale (optional) |
write |
update_entry |
id, fields, version (optional), locale (optional) |
write |
create_asset |
url, or data (base64) + filename for a local file; title, alt, description |
write |
publish_entry |
id |
publish |
archive_entry |
id |
publish |
unarchive_entry |
id |
publish |
ref: give an operation a name and use it later as"$name": inid, and in reference fields (reference,references) or file fields (asset,assets). That way you create an author and a post that references it in the same batch, without knowing the ids. They are not resolved inside rich text: use the real id there.locale: like?locale=on a single entry:"en"writes English,"*"takes each field as an object by language. See Languages.- Limits: up to 100 operations and 20 files (
create_asset) per batch. It counts as one request for the per-token limit. dry_run=true: runs everything, validates everything and saves nothing. Files are still downloaded, to validate them. The ids in a dry run are not reserved: the real run can get different ones, so always use"$ref".- Where it shows and the deploy: each entry result also carries
appears_on,deployandnext, like a single write (What a write tells you). Not in a dry run. - Links: with the site's URLs and the type's
url_pathset, each entry result also carriesurlandpreview_url(see Staging), so you can hand the owner the link without reading the entry again. - If something fails, the error is that operation's (
validation_failed,not_found,version_conflict,key_cannot…) anddetails.operationsays which one (starting at 0), with itsopand itsref. Fix that one and send the whole batch again. - Deploy hooks fire only if the batch was saved: a batch that fails doesn't trigger builds.
Export everything
GET /api/v1/spaces/:space_id/export
Returns the whole site as JSON: content types with all their fields (hidden ones too), each entry with its latest version and its published version, and the files with their URL. It's yours: if you leave, you take it with you.
AI answers
GET /api/v1/spaces/:space_id/answers
GET /api/v1/spaces/:space_id/questions
PATCH /api/v1/spaces/:space_id/questions
POST /api/v1/spaces/:space_id/answers/runs
GET /api/v1/spaces/:space_id/answers/runs/:id
GET /api/v1/spaces/:space_id/answers returns the site's questions, the place they're asked from (market, see Market) and the last finished run: how many answers, in how many the site is mentioned and cited, its average_position, the competitors named in the answers (each with how many answers named it), the issues (statements that contradict the site's published content, each with claim and correct), and items with each question's answer and sources. in_progress is a run that started and hasn't finished yet (null if none). history has the last 12 runs. Any key that reads drafts.
GET /api/v1/spaces/:space_id/questions returns only the questions (each with id, text, source and the search it came from) and the market. Any key that reads drafts.
PATCH /api/v1/spaces/:space_id/questions replaces the questions: {"questions": ["…", "…"], "market": {"country": "GT", "city": "Guatemala City"}}, 1 to 30 questions of up to 200 characters. market is optional; to change only the market, use PATCH /api/v1/spaces/:space_id/market. Needs manage_model. See AI answers.
POST /api/v1/spaces/:space_id/answers/runs asks the stored questions now, from the stored market, instead of waiting for Monday's run. It answers 202 with the run: id, status (running, then done or failed), created_at, finished_at, cost_usd and how many answers so far. A run takes a few minutes; follow it with GET /api/v1/spaces/:space_id/answers/runs/:id, and read the results with GET /api/v1/spaces/:space_id/answers once it's done. It costs money (one call per question and assistant), so it needs manage_model and runs once a day at most: otherwise run_unavailable, with details.reason.
Market
GET /api/v1/spaces/:space_id/market
PATCH /api/v1/spaces/:space_id/market
Where the business's customers are, so AI answers are asked from there: { "country": "US", "region": "Louisiana", "city": "Gonzales", "source": "content" }. source says where it came from: manual (a person or an agent set it), or Pluma's guess from the site's content (an address), its phone numbers, its domain (.gt), or the creator's ip or timezone. GET needs a key that reads drafts.
PATCH sets it and keeps the questions: {"country": "US", "region": "Louisiana", "city": "Gonzales"}. country is a 2-letter ISO 3166 code and is required; region and city are optional, up to 80 characters. Pluma's guesses never replace a market set this way. {"country": ""} clears it, and Pluma guesses again. Needs manage_model. If the guess doesn't match the address or phone numbers in the site's content, fix it here.
Analytics
GET /api/v1/spaces/:space_id/analytics
The site's first-party analytics for the last days (1 to 365, default 30): visitors, page_views, from_ai (visitors and page views that came from an AI assistant), and top-10 lists of sources, ai_engines, referrers, pages, countries, cities, campaigns (UTM) and devices, each item with its count of visitors. crawlers has the AI crawler visits, by_bot (with operator and purpose: search, user or training) and the pages read for answers. Any key that reads drafts. See Analytics.
Search queries
GET /api/v1/spaces/:space_id/search_queries
What people searched on Google and Bing before they saw or clicked the site, from Google Search Console and Bing Webmaster Tools, for the last days (1 to 90, default 28). engine is google or bing; without it, both. Any key that reads drafts. Empty until an owner connects the engines in Settings → Integrations (it needs their Google or Bing account, so there's no API to connect). See Search Console and Bing.
connections: each connected engine with itssite_url(the property),synced_atandlast_error(nullwhen the last sync worked).totals: per engine,clicks,impressions,ctr(0 to 1) andposition(average, 1 is the top). For Google, its own web totals (they include the rare searches it leaves out of the list).trend: per engine,days(clicks and impressions per day; Bing per week), andthis_weekagainstlast_week: the last 7 days with data and the 7 before (Google's newest days come a day or two late).clicks_changeandimpressions_changeare 0.2 for 20% more,nullwhen last week had none.queriesandpages: the top 50 of each, most clicks first, withengine, thequeryorpage, and the same four numbers. Each query also hasbranded,pages(the pages it landed on, up to 3, with theirshareof its impressions; Google only) andsplit.cannibalization: searches two or more pages split (each with at least 20% of the impressions, 20+ impressions in all, not naming the business), with the pages.countries,devicesandsearch_types(Google only; Bing's API doesn't give them): clicks and impressions, and for countries and devices theirshare.search_typeshasweb,imageandvideo, plusnewsanddiscoverwhen the site shows up there.index(Google only, elsenull): whether Google has the site's important pages, from the URL Inspection API:checked,indexed,not_in_google_yet(published 7+ days ago, or the home page, and still not on Google) andpages, those first, each withindexed, Google'sverdictandcoverage_state,last_crawled_at,rich_resultsandinspected_at.sitemaps: per engine, what the live site says (site: its sitemapurl,found, anddeclaredin robots.txt), awarning(missing,undeclared,unknown_to_engineornull) and the sitemaps the engineknowns witherrors,warnings,submittedandindexed.bing_urls(Bing only, elsenull): the published pages waiting to be sent to Bing (pending) and the last batch.
Classic search only. Neither engine shares its AI answers data (Google's AI Overviews and AI Mode, Bing's Copilot) through its API.
{
"days": 28,
"since": "2026-09-03",
"connections": [{ "engine": "google", "site_url": "sc-domain:harborbakery.example", "synced_at": "2026-10-01T05:10:00Z", "last_error": null }],
"totals": { "google": { "clicks": 412, "impressions": 9870, "ctr": 0.0417, "position": 11.3 } },
"trend": { "google": { "days": [{ "date": "2026-09-03", "clicks": 12, "impressions": 310 }],
"this_week": { "from": "2026-09-23", "to": "2026-09-29", "clicks": 118, "impressions": 2610 },
"last_week": { "from": "2026-09-16", "to": "2026-09-22", "clicks": 98, "impressions": 2400 },
"clicks_change": 0.204, "impressions_change": 0.088 } },
"queries": [{ "engine": "google", "query": "sourdough near me", "clicks": 96, "impressions": 1240, "ctr": 0.0774, "position": 3.2,
"branded": false, "split": false,
"pages": [{ "page": "https://harborbakery.example/bread", "clicks": 90, "impressions": 1180, "ctr": 0.0763, "position": 3.1, "share": 0.952 }] }],
"cannibalization": [{ "engine": "google", "query": "birthday cakes", "clicks": 14, "impressions": 820,
"pages": [{ "page": "https://harborbakery.example/cakes", "impressions": 470, "share": 0.573, "clicks": 9, "ctr": 0.0191, "position": 8.2 },
{ "page": "https://harborbakery.example/blog/birthday-cakes", "impressions": 350, "share": 0.427, "clicks": 5, "ctr": 0.0143, "position": 11.6 }] }],
"pages": [{ "engine": "google", "page": "https://harborbakery.example/menu", "clicks": 180, "impressions": 3100, "ctr": 0.0581, "position": 6.4 }],
"countries": [{ "engine": "google", "country": "US", "clicks": 380, "impressions": 9100, "ctr": 0.0418, "position": 10.8, "share": 0.922 }],
"devices": [{ "engine": "google", "device": "mobile", "clicks": 290, "impressions": 7020, "ctr": 0.0413, "position": 11.0, "share": 0.711 }],
"search_types": [{ "engine": "google", "type": "web", "clicks": 412, "impressions": 9870, "ctr": 0.0417, "position": 11.3 },
{ "engine": "google", "type": "image", "clicks": 9, "impressions": 1400, "ctr": 0.0064, "position": 18.2 }],
"index": { "checked": 24, "indexed": 22, "not_in_google_yet": 1,
"pages": [{ "url": "https://harborbakery.example/blog/rye", "indexed": false, "verdict": "NEUTRAL", "coverage_state": "Discovered - currently not indexed",
"last_crawled_at": null, "rich_results": [], "not_in_google_yet": true, "inspected_at": "2026-10-01T05:20:00Z", "error": null }] },
"sitemaps": { "google": { "site": { "url": "https://harborbakery.example/sitemap.xml", "found": true, "declared": true }, "warning": null,
"known": [{ "path": "https://harborbakery.example/sitemap.xml", "errors": 0, "warnings": 0, "submitted": 26, "indexed": 22 }] } },
"bing_urls": null
}
AI readiness
GET /api/v1/spaces/:space_id/readiness
POST /api/v1/spaces/:space_id/readiness
POST reads the site's live URL like an AI crawler and returns each check; GET returns the last one. Any key that reads drafts (read_drafts). Once a minute at most. Each check has key, title, status (pass, warn or fail), detail, fix_by (content or site), ask_agent (the instruction to fix it, or null) and doc_url. See AI visibility.
{
"url": "https://harborbakery.example",
"checked_at": "2026-10-01T12:00:00Z",
"passed": 6,
"total": 9,
"checks": [
{ "key": "summary-for-ai", "title": "There's a summary for AI (llms.txt)", "status": "warn",
"detail": "No llms.txt. …", "fix_by": "site", "ask_agent": "Add https://harborbakery.example/llms.txt: …",
"doc_url": "https://pluma.so/docs/guides/ai-visibility#summary-for-ai" }
]
}
If the site has no live URL, or the last check was less than a minute ago: check_unavailable.
Possible errors
key_cannot, check_unavailable, validation_failed, version_conflict, invalid_body, plus the read ones.