How to call
Send the token as Authorization: Bearer ss_pat_… to https://shipsite.ai. Bodies are JSON. Path parts in brackets, such as [projectId], are ids from earlier answers.
- Refusals answer with error, detail and next: next says exactly what to do, for example that the token is read-only.
- Routes marked may cost use your model keys or one of the month's plans or launches; routes marked irreversible cannot be undone. These are hints for your AI to ask first; the server does not stop a full-access token.
- Add Idempotency-Key: <any unique string> to a POST so a retry never starts the work twice.
- A token may make 600 requests and 60 changes a minute. To wait for progress, use the activity feed with wait= instead of polling.
curl -s "https://shipsite.ai/api/agent/catalog?q=domain&access=write"Permissions
A token is either full access or read only. Full access reaches every route below, as you would in the browser, within your own workspace and your own role. Read only reaches the routes marked read.
- full: everything you can do yourself in the browser.
- read: looks only; changes nothing.
Every route
Grouped by what they are for. Not listed on purpose: sign-in and OAuth redirects, the browser helper and local runner protocols, site visitor endpoints, webhooks, Shipsite's internal functions, and token management itself.
Sites and status 44
GET /api/blueprintread- Static product blueprint metadata (stack and route list).
GET /api/design-analyticsread- Workspace design analytics: monthly design pipeline throughput and accessibility score trends.
GET /api/gallery/[projectId]/shotread- Public screenshot image of a project shown in the gallery.
GET /api/pipelineread- Pipeline template and the workspace's 50 most recent projects.
GET /api/projectsread- List the workspace's projects (latest 100). Add view=status (lang=en|zh) for each one's stage, waitingOn, headline, active and latest run, open decisions and URLs.
POST /api/projectswrite- Create a new draft project. Body: name, primaryKeyword (required), slug, domain, niche, referenceUrl, opportunityId, modelConfig.
GET /api/projects/[projectId]read- Get one project's basic info (name, slug, domain, keyword, status, visibility, deployment mode) plus your role on it.
PATCH /api/projects/[projectId]write- Update project fields. Body: name, domain, primaryKeyword, niche, status, visibility (private|gallery).
DELETE /api/projects/[projectId]writeirreversible- Permanently erase a project and all its data, stopping its running jobs. Owner only; requires an Idempotency-Key header.
GET /api/projects/[projectId]/activity/eventsread- Project activity feed with long-poll. Query: after (cursor), limit, wait (ms, max 20000), visible.
POST /api/projects/[projectId]/activity/eventswrite- Save the user's last-seen activity cursor. Body: seenCursor.
POST /api/projects/[projectId]/artifact-manifestswrite- Register a verified record for a stored project file. Body: r2Key, artifactType, contentType, artifactVersion, producerRunId, sha256, bytes, parentRefs.
GET /api/projects/[projectId]/artifact-reconciliationread- Reports of project file integrity checks and quarantined files.
POST /api/projects/[projectId]/artifact-reconciliationwrite- Run a project file integrity check now and quarantine mismatches.
GET /api/projects/[projectId]/artifacts/[artifactId]read- Download a project file's raw content (docs, code, screenshots). Query: download=1 for attachment.
GET /api/projects/[projectId]/competitor-teardownread- Get the competitor teardown from planning: top search tools studied, their screenshot URLs and the feature matrix.
GET /api/projects/[projectId]/competitor-teardown/shots/[index]read- Download one competitor teardown screenshot (JPEG) by its index in the teardown list.
GET /api/projects/[projectId]/data-lifecycleread- Summarize the project's data trail: research evidence, analytics test acceptance and real production events.
GET /api/projects/[projectId]/designread- Explain the site's design: target visitor, chosen direction and why, composition, capabilities, screens and accessibility review.
GET /api/projects/[projectId]/exportread- Download the current site source code as a zip (paid plans).
GET /api/projects/[projectId]/healthread- Read the last launch health checks (homepage, robots, sitemap, IndexNow key, ads.txt).
POST /api/projects/[projectId]/healthwrite- Run launch health checks against the live site now and store the results.
GET /api/projects/[projectId]/infra-contractread- Get the site's latest infrastructure contract (markdown plus parsed fields such as estimated monthly cost).
PUT /api/projects/[projectId]/infra-contractwrite- Replace the infrastructure contract text. Body: markdown. Rejected if it breaks the contract rules or jumps the cost estimate too far.
GET /api/projects/[projectId]/documentsread- List the owner's documents (decisions, plans, records), each its newest version with status, plus launch and growth todos. Query: locale; read=growth-report for the Chinese growth report.
GET /api/projects/[projectId]/libraryread- List the project's library documents with status, pins and links. Query: limit (20-200), before, beforeId for paging.
PUT /api/projects/[projectId]/library/[artifactId]/contextwrite- Pin a library document so agents always read it as context. Body: optional reason.
DELETE /api/projects/[projectId]/library/[artifactId]/contextwrite- Unpin a library document from the agents' context. The document itself is kept.
PATCH /api/projects/[projectId]/library/[artifactId]/governancewrite- Change a library document's status. Body: action (promote, status, verify, unverify, owner) plus status or expiresAt as needed.
POST /api/projects/[projectId]/library/[artifactId]/relationswrite- Link two library documents. Body: targetArtifactId, relationType (derived_from, supersedes, implements, evidence_for, preview_of, depends_on).
POST /api/projects/[projectId]/pinwrite- Pin the project to the top of the project list.
DELETE /api/projects/[projectId]/pinwrite- Unpin the project from the top of the sites list.
GET /api/projects/[projectId]/readinessread- Show launch readiness: each stage's status, the launch gate and the plan's launches left this month.
POST /api/projects/[projectId]/readinesswrite- Check the live domain now and record the result. Body: action 'verify_live'. Has a cooldown.
GET /api/projects/[projectId]/sourceread- Browse site source code. Query: action (tree|file|search|diff|download), path, q, pathFilter, versionId, baseVersionId.
GET /api/projects/[projectId]/stateread- Get the full project dashboard state: runs, gates, previews, artifacts, chats, the plan's counts this month, progress.
GET /api/projects/[projectId]/strategy-outcomeread- Get the project's strategy outcome: product contract, market and competitor evidence, and whether research is stale.
GET /api/projects/[projectId]/summaryread- One-call status for an AI: stage, what it waits on and why, blockers in plain words, preview and live URLs, last QA and outcome verdict, next actions.
GET /api/projects/[projectId]/thumbnailread- Get the project's thumbnail image (screenshot or icon card).
GET /api/projects/[projectId]/workflow-policyread- Get a run's automatic-retry policy. Query: runId.
PUT /api/projects/[projectId]/workflow-policywrite- Turn off automatic retries for a run. Body: runId, automaticRetries=false.
PATCH /api/projects/batchwrite- Update several projects at once. Body: ids (or id), plus name, domain, primaryKeyword, niche, status.
DELETE /api/projects/batchwriteirreversible- Delete several projects at once. Body: ids (or id).
GET /api/versionread- Get the running Shipsite app version/deployment info.
Plans, builds and checks 38
GET /api/agent-settingsread- List the workspace's custom instructions for each agent role.
POST /api/agent-settingswrite- Set or clear one agent role's custom instructions. Body: roleId, customInstructions (max 2000 chars; empty clears). Refused while a run is active.
GET /api/execution-sourceread- Show which of the owner's connected accounts (auto, or one provider) a role uses. Query: roleId.
POST /api/execution-sourcewrite- Set which of the owner's connected accounts a role runs on. Body: roleId, provider (auto|a verified provider id). Refused during an active run.
GET /api/fixturesread- The platform's realistic test files (complete songs, a phone photo, a PDF report, a 1080p video, a long text): each file's address, size, licence and known answer.
GET /api/fixtures/[fixtureId]read- Download one realistic test file, as a real visitor's input to a tool.
GET /api/gatesread- List the latest 100 approval gates. Query: projectId, status (pending|approved|rejected|expired|superseded). What a site waits on now: its summary's openDecisions.
GET /api/gates/[gateId]read- Show an approval gate's details (what is being approved, evidence).
POST /api/gates/[gateId]writemay cost- Decide an approval gate. Body: decision (approved|rejected|select), note. Approving can launch a build or a production deploy.
GET /api/modelsread- Show model choices, per-role model settings and the model catalog for the workspace.
POST /api/modelswrite- Change model settings: roleId+modelId/reasoningEffort/fastMode, preset (fast-draft|balanced|quality|cost), chain, or routing.
GET /api/planning-setupread- Which connected accounts a planning run would use, plus GitHub/Cloudflare setup status. Query: preset, source.
GET /api/projects/[projectId]/browser-researchread- Show what browser-assisted research planning asked for and how far the owner's browser helper got.
POST /api/projects/[projectId]/browser-researchwrite- Studio page hands a research job to the browser extension (action claim) or marks it unavailable. Same-origin only.
GET /api/projects/[projectId]/connection-gateread- Show which account choices (design, hosting, source) the project still needs before a paused launch can continue.
POST /api/projects/[projectId]/connection-gatewrite- Owner records an account choice: body gateId, action 'choose' (requirement, choice) or 'continue'. Returns a connect link if needed.
GET /api/projects/[projectId]/content-ideasread- Suggest next pages to add to a launched site.
POST /api/projects/[projectId]/content-ideaswritemay cost- Owner adds a suggested page: body ideaId. Starts the add-one-page lane (not a re-plan) on the owner's model key; optional Idempotency-Key header.
GET /api/projects/[projectId]/full-rerunread- Owner preview of a full rebuild: can it start, blockers; query retry=platform_source_failure checks a retry that does not count against the plan.
POST /api/projects/[projectId]/gates/reconcilewrite- Owner recovers a missing PRD approval gate after a finished planning run: body runId.
GET /api/projects/[projectId]/instrumentation-testsread- Show the event-tracking check for the current preview candidate: candidate, active measurement contract and which events have been seen.
POST /api/projects/[projectId]/instrumentation-testswrite- Start or refresh the event-tracking check on the preview. Body: action ('start' or 'reconcile'), optional runId for reconcile.
GET /api/projects/[projectId]/model-configread- Show which AI models this project uses, where each setting comes from, and which provider accounts are connected.
PUT /api/projects/[projectId]/model-configwrite- Set project model choices. Body: mode 'override' with config (modelPrefs, executionSources, runtimeSettings), or mode 'inherit' to use workspace defaults.
DELETE /api/projects/[projectId]/model-configwrite- Remove the project's model override so it follows the workspace defaults again.
GET /api/projects/[projectId]/owner-evidence-revisionsread- Read an owner design-evidence revision. Query: artifactId; or view=capture-blob with artifactId, sha256, requestId, baselineVersionId. Owner only.
POST /api/projects/[projectId]/owner-evidence-revisionswrite- Stage, prepare or approve an owner design-evidence revision. Body: action (stage-capture-blob, prepare, approve) + blob, revision or artifactId/sha256/confirm.
GET /api/projects/[projectId]/payment-gateread- Show whether the build is waiting on a payment-provider choice and its state.
POST /api/projects/[projectId]/payment-gatewrite- Answer the payment step. Body: action ('open','refresh','continue'), gateId. Owner only. Returns a resume hint; starts no run.
GET /api/projects/[projectId]/planning-restartread- Preview a planning restart: what is reused. Query: stage (prd, copy-freeze, design, pricing-only), optional evidence ids. Owner only.
POST /api/projects/[projectId]/planning-restartwritemay cost- Start a pricing-only planning refresh. Body: stage 'pricing-only', instruction; Idempotency-Key header. Owner only.
GET /api/projects/[projectId]/researchread- Get the project's research report. Query: snapshot.
POST /api/projects/[projectId]/researchwritemay cost- Run a market research pass (paid data only on the workspace's own DataForSEO connection). Optional: Idempotency-Key header or body idempotencyKey. Owner only.
GET /api/projects/[projectId]/runsread- List the project's last 100 pipeline runs with status and stage.
POST /api/projects/[projectId]/runswritemay cost- Start or retry a pipeline run. Body: lane (planning|build|quality|release), note, retryFromRunId, resumeFromStage. A fresh plan or a go-live uses one monthly count.
POST /api/projects/[projectId]/quality-recheckwritemay cost- Run the quality check again on the version the preview shows, whatever the last check's outcome (passed, failed or cancelled). Needs a deployed preview and no check running. Optional body: versionId.
POST /api/projects/[projectId]/queued-startwrite- Cancel a start that is waiting for a workspace slot, or dismiss the notice of a queued start that could not begin. Body: action (cancel|dismiss), queueId.
PATCH /api/projects/[projectId]/runswriteirreversible- Cancel an active run. Body: action set to cancel, plus runId. Stops its workflows.
Changes and chat 29
POST /api/projects/[projectId]/a11y-remedywritemay cost- Accessibility fix: the site engineer fixes the measured defects (it picks the colours) and a new preview follows. Body: note (optional).
POST /api/projects/[projectId]/chatwritemay cost- Send a message to the project's AI coordinator; starts a background model turn (or steers the active one). Returns turnId to follow.
GET /api/projects/[projectId]/chat/historyread- The project's AI coordinator (Dijiang) conversation, newest last: messages with each reply's steps and model. Query limit (max 80).
GET /api/projects/[projectId]/chat/modelread- Which model the project's AI coordinator (Dijiang) runs on next, on which of the workspace's accounts, and the accounts it can switch to. Query locale=en|zh.
PUT /api/projects/[projectId]/chat/modelwrite- Point the AI coordinator (Dijiang) at 'auto' or one connected model account. Body: source ('auto' or a connected provider id).
GET /api/projects/[projectId]/config-patchread- Check a queued site edit's status: query queueId (pmq_...).
POST /api/projects/[projectId]/config-patchwritemay cost- Start a paid quick site edit (rebuild, preview, QA): body patch {config?, content?}, note, baselineVersionId. Queues if busy.
GET /api/projects/[projectId]/config-patch/baselineread- Read the current editable fields of one page for a quick edit: query contentKey (required), optional baselineVersionId.
POST /api/projects/[projectId]/config-patch/dry-runread- Preview a quick site edit without applying it: body patch {config?, content?}, optional baselineVersionId. Returns changed fields and diffs.
POST /api/projects/[projectId]/config-patch/instantwrite- Apply a free value-only edit to the preview instantly: body patch {config?, content?}, note, baselineVersionId. Structural edits refused (422).
GET /api/projects/[projectId]/add-pageread- Preview adding one page to the built site (on the owner's own model key) and the steps it goes through.
POST /api/projects/[projectId]/add-pagewritemay cost- Add one content page (article, comparison, tool variant): body {topic, source: chat|growth_plan}. Built and checked alone; a feature, pricing or structure change is refused (409).
POST /api/projects/[projectId]/copy-amendwrite- Change named fields of the approved copy (a page's h1, a section's text, a FAQ answer) without rewriting it: body edits [{path, field, to, from?}], reason. Checked again; free.
GET /api/projects/[projectId]/sessionsread- List the project's sessions (max 100). Query: changeId to filter.
POST /api/projects/[projectId]/sessionswrite- Create a new session. Body: sessionType, title, changeId (for change sessions), taskId, parentSessionId, agentRoleId.
GET /api/projects/[projectId]/sessions/[sessionId]read- Get a session and its latest messages. Query: limit (1-200, default 100).
PATCH /api/projects/[projectId]/sessions/[sessionId]write- Update a session. Body: status, title, summary, contextSnapshot.
GET /api/projects/[projectId]/sessions/[sessionId]/eventsread- Long-poll a chat session's event stream. Query: after (cursor id), wait (ms, max 20000). Returns events, cursor, active turn.
POST /api/projects/[projectId]/sessions/[sessionId]/messageswritemay cost- Send a message to the AI agent in a change/analysis session (starts a paid turn or steers the active one). Body: content, mode; multipart adds images.
GET /api/projects/[projectId]/sessions/[sessionId]/schedulesread- List scheduled prompts for this session (next run, recurrence, enabled).
POST /api/projects/[projectId]/sessions/[sessionId]/scheduleswritemay cost- Schedule a prompt to be sent to the agent later. Body: prompt, dueAt (ISO time), recurrenceRule (e.g. every:1:day).
DELETE /api/projects/[projectId]/sessions/[sessionId]/scheduleswrite- Turn off a scheduled prompt. Query: id.
GET /api/projects/[projectId]/sessions/[sessionId]/todosread- Get the session's todo list.
PUT /api/projects/[projectId]/sessions/[sessionId]/todoswrite- Replace the session's todo list. Body: todos (array of {id, content, status}, max 50).
GET /api/projects/[projectId]/sessions/[sessionId]/turnsread- Get the active and latest turn of a session, or one turn by query turnId.
POST /api/projects/[projectId]/sessions/[sessionId]/turns/[turnId]/controlwrite- Steer, redirect or interrupt the AI's running turn. Body: mode (steer|redirect|interrupt), text (required unless interrupt).
GET /api/projects/[projectId]/owner-requestsread- List the owner's explicit requests for the site (marks, instructions, owner decisions): verbatim words, intent, examples, and whether each is met.
POST /api/projects/[projectId]/owner-requestswrite- Record one owner mark on the design or preview. Body: quote (the owner's words), source, optional page, viewport, strokes, gateId, image.
POST /api/projects/[projectId]/source-patchwritemay cost- Have the AI engineer fix or change the site's code. Body {instruction} is enough: current version, any file. Optional: claims, reads, baselineVersionId, note.
Launch, domains and code 17
POST /api/domains/researchread- Check likely domain availability for a name or keyword. Body: name, keyword, current. Free lookup, no state change.
GET /api/owner-infrastructureread- Status of the owner's own infrastructure (GitHub, Cloudflare, runners).
POST /api/projects/[projectId]/cloudflare/zonewrite- Manage the domain's Cloudflare zone on the owner's account: body action = provision, check_activation, configure_baseline, or bind_route.
POST /api/projects/[projectId]/deploy-ownwrite- Have the site's deploy agent put the approved version live on the owner's Cloudflare (202 while it deploys). Needs the production gate approved first.
GET /api/projects/[projectId]/domainread- Show the project's domain plan and stage plus suggested available domain names.
POST /api/projects/[projectId]/domainwrite- Record a domain step: body action 'select' with domain, or 'purchase' to confirm it was bought at a registrar. Paid plans only.
GET /api/projects/[projectId]/domain/emailread- Show the domain mailbox (inbound email forwarding) status.
POST /api/projects/[projectId]/domain/emailwrite- Turn on inbound email forwarding for the live domain on Cloudflare: body destination (email), optional locals[] like hello, support.
GET /api/projects/[projectId]/githubread- Show the GitHub account, available repositories, the project's bound repo and recent Actions runs.
POST /api/projects/[projectId]/githubwrite- GitHub actions: body action = bind_repository (repositoryId), publish_source (deploy the current version to the preview), or sync_runs. The site's engineer creates the repository on the first build.
GET /api/projects/[projectId]/launch-addressread- Show where the site goes live: its domain, or without one its free workers.dev production address, with advice on buying a domain and adding it later.
GET /api/projects/[projectId]/launch-checklistread- Launch checklist: domain, domain email, search engines, crawlers and AI traffic, analytics, payments (sites that sell); each with state, a sentence, an action, the owner's step.
POST /api/projects/[projectId]/launch-checklistwritemay cost- Run a launch-checklist action: choose_domain, domain_purchased, start_domain_setup, fix_crawlers, confirm_crawler_hints or advance. Never buys; binding starts the engineer.
GET /api/projects/[projectId]/preview-accessread- Show preview access: whether the preview is public or private and the active share links.
POST /api/projects/[projectId]/preview-accesswriteirreversible- Manage preview access. Body: action create_share (ttlSeconds), revoke_share (grantId), set_access (accessMode private/public), revoke_preview, cleanup_expired.
POST /api/projects/[projectId]/versions/[versionId]/rollbackwritemay cost- Roll production back to an earlier released version. Body: confirm='rollback-approved'. Currently refused: sites run on your own Cloudflare.
GET /api/projects/[projectId]/versionsread- List the site's versions as one timeline: each release and each change, newest first, with what changed and which version the live site serves.
Connections and keys 30
GET /api/auth/meread- The signed-in account: email, name, workspace.
GET /api/connectionsread- List the workspace's connections and their status. Query: projectId (optional).
POST /api/connectionswriteirreversible- Save and verify an API key connection (provider, value or credentials), recheck a stored one (recheck: true), or delete it (remove: true).
GET /api/connections/capabilitiesread- List available connection tools and paid-data permissions. Query: projectId (optional).
POST /api/connections/capabilitieswrite- Grant or revoke agents' paid data calls (dataforseo/ahrefs) for a project. Requires a browser session, not a token.
GET /api/connections/cloudflare-accountsread- List Cloudflare accounts reachable via the connected Cloudflare login, and which one is selected.
POST /api/connections/cloudflare-accountswrite- Choose which Cloudflare account sites deploy to. Body: accountId.
GET /api/connections/github-repositoriesread- Show whether new site repositories are created public or private.
POST /api/connections/github-repositorieswrite- Set visibility for future site repositories. Body: visibility (public|private).
GET /api/connections/payment-profileread- Show the saved payment platform profile (names/labels only) and supported platforms.
POST /api/connections/payment-profilewriteirreversible- Save the owner's payment platform profile, or remove it with remove: true. Owner/admin only.
GET /api/connections/site-analyticsread- List each site's own GA4 measurement id and Clarity project id, as the owner saved them.
PUT /api/connections/site-analyticswrite- Save one site's GA4 measurement id (G-…) and Clarity project id. Body: projectId, ga4, clarity; empty clears. Used the next time the site is built or changed.
GET /api/local-runnerread- List the workspace's linked local computers and whether they are online.
DELETE /api/local-runnerwriteirreversible- Disconnect all linked local computers from the workspace.
POST /api/local-runner/pairingswrite- Create a one-time pairing code and command to link the owner's computer as a local runner.
POST /api/local-runner/usewrite- Make the linked computer's Claude subscription the first model source for every step. Requires a linked runner.
GET /api/projects/[projectId]/authread- Show the site's visitor Google sign-in setup: secrets stored, readiness, redirect URIs to register.
POST /api/projects/[projectId]/authwriteirreversible- Remove the retired hosted sign-in connector. Body: remove: true (anything else returns 410).
GET /api/projects/[projectId]/integrationsread- List the project's third-party connections (provider, read-only or read-write, status). Secrets are never returned.
POST /api/projects/[projectId]/integrationswrite- Add a read-only connection to a provider. Body: provider (github, cloudflare, ga4, gsc, stripe...), secret, optional scopes.
PATCH /api/projects/[projectId]/integrationswrite- Turn on write access for an approved connection. Body: connectionId, approvalReceiptId, writeEnabled: true.
GET /api/projects/[projectId]/site-secretsread- List which secrets the site needs and which are set (names only, no values).
POST /api/projects/[projectId]/site-secretswrite- Save a secret for the site (applies on next deploy). Body: name (declared by the site), value.
DELETE /api/projects/[projectId]/site-secretswriteirreversible- Remove one site secret. Query: name.
POST /api/projects/[projectId]/google-sign-inwrite- Save the site's own Google sign-in client once Google confirms it and each callback. Body: json (downloaded client JSON) or clientId + clientSecret; verifyOnly: true rechecks.
POST /api/projects/[projectId]/site-secrets/from-connectionwrite- Copy an already connected model API key into this site's secrets (applies on next deploy). Body: provider.
GET /api/shipsolo/linkread- Show whether a ShipSolo account is linked to this workspace.
POST /api/shipsolo/linkwrite- Link a ShipSolo account with its key. Body: key. Workspace owner only.
DELETE /api/shipsolo/linkwriteirreversible- Unlink the ShipSolo account and release its key. Workspace owner only.
Payments and billing 10
POST /api/access-codes/redeemwrite- Redeem a cohort access code for the workspace plan. Body: code. Workspace owner/admin only; rate limited.
POST /api/billing/checkoutwrite- Create a Stripe Checkout link for a subscription plan. Body: plan. A person must open the URL and pay.
POST /api/billing/portalwrite- Create a Stripe billing portal link to manage the subscription. No body.
GET /api/projects/[projectId]/sales-actionread- Read the site's sales state: paused or on sale since the owner's last action, whether its re-pricing started or waits (and why), and each pause/resume card's state.
GET /api/projects/[projectId]/adsread- Show the site's ad network setup, ads.txt content and whether a custom domain is active.
POST /api/projects/[projectId]/adswritemay cost- Set up or remove site ads and rebuild a preview. Body: provider (adsense|adsterra|monetag), publisherId/scriptUrl/zoneId, adsTxtExtra, or remove: true.
GET /api/projects/[projectId]/model-spendread- The site's model spend: last 24 hours and 7 days, own key vs Shipsite, each run marked useful or wasted, and why when wasted. Query lang=zh|en.
GET /api/projects/[projectId]/paymentsread- Show the site's payment setup: products to sell, the owner's payment platform (names only) and what each deploy set up for this site.
POST /api/projects/[projectId]/paymentswrite- Body check: true asks the site's own Worker whether its payment keys are bound and which provider event it recorded last. No changes.
POST /api/projects/[projectId]/payments/owner-confirmationwrite- Record the owner's word that a test purchase on the preview worked. Body: orderRef (required), entitled: true, secondDevice, cancelled, note. Kept as evidence.
Growth and analytics 14
GET /api/keyword-opportunitiesread- List saved keyword opportunities or one by id. Query: id, offset, keyword+strategy (seed), view=sources|backtest, cutoff.
POST /api/keyword-opportunitieswrite- Assess or save a keyword opportunity, or record an outcome. Body: action (assess|save|outcome), draft, id, expected_revision, outcome.
GET /api/keywords/[kind]read- Keyword dataset (kind: newword or oldword). Query: date (YYYY-MM-DD, optional).
GET /api/projects/[projectId]/analyticsread- Show each analytics platform of the site (Plausible, GA4, Clarity, Cloudflare Web Analytics): connected or not, its id, when it last received data, and the plan's key events.
POST /api/projects/[projectId]/analyticswrite- Set the site up now on the analytics platforms reachable with the owner's accounts (Plausible, a GA4 stream, Cloudflare Web Analytics); never replaces an id the owner entered. No body.
GET /api/projects/[projectId]/intelligenceread- Site metrics: sources, latest readings, Search Console status. Answers at once; a live site's sources older than 12 hours are reread in the background.
GET /api/projects/[projectId]/intelligence/sourcesread- List the project's metric sources (Search Console, GA4, Plausible, Clarity, Bing...) with their setup and credential status.
POST /api/projects/[projectId]/intelligence/sourceswrite- Metric sources. Body action 'collect' (providers) pulls data; 'discover' (provider) lists properties; else provider, status, config, credential saves one.
GET /api/projects/[projectId]/leadsread- List contact-form leads for the project, newest first, with unread count. Query: limit (1-100), cursor.
POST /api/projects/[projectId]/leads/readwrite- Mark contact-form leads as read: ids (up to 100) or all: true. ids with notVisitor: true takes them out of the inbox as not a real visitor's; false puts them back.
PUT /api/projects/[projectId]/managed-site-usagewrite- Record a measured usage count for this site for a period. Body: definitionVersion, usageType, periodStart, periodEnd, quantity, sourceReceiptRef.
GET /api/projects/[projectId]/measurement-contractread- List the project's measurement contracts (north-star metric, tracked events, timezone).
PUT /api/projects/[projectId]/measurement-contractwrite- Create a fixed measurement contract version. Body: contractVersion, northStarMetricId, funnelEventIds, identityRule, timezone, freshnessSlaSeconds.
POST /api/projects/[projectId]/search-consolewrite- Connect Google Search Console for the live site: find the property your Google account verified, submit the sitemap, read its data. Says the next step when one is left.
Account, workspace and notifications 30
GET /api/account/erasureread- Explain whether full account erasure is available (currently not; contact channel returned).
POST /api/account/erasurewriteirreversible- Request full account erasure. Currently always refused with 501 (not implemented).
GET /api/agent/catalogread- Everything a token can call: method, path, scope, description. Filter with ?q=words or ?scope=read|operate|spend|deploy.
GET /api/agent/openapiread- The same catalog as an OpenAPI 3.1 document.
GET /api/agent/whoamiread- Which account and workspace this token speaks for, its scopes and expiry. A good first call.
POST /api/browser-helper/seenwrite- Browser page reports the browser helper extension is installed. Body: version.
GET /api/notificationsread- Inbox of items needing attention plus active runs. Query: segment (action|active|done|all), limit, cursor.
PATCH /api/notificationswrite- Mark notifications read or mute a project. Body: action (mark_read|mark_all_read|mute_project), notificationIds, projectId, muted.
GET /api/notifications/preferencesread- Show the user's notification preferences.
PUT /api/notifications/preferenceswrite- Update notification preferences. Body: mode, privacyMode, quietHoursStartMinute, quietHoursEndMinute, timezoneOffsetMinutes, promptState.
GET /api/notifications/pushread- Show whether browser push is available and list the user's registered push devices.
POST /api/notifications/pushwrite- Register this browser's push subscription (endpoint, keys).
DELETE /api/notifications/pushwrite- Remove a push device. Body: subscriptionId (or endpoint).
GET /api/ops/alertsread- Shipsite platform operator only: alerts the platform could not fix itself, newest first. ?status=open|resolved|all, ?since=ISO, ?limit=1-200.
POST /api/ops/alerts/[alertId]/ackwrite- Shipsite platform operator only: acknowledge an alert once its platform cause is handled; it leaves the open feed. Idempotent.
GET /api/ops/step-cutsread- Shipsite platform operator only: the long engine steps the platform cut, ?hours=1-72: each cut with its isolate, colo, memory and last activity.
GET /api/ops/model-spendread- Shipsite platform operator only: model spend per site per day: cost, tokens, prompt-cache hit share, owner key vs platform, by stage. ?days=1-31, ?to=, ?from=, ?projectId=.
GET /api/ops/projects/[projectId]/metricsread- Shipsite platform operator only: a site's build metrics per build: phase time against budget, rework rounds, QA false positives, model spend, owner waiting. ?days=1-90.
GET /api/ops/projects/[projectId]/runsread- Shipsite platform operator only: a project's latest run trees, newest first, each in time order with its stage, errors and timeline link. ?limit=1-20.
POST /api/ops/projects/[projectId]/relaunchwrite- Shipsite platform operator only: restart a step stopped on a platform problem, as automatic recovery does (not counted against the plan). Body: reason, runId. Owner to-dos are refused.
GET /api/ops/release-canaryread- Shipsite platform operator only: the post-release canary's report (latest, or ?version=): each production check and its result.
POST /api/ops/release-canarywrite- Shipsite platform operator only: run the read-only post-release canary against production now; failures raise ops alerts. ?version= must match the live Worker.
GET /api/ops/runs/[runId]/objectread- Shipsite platform operator only: open a stored record a run timeline links to (?key= or ?artifact=), only within that run's project.
GET /api/ops/runs/[runId]/timelineread- Shipsite platform operator only: one run's timeline in UTC: runs, workflow steps with every attempt, agent turns, stage decisions. ?step= for one step whole.
GET /api/workspace/owner-principlesread- List the owner's principles (rules from the owner's feedback that every site's planning, design, build and QA follow) and the platform principles every site follows (read-only).
POST /api/workspace/owner-principleswrite- Add an owner principle. Body: rule, why, stages, severity, owner (planning|design|build: who fixes a break), priority; in the operator workspace, scope (platform proposal by default, or personal).
PATCH /api/workspace/owner-principles/[principleId]write- Edit an owner principle. Body: any of rule, why, stages, severity, owner, priority, status (active|retired).
DELETE /api/workspace/owner-principles/[principleId]write- Remove an owner principle (kept as removed, so it is not proposed again).
GET /api/workspace/web-searchread- Get web search provider settings. Query view=usage reads provider usage (owner/admin).
POST /api/workspace/web-searchwritemay costirreversible- Manage web search provider. Body: action (select|save|test|clear), backend, provider, apiKey, baseUrl. save/test run a live search.