Sites in the Fulldev API
Copy as MarkdownEvery Sites operation of the Fulldev API, with what it takes, what it answers and an example.
Docs
The reference comes straight from the API's own definition, so it always matches what the API does. The OpenAPI document
Operations
- List websites
GET /api/v1/data/websites - Create one of websites
POST /api/v1/data/websites - Change one of websites
PATCH /api/v1/data/websites/{id} - Get one of websites
GET /api/v1/data/websites/{id} - site_open_branch
POST /api/v1/actions/site_open_branch - site_commit
POST /api/v1/actions/site_commit - site_update_branch
POST /api/v1/actions/site_update_branch - site_merge
POST /api/v1/actions/site_merge - site_close
POST /api/v1/actions/site_close - site_revert
POST /api/v1/actions/site_revert - site_prepare_image_upload
POST /api/v1/actions/site_prepare_image_upload - site_create_role
POST /api/v1/actions/site_create_role - site_update_role
POST /api/v1/actions/site_update_role - site_delete_role
POST /api/v1/actions/site_delete_role - site_set_role
POST /api/v1/actions/site_set_role - List site_editing's instances
GET /api/v1/services/site_editing - Get site_editing's settings and status
GET /api/v1/services/site_editing/{id} - site_editing: repositories
POST /api/v1/services/site_editing/queries/repositories - site_editing: repository
POST /api/v1/services/site_editing/queries/repository - site_editing: paths
POST /api/v1/services/site_editing/queries/paths - site_editing: files
POST /api/v1/services/site_editing/queries/files - site_editing: schema
POST /api/v1/services/site_editing/queries/schema - site_editing: publication
POST /api/v1/services/site_editing/queries/publication - site_editing: search
POST /api/v1/services/site_editing/queries/search - site_editing: diff
POST /api/v1/services/site_editing/queries/diff - site_editing: status
POST /api/v1/services/site_editing/queries/status - site_editing: revision
POST /api/v1/services/site_editing/queries/revision - site_editing: changes
POST /api/v1/services/site_editing/queries/changes - site_editing: commits
POST /api/v1/services/site_editing/queries/commits - site_editing: preview
POST /api/v1/services/site_editing/queries/preview - site_editing: image_upload
POST /api/v1/services/site_editing/queries/image_upload - site_editing: versions
POST /api/v1/services/site_editing/queries/versions - site_editing: edit
POST /api/v1/services/site_editing/queries/edit - site_editing: pull_requests
POST /api/v1/services/site_editing/queries/pull_requests - site_editing: roles
POST /api/v1/services/site_editing/queries/roles - site_editing: people
POST /api/v1/services/site_editing/queries/people - site_editing: activity
POST /api/v1/services/site_editing/queries/activity
List websites
GET/api/v1/data/websites
The organization's websites: name, address and live domain, which services such as Comments and Scan bind to and Work's projects link (websiteIds). Create one by its address for a project without adding it to Sites, Scan or Comments; the organization's website at that domain, also one shared with it, is returned as it is.
Parameters
limitquery · integeroptionalHow many at most, 50 when left out; a list that is always short gives all its rows at once, without a cursor.
cursorquery · stringoptionalThe cursor the last page returned, for the next.
Response
itemsarray of objectrequiredidstring (uuid)requirednamestringrequiredurlstringrequiredhostnamestringrequiredThe live domain, without www.
platform"shopify" | "astro" | nullrequiredWhat the website runs on where Sites edits it: shopify for a Shopify shop, astro for an Astro website.
revisionintegerrequiredcreatedAtstring (date-time)requiredupdatedAtstring (date-time)required
cursorstringoptionalThe next page's cursor, while there is more.
Example
curl "https://app.full.dev/api/v1/data/websites" \
-H "Authorization: Bearer $FULLDEV_API_KEY"Create one of websites
POST/api/v1/data/websites
Parameters
Idempotency-Keyheader · stringoptionalYour own key for this change: send the same one on a retry, so it happens once.
Bodyrequired
addressstringrequiredThe website's address, such as example.com.
namestringoptionalIts name; its domain where left out.
Response
idstring (uuid)requirednamestringrequiredurlstringrequiredhostnamestringrequiredThe live domain, without www.
platform"shopify" | "astro" | nullrequiredWhat the website runs on where Sites edits it: shopify for a Shopify shop, astro for an Astro website.
revisionintegerrequiredcreatedAtstring (date-time)requiredupdatedAtstring (date-time)required
Example
# Once per change; send the same key when you retry this request.
IDEMPOTENCY_KEY=$(uuidgen)
curl -X POST "https://app.full.dev/api/v1/data/websites" \
-H "Authorization: Bearer $FULLDEV_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"address": "address"
}'Change one of websites
PATCH/api/v1/data/websites/{id}
Parameters
idpath · stringrequiredIdempotency-Keyheader · stringoptionalYour own key for this change: send the same one on a retry, so it happens once.
Bodyrequired
namestringrequiredrevisionintegeroptional
Response
idstring (uuid)requirednamestringrequiredurlstringrequiredhostnamestringrequiredThe live domain, without www.
platform"shopify" | "astro" | nullrequiredWhat the website runs on where Sites edits it: shopify for a Shopify shop, astro for an Astro website.
revisionintegerrequiredcreatedAtstring (date-time)requiredupdatedAtstring (date-time)required
Example
# Once per change; send the same key when you retry this request.
IDEMPOTENCY_KEY=$(uuidgen)
curl -X PATCH "https://app.full.dev/api/v1/data/websites/$ID" \
-H "Authorization: Bearer $FULLDEV_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "name"
}'Get one of websites
GET/api/v1/data/websites/{id}
Parameters
idpath · stringrequired
Response
idstring (uuid)requirednamestringrequiredurlstringrequiredhostnamestringrequiredThe live domain, without www.
platform"shopify" | "astro" | nullrequiredWhat the website runs on where Sites edits it: shopify for a Shopify shop, astro for an Astro website.
revisionintegerrequiredcreatedAtstring (date-time)requiredupdatedAtstring (date-time)required
Example
curl "https://app.full.dev/api/v1/data/websites/$ID" \
-H "Authorization: Bearer $FULLDEV_API_KEY"site_open_branch
POST/api/v1/actions/site_open_branch
Opens or resumes your active branch for a repository. Returns its id, Git branch name and revision. The branch and its draft pull request are made on the first commit, so opening again resumes the same branch; one that changes files you may not change (now) is left for review, and a new one opens with the rest: retained then names the files left behind and the pull request to share with someone who may publish them.
Parameters
Idempotency-Keyheader · stringoptionalYour own key for this change: send the same one on a retry, so it happens once.
Bodyrequired
repositoryIdstring (uuid)requirednamestringrequiredShort description of the change, used as the pull request title.
branchIdstring (uuid)optionalOpen this branch of the website (a version's branchId from sites_list_versions), someone else's too, instead of your draft.
createbooleanoptionalStart a new branch named name, beside your draft and the website's other branches, instead of resuming your draft.
Response
idstringrequiredrepositoryIdstringrequirednamestringrequiredbranchstringrequiredrevisionstringrequiredCurrent commit SHA; pass as expectedRevision.
pullRequestobjectoptionalnumbernumberrequiredurlstringrequiredstatestringrequireddraftbooleanrequiredpublishingbooleanrequiredGitHub merges it once its checks pass; a save stops it.
retainedobjectoptionalYour draft held changes you may no longer make: the rest moved here, and these paths wait for review on the former pull request. Give the person its link to share with someone who may publish them.
pullRequestUrlstringoptionalpathsarray of stringrequired
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_commit
POST/api/v1/actions/site_commit
Commits one batch of file changes to your branch with expectedRevision, the revision you last read, and opens its draft pull request on the first commit. Each change is a path with content (null deletes) or edits, exact replacements that each match once. Only the files your role on the website lets you change may change (site_editing's repositories answer its rules as access); any other path is refused, as are new MDX import and export lines in content, which are code. ACCESS_CHANGED means your role narrowed since your draft began: open it again with site_open_branch. Saving costs nothing of the weekly allowance; publishing does. A conflict means the branch moved: read again and retry with the new revision. The website then builds the save's preview, in about a minute: site_editing's preview links its changed pages once it is ready.
Parameters
Idempotency-Keyheader · stringoptionalYour own key for this change: send the same one on a retry, so it happens once.
Bodyrequired
branchIdstring (uuid)requiredexpectedRevisionstringrequiredCommit SHA from the latest read. Refresh after a conflict.
changesarray of objectrequiredOne of these shapes:
pathstringrequiredcontentstring | nullrequiredFull new file text, or null to delete the file.
pathstringrequirededitsarray of objectrequiredTargeted replacements applied in order to the current file. Each oldText must match exactly once; include surrounding lines to make it unique. Preferred for small changes in larger files.
oldTextstringrequiredExact existing text, occurring once in the file.
newTextstringrequired
pathstringrequiredimageUploadIdstring (uuid)required
Response
idstringrequiredrepositoryIdstringrequirednamestringrequiredbranchstringrequiredrevisionstringrequiredCurrent commit SHA; pass as expectedRevision.
pullRequestobjectoptionalnumbernumberrequiredurlstringrequiredstatestringrequireddraftbooleanrequiredpublishingbooleanrequiredGitHub merges it once its checks pass; a save stops it.
organizationstring | nullrequiredThe organization's slug, for the calls that follow.
previewobjectoptionalThe website builds this save's preview, which takes about a minute: ask for the preview after retryAfterSeconds for its links to the changed pages, or what the website refused when it failed.
state"building"requiredretryAfterSecondsnumberrequired
problemsarray of objectoptionalWhat the saved content has that the website's schemas do not take, by file and field, such as a third item where it takes two. Saved all the same, but its build refuses it: fix these and save again before publishing.
pathstringrequiredfieldstringrequiredmessagestringrequired
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_update_branch
POST/api/v1/actions/site_update_branch
Merges the base branch into your branch when a merge reports it behind. When files changed on both sides it returns both versions of each: write one merged version that keeps both changes and call it again with a resolution for every conflicting path (content, or keep for one side whole).
Parameters
Idempotency-Keyheader · stringoptionalYour own key for this change: send the same one on a retry, so it happens once.
Bodyrequired
branchIdstring (uuid)requiredexpectedRevisionstringrequiredCommit SHA from the latest read. Refresh after a conflict.
resolutionsarray of objectoptionalOne entry per conflicting path reported by the previous call.
One of these shapes:
pathstringrequiredcontentstring | nullrequiredMerged file text, or null to delete the file.
pathstringrequiredkeep"branch" | "base"requiredKeep this side's version of the file unchanged.
Response
idstringrequiredrepositoryIdstringrequirednamestringrequiredbranchstringrequiredrevisionstringrequiredCurrent commit SHA; pass as expectedRevision.
pullRequestobjectoptionalnumbernumberrequiredurlstringrequiredstatestringrequireddraftbooleanrequiredpublishingbooleanrequiredGitHub merges it once its checks pass; a save stops it.
updatedbooleanrequiredTrue when the base branch was merged into this branch.
conflictsarray of objectoptionalFiles changed on both sides. Merge each pair yourself and call again with resolutions.
pathstringrequiredbranchstring | nulloptionalThis branch's text; null when deleted here.
basestring | nulloptionalThe base branch's text; null when deleted there.
binarybooleanoptionalResolve binary files with keep only.
messagestringrequired
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_merge
POST/api/v1/actions/site_merge
Publishes your branch: squash-merges its pull request into the base branch, only when the person explicitly asks to publish. Every changed file must be one you may publish on the website: REVIEW_REQUIRED names the files that need review and the pull request to share with someone who may publish them. Each publish uses one of the person's weekly change sets on the website. GitHub's branch rules apply: where they wait for checks, it answers publishing, and GitHub merges it once they pass, usually within minutes; a save before then stops it. A merge is not proof of a deployment.
Parameters
Idempotency-Keyheader · stringoptionalYour own key for this change: send the same one on a retry, so it happens once.
Bodyrequired
branchIdstring (uuid)requiredexpectedRevisionstringrequiredCommit SHA from the latest read. Refresh after a conflict.
Response
repositoryIdstringrequiredorganizationstring | nullrequiredThe organization's slug, for the calls that follow.
revisionstringrequiredmergedbooleanrequiredpublishingbooleanoptionalGitHub merges it once the branch rules' checks pass.
pullRequestobjectoptionalnumbernumberrequiredurlstringrequiredstatestringrequireddraftbooleanrequiredpublishingbooleanrequiredGitHub merges it once its checks pass; a save stops it.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_close
POST/api/v1/actions/site_close
Closes your open pull request without merging, abandoning the change; its history stays on GitHub. The next site_open_branch starts a new branch.
Parameters
Idempotency-Keyheader · stringoptionalYour own key for this change: send the same one on a retry, so it happens once.
Bodyrequired
branchIdstring (uuid)requiredexpectedRevisionstringrequiredCommit SHA from the latest read. Refresh after a conflict.
Response
revisionstringrequiredclosedbooleanrequired
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_revert
POST/api/v1/actions/site_revert
Reverses an earlier change with a new commit on your branch: a commit by commitSha (the site_editing query commits lists them; a squash-merged pull request's commit on the base branch works too), or a merged pull request by pullRequestNumber, best on a fresh empty branch. History stays; a revert may conflict, and only changes what you may change.
Parameters
Idempotency-Keyheader · stringoptionalYour own key for this change: send the same one on a retry, so it happens once.
Bodyrequired
branchIdstring (uuid)requiredexpectedRevisionstringrequiredCommit SHA from the latest read. Refresh after a conflict.
commitShastringoptionalCommit SHA from the latest read. Refresh after a conflict.
pullRequestNumberintegeroptional
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_prepare_image_upload
POST/api/v1/actions/site_prepare_image_upload
Uploads one image for a path on your branch, optimized as the website stores it: at most 3840 pixels and re-encoded as the path's type. Give a photo a .webp path and image/webp, whatever its file is; keep .png for graphics. With image, such as a photo the person gave you in the chat, Fulldev fetches it at once. Otherwise it answers a private one-time link for 15 minutes: POST the raw JPG, PNG or WebP bytes, up to 4 MB, to uploadUrl with their own Content-Type, such as image/jpeg, or give the person browserUrl to pick the file themselves. Never put base64 in a tool call. Then commit it with site_commit as {path, imageUploadId} within 7 days, alongside related changes. Uploading alone commits nothing.
Parameters
Idempotency-Keyheader · stringoptionalYour own key for this change: send the same one on a retry, so it happens once.
Bodyrequired
branchIdstring (uuid)requiredpathstringrequiredcontentType"image/jpeg" | "image/png" | "image/webp"requiredimageobjectoptionalAn image the person gave you, such as a photo in the chat, or download_url a public https address of one (file_id any id of it): Fulldev fetches it and makes it contentType, so it is uploaded at once.
download_urlstring (uri)requiredfile_idstringrequiredmime_typestringoptionalfile_namestringoptional
Response
imageUploadIdstringrequiredpathstringrequiredexpiresAtstringrequiredmaxBytesnumberoptionaluploadUrlstringoptionalWhere to POST the image, unless it was given.
browserUrlstringoptionalA page where the person picks the file themselves.
methodstringoptionalcontentTypestringrequireduploadedbooleanoptionalTrue when the image given was uploaded already.
instructionsstringrequired
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_create_role
POST/api/v1/actions/site_create_role
For owners and admins: makes a role for the organization's websites, with a name and rules: the files it lets a person change, each a pattern in the website's folder, and whether changes to them publish directly or wait for review. Where a direct and a review rule match the same file, it waits for review; a publish holding one change for review waits for review whole. Give it to people per website with site_set_role. ROLE_NAME_TAKEN: another role has the name.
Parameters
Idempotency-Keyheader · stringoptionalYour own key for this change: send the same one on a retry, so it happens once.
Bodyrequired
namestringrequiredThe role's name, unique in the organization.
rulesarray of objectrequiredThe files the role lets a person change and how they go live. A file no rule matches cannot be changed. Sites never changes a website's configuration, packages or CI, Fulldev UI's components in src/components/ui, or images outside src/content, src/globals, src/assets and public, whatever a rule says.
patternstringrequiredFiles in the website's folder, starting with src, public or **: ** is any number of folders, * any part of a name, ? one character and {a,b} either, such as src/content/** or src/components/**/*.astro. Folders match exactly, file names in any case.
publish"direct" | "review"requireddirect: the person publishes changes to these files themselves. review: they wait for review by someone who may publish them. Where rules of both match a file, it waits for review.
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_update_role
POST/api/v1/actions/site_update_role
For owners and admins: replaces a role's name and rules (roleId from the site_editing query roles), for everyone who has it on every website at once; the default role's for everyone without another role. Send every rule it keeps. A draft that holds changes the new rules no longer allow opens again without them, which wait for review. PUBLISH_PENDING: a merge waiting for its checks on a website the role applies to would no longer be allowed; try again once it is live. ROLE_NAME_TAKEN: another role has the name.
Parameters
Idempotency-Keyheader · stringoptionalYour own key for this change: send the same one on a retry, so it happens once.
Bodyrequired
namestringrequiredThe role's name, unique in the organization.
rulesarray of objectrequiredThe files the role lets a person change and how they go live. A file no rule matches cannot be changed. Sites never changes a website's configuration, packages or CI, Fulldev UI's components in src/components/ui, or images outside src/content, src/globals, src/assets and public, whatever a rule says.
patternstringrequiredFiles in the website's folder, starting with src, public or **: ** is any number of folders, * any part of a name, ? one character and {a,b} either, such as src/content/** or src/components/**/*.astro. Folders match exactly, file names in any case.
publish"direct" | "review"requireddirect: the person publishes changes to these files themselves. review: they wait for review by someone who may publish them. Where rules of both match a file, it waits for review.
roleIdstring (uuid)requiredThe role, by its id from the roles query.
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_delete_role
POST/api/v1/actions/site_delete_role
For owners and admins: deletes a role of the organization's websites (roleId) that nobody has. ROLE_IN_USE: give its people another role first (site_set_role). DEFAULT_ROLE: the default role stays; change its rules instead.
Parameters
Idempotency-Keyheader · stringoptionalYour own key for this change: send the same one on a retry, so it happens once.
Bodyrequired
roleIdstring (uuid)requiredThe role, by its id from the roles query.
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_set_role
POST/api/v1/actions/site_set_role
For owners and admins: gives a member with Sites (memberId) a role on one website (repositoryId), by its id from the site_editing query roles; the default role's id gives them the organization's default, which everyone without another role there has. One role per person and website, and only its rules count: a file none of them matches cannot be changed. It counts at once for every save and publish. PUBLISH_PENDING: a merge on the website waiting for its checks would not be allowed by the role; try again once it is live. Answers the website's people as the site_editing query people does.
Parameters
Idempotency-Keyheader · stringoptionalYour own key for this change: send the same one on a retry, so it happens once.
Bodyrequired
repositoryIdstring (uuid)requiredThe website's repository, by its id.
memberIdstring (uuid)requiredThe member, by their membership's id.
roleIdstring (uuid)requiredTheir role on this website, by its id from the roles query; the default role's id gives them the default.
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
List site_editing's instances
GET/api/v1/services/site_editing
Fulldev Sites's editing of a website's GitHub repository: its name, instructions for editors and agents, preview provider and folder, with the change sets the caller published this week. Everyone with Sites reads every file in the website's folder and changes and publishes what their role there lets them: owners and admins make the roles, each a set of file patterns publishing directly or after review, and give one per person and website (site_set_role); everyone else has the organization's default, at first the website's content. Only Fulldev's administrators set up websites and change their settings, with their own actions. Its queries read the repositories, their running versions and content schemas; a branch's paths, files, search, diff, status, commits, preview and image uploads; the caller's open pull requests; for owners and admins the roles, people and activity, and for Fulldev's administrators the GitHub App. The site_* actions make the changes.
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
curl "https://app.full.dev/api/v1/services/site_editing" \
-H "Authorization: Bearer $FULLDEV_API_KEY"Get site_editing's settings and status
GET/api/v1/services/site_editing/{id}
Fulldev Sites's editing of a website's GitHub repository: its name, instructions for editors and agents, preview provider and folder, with the change sets the caller published this week. Everyone with Sites reads every file in the website's folder and changes and publishes what their role there lets them: owners and admins make the roles, each a set of file patterns publishing directly or after review, and give one per person and website (site_set_role); everyone else has the organization's default, at first the website's content. Only Fulldev's administrators set up websites and change their settings, with their own actions. Its queries read the repositories, their running versions and content schemas; a branch's paths, files, search, diff, status, commits, preview and image uploads; the caller's open pull requests; for owners and admins the roles, people and activity, and for Fulldev's administrators the GitHub App. The site_* actions make the changes.
Parameters
idpath · stringrequired
Response
settingsobjectrequirednamestringrequiredinstructionsstringrequiredpreviewProvider"none" | "netlify"requireddirectorystringoptionalThe website's folder in the repository, such as apps/website. Empty for the repository root.
netlifySitestringoptionalThe Netlify site whose deploys and previews belong to this website, when several Netlify sites build from the repository. Empty to use the only one that reports.
statusobjectrequiredrepositorystringrequiredThe GitHub repository, owner/name.
baseBranchstringrequiredchangesThisWeeknumberrequiredThe change sets the caller published on it this week.
changeLimitnumberrequiredChange sets a person may publish on it a week.
resetsAtstringrequired
Example
curl "https://app.full.dev/api/v1/services/site_editing/$ID" \
-H "Authorization: Bearer $FULLDEV_API_KEY"site_editing: repositories
POST/api/v1/services/site_editing/queries/repositories
Start here when someone asks to edit their website: the organization's repositories (usually websites), newest first, each with its instructions, its folder in the repository (directory), the caller's role there and what it lets them change and publish (access) and the caller's publishes this week. Then open a branch with site_open_branch.
Bodyoptional
object
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: repository
POST/api/v1/services/site_editing/queries/repository
One repository the caller can open, by id, with the same fields as repositories apart from usage.
Bodyrequired
idstring (uuid)required
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: paths
POST/api/v1/services/site_editing/queries/paths
The paths of your branch (branchId from site_open_branch) in the website's folder, with whether your role there lets you change each (writable), 200 per page: follow nextCursor, and narrow with pathPrefix.
Bodyrequired
branchIdstring (uuid)requiredcursorstringoptionalpathPrefixstringoptional
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: files
POST/api/v1/services/site_editing/queries/files
Reads UTF-8 files of your branch in the website's folder by repository-relative path, up to 20 at a time, each with whether you may change it; at an earlier revision of the branch or its base branch with `revision`.
Bodyrequired
branchIdstring (uuid)requiredpathsarray of stringrequiredrevisionstringoptionalCommit SHA from the latest read. Refresh after a conflict.
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: schema
POST/api/v1/services/site_editing/queries/schema
The JSON Schema a website (repositoryId) publishes for a content collection, such as pages or globals: the fields its files have, with their names for people (title) and help (description). The bar's panel builds its fields from it; null where the website publishes none.
Bodyrequired
repositoryIdstring (uuid)requiredcollectionstringrequiredA content collection, such as pages or globals.
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: publication
POST/api/v1/services/site_editing/queries/publication
Whether a website (repositoryId) is live with what is published, after site_merge: publishing while your publish waits for the website's checks, blocked when a check it requires failed (nothing went live; change the content or contact Fulldev), updating while the website builds the latest published change, live once the website shows it, unpublished when it does but you have saved changes that are not published (such as a publish a later save stopped; publish again), failed when it still does not 15 minutes later, unknown when it is published but the website does not say which version it shows. Say changes are on the website only once it answers live; ask again after retryAfterSeconds.
Bodyrequired
repositoryIdstring (uuid)required
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: search
POST/api/v1/services/site_editing/queries/search
Searches the text files of your branch in the website's folder for literal text. Scans 25 files and returns up to 100 matches per page; an empty page may still have nextCursor.
Bodyrequired
branchIdstring (uuid)requiredquerystringrequiredcursorstringoptionalpathPrefixstringoptional
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: diff
POST/api/v1/services/site_editing/queries/diff
The unified diff of your branch against its base branch, a page at a time: follow nextCursor.
Bodyrequired
branchIdstring (uuid)requiredcursorstringoptional
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: status
POST/api/v1/services/site_editing/queries/status
Your branch's GitHub checks and commit statuses at its revision, with its pull request.
Bodyrequired
branchIdstring (uuid)required
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: revision
POST/api/v1/services/site_editing/queries/revision
Your branch's current revision and pull request only: a cheap read to notice a commit by another writer before reading files again.
Bodyrequired
branchIdstring (uuid)required
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: changes
POST/api/v1/services/site_editing/queries/changes
The files your branch adds, changes or deletes against its base branch, which site_merge publishes, with the revision they were read at. publishable is false for a change your role leaves for review: one such change leaves the whole publish for review.
Bodyrequired
branchIdstring (uuid)required
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: commits
POST/api/v1/services/site_editing/queries/commits
Your branch's commits, newest first, then the base branch's, a page at a time (follow nextCursor, even past an empty page), to find one for site_revert. Commits touching files outside the website's folder are left out.
Bodyrequired
branchIdstring (uuid)requiredcursorstringoptional
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: preview
POST/api/v1/services/site_editing/queries/preview
The deploy preview of your branch's revision: its state, address and direct links to the changed pages, or what the website refused when its build failed. Follow retryAfterSeconds while it builds; only call a preview current when its revision matches.
Bodyrequired
branchIdstring (uuid)required
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: image_upload
POST/api/v1/services/site_editing/queries/image_upload
Whether an image prepared with site_prepare_image_upload is uploaded, before committing it with site_commit.
Bodyrequired
branchIdstring (uuid)requiredimageUploadIdstring (uuid)required
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: versions
POST/api/v1/services/site_editing/queries/versions
Every running version of a website (repositoryId), as deployments on Vercel or Netlify: production, its base branch live at its address, then every open pull request into it, newest first, each with its branch, author, preview (state and url) and, for Sites's own branches, the branchId that site_open_branch opens and site_merge merges, and how many files it changes; merging while a merge waits for its checks. A draft before its first save is no version yet.
Bodyrequired
repositoryIdstring (uuid)required
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: edit
POST/api/v1/services/site_editing/queries/edit
Where the caller edits a website (repositoryId) on the website itself, in the Fulldev bar: their draft's preview once built, else the editable build of what went live last, where the bar starts their draft. url is null while their draft's preview builds (building) or where the website has no editable build; branchId is their draft once it has a pull request.
Bodyrequired
repositoryIdstring (uuid)required
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: pull_requests
POST/api/v1/services/site_editing/queries/pull_requests
The caller's own open pull requests (unpublished changes) on the organization's repositories, or on one repositoryId, with their deploy preview state. retained: changes left for review when the caller's draft opened again without them; share its url with someone who may publish them. Repositories GitHub could not answer for are listed under errors.
Bodyoptional
repositoryIdstring (uuid)optional
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: roles
POST/api/v1/services/site_editing/queries/roles
Owners and admins only. The organization's roles for its websites, the default first, which everyone without another role on a website has: each with its rules (a pattern of files in the website's folder, publishing directly or after review) and how many people have it (assigned). site_create_role, site_update_role and site_delete_role change them.
Bodyoptional
object
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: people
POST/api/v1/services/site_editing/queries/people
Owners and admins only. Everyone with Sites in the organization and their role (roleId) on one website (repositoryId), the default's id where they have no other, with the organization's roles to choose from and their rules: a pattern of files in the website's folder each, publishing directly or after review. site_set_role gives someone another role; site_create_role and site_update_role make and change roles.
Bodyrequired
repositoryIdstring (uuid)required
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.
site_editing: activity
POST/api/v1/services/site_editing/queries/activity
Owners and admins only. The latest 100 changes on one repository, newest first: to the repository and its branches (commits, merges, reverts), with who made them.
Bodyrequired
repositoryIdstring (uuid)required
Response
The API's document has no schema for this answer; the description above says what it gives.
Example
Only when signed in, through OAuth, as the CLI and MCP do.