# Site Star Developers > Create websites, automate site operations, and connect agents with the Site Star API and MCP server. ## Agent Views - Site Builder: https://developer.sitestar.io/agents/site-builder.md - Sitestar Integration: https://developer.sitestar.io/agents/sitestar-integration.md --- # Site Star site builder How to build a website that Site Star hosts, when the owner writes the site themselves. Read this first; follow a link only when the task needs it. Last updated: 2026-11-27 ## Use this when - Creating a new site that will be hosted on Site Star from the owner's own GitHub repo. - Preparing an existing static site to be hosted on Site Star. - Adding a Site Star feature (a form, search, chat, member accounts) to such a site. - Reviewing such a site before its first preview. This does not cover sites Site Star builds for the owner. Those are changed by asking Site Star, not by editing a repo. ## The deal The owner writes the site and keeps it in their own GitHub repo. Site Star builds it, publishes it, hosts it, and runs the parts behind it: form submissions, search, the chat assistant, member accounts, traffic analytics and error reports. Site Star never edits the repo and does not fix a failing build. ## What Site Star requires Three things. Everything else is the owner's choice. 1. **A `sitestar.config.json` in the repo root** naming the build command, the output folder and the Node version. 2. **Static output.** The build writes finished HTML files. Pages are flat files (`about.html`, not `about/index.html`), there is an `index.html` at the root, and the home page has its text in the HTML without running JavaScript. 3. **Two reserved paths.** The build writes nothing under `api/v1/` or `data/v1/`. Site Star serves those itself on every site. The full rules, with what happens when each one is broken: https://developer.sitestar.io/build/publish-contract.md ## What is yours Framework, static site generator, styling, components, router, content source, repo layout, package manager and the site's own version numbers. Site Star has no opinion on any of them. Do not restructure a working site to look like a Site Star template; there is no template to match. ## The SDK Every feature is reached through one browser package. ```bash npm install @sitestar/sdk @vue/reactivity ``` ```typescript import { createSiteStar } from '@sitestar/sdk' async function startUp(): Promise { const sitestar = await createSiteStar() // set up the site's forms, search and the rest with `sitestar` } void startUp() ``` - **Nothing to configure.** No API key, site id or base URL. Every call goes to `/api/v1/*` on the site's own address, and Site Star works out which site it is. Never add any of the three. - **Call it once per page and share the result.** A second call returns the same instance. - **It is async.** Call it from an async start-up function, as above. Do not use top-level `await` unless the build target supports it. - **It runs in the browser only.** Do not call it during the static build. - **It needs a bundler.** The package is ESM from npm. There is no script-tag build. - **Local development** needs `/api/v1` proxied to the site's Site Star address, because requests must arrive through Site Star's hosting to be matched to the site. The complete API is in the package: `node_modules/@sitestar/sdk/README.md`. It matches the installed version, so prefer it over memory. ## Features Each feature is independent. Use the ones the site needs and skip the rest. A feature's own rules apply only when the site uses it. | Feature | What the site gets | Does the owner turn it on? | Call | Details | |---|---|---|---|---| | Site facts | The business name, phone, locations and opening hours the owner keeps in Site Star | No | `sitestar.site` | Package README, "Site facts" | | Forms | Submissions stored for the owner, who is told about each one | No | `sitestar.forms.submit()` | https://developer.sitestar.io/features/forms.md | | Search | Search across the published pages | No | `sitestar.search.query()` | Package README, "Search" | | Chat | The site's AI assistant, answering from the published pages | Yes | `sitestar.chat` | Package README, "Chat" | | Member accounts | Sign-up, sign-in and account pages for visitors | Yes | `sitestar.auth`, `sitestar.account` | Package README, "Authentication" | | Analytics | Page views and events in the owner's dashboard | No, automatic | `sitestar.analytics.track()` | Package README, "Analytics" | | Error reports | Uncaught errors reported to Site Star | No, automatic | `sitestar.errors.capture()` | Package README, "Errors" | Two rules hold across features: - **Business facts come from Site Star, not from the code.** Read the name, phone, address and hours from `sitestar.site`. The owner changes them in Site Star and the site follows without a deploy. Every field is optional, so render nothing for a field that is absent. - **A feature the owner has not turned on is not there.** Reading `sitestar.chat` on a site with no chat throws. Check `sitestar.config.chat` and `sitestar.config.members` before building UI on them. ## What makes search and chat good Search and the chat assistant answer from the text of the published pages. These are not required, and each one improves the answers: - Put each page's content inside `
`. - Give each page a `` and a `<meta name="description">`. - Set `<html lang>`. - On articles, set `<meta property="og:type" content="article">` and `article:published_time`. - Keep real text in the HTML. A page whose text only appears after JavaScript runs cannot be found. ## Workflow Classify the request first. **New site** 1. Pick a static site generator the owner is comfortable with. If they have no preference, pick one with flat-file output available. 2. Set the generator to write flat files and confirm it by building and looking at the output folder. 3. Add `sitestar.config.json`. 4. Add the SDK with one start-up call, then the features the owner asked for. 5. Build locally and run the review below. **Existing site** 1. Inspect the repo before editing. Keep its framework, layout and conventions. 2. Check the three requirements against the real build output, not the config. 3. Change only what the requirements need, then add the SDK and the requested features. **One feature** Reuse the existing `createSiteStar()` call. Read that feature's page before writing code. **Review** Lead with findings, most serious first, each with a file and line. - `sitestar.config.json` missing, in a subfolder, or holding a key it does not accept. - `build.output` not matching the folder the build writes. - A page written as `<name>/index.html`. - A home page with almost no text in its HTML. - A file under `api/v1/` or `data/v1/` in the output. - An API key, site id or base URL passed to the SDK or written into the code. - More than one `createSiteStar()` call path, or a call during the static build. - The business name, phone, address or hours typed into the code. - UI built on chat or member accounts without checking that the owner turned them on. - Sign-in or sign-up code that ignores the result object. - A form without the empty `_honeypot` input, or one that sends its own `generate_lead` event. - Build-time environment variables or secrets the build depends on. Site Star provides none. If nothing serious is found, say so and list what could not be checked locally. ## Preview and publish The person does this in the Site Star dashboard. There is no command for it and no local copy of the check. 1. They connect GitHub and choose the repo and branch. Site Star reads `sitestar.config.json` and reports any problem with it. 2. They build a preview. Site Star builds the head of the branch, checks the output, and gives them a preview address and a report. 3. They publish that build. Nothing is rebuilt: the files that were previewed are the files that go live. When a preview fails, ask the person for the failure message and the end of the build log from the dashboard. The message names the rule and the files. Fix the cause in the repo, push, and have them preview again. ## Starter prompt ```text Use https://developer.sitestar.io/agents/site-builder.md to build a website that Site Star will host. What the site is for: Pages: Static site generator (or "you choose"): Styling: Features to use (forms, search, chat, member accounts): Forms and their fields: The site's Site Star address, for local development: ``` --- # Site Star integration guide Site Star builds, hosts, and maintains websites. HTTP base: https://api.sitestar.io/api/v1/app. MCP endpoint: https://api.sitestar.io/mcp/v1. Authenticate with Authorization: Bearer YOUR_API_KEY. HTTP responses are raw operation JSON, without an extra data wrapper. A normal Site Star account is also a developer account. Users sign up or sign in through the Site Star application, open their account page → Access, and create an Entire account API key. This self-service key works with HTTP and MCP to create and manage sites, subject to its scopes. Account signup and key creation use the application UI; no public account-creation operation exists. Map your application's customers to site IDs; keep the account-wide key on your backend. A site-bound key restricts a dedicated integration to one site. Discover MCP tools with tools/list. A site-bound credential supplies siteId (or id for site-record operations) from its context; omit bound arguments. Account credentials supply the required site ID. Never supply namespace or userId. Build decisions, change decisions, and notification writes require the key's trusted user identity. create_site requires name; optional inputs include hostingMode, onboardingDomain, and id. Track provisioning → building → ready → active. list_needs_you returns owner-blocked items and inFlight work; require complete:true before saying there is nothing pending. A kind:build item supplies the pending build ID. Inspect the actual draft before approve_build or request_build_revision; pass the reviewed buildId. Page and screenshot tools show the published/captured site, not necessarily the initial draft. Approval is distinct from billing and launch. golive_site previews before confirm:true commits a charge; explicit subscription selection is available over HTTP, not the MCP launch tool. Read get_site_config and describe_site_config before editing. edit_site_config takes an edits map of allowed dotted paths: scalar/array replacement, null deletes a leaf. update_site_config also supports whole-section imports, which replace complete supplied slots. Never mix import formats. Persistence precedes live propagation. create_task requires title and idempotencyKey; preserve task.id. Task creation is not deployment. list_site_changes exposes revisions; decide_change accepts approved or changes_requested. Inspect applied, status, and reason. Re-read after revision-advanced instead of blindly approving a newer revision. Follow activity to confirm deployment. Use list_ideas/get_idea to inspect suggestions. promote_idea and dismiss_idea return acknowledgments; promotion produces a task asynchronously. They do not return a completed task receipt. Use existing conversations with send_message/list_messages. A message receipt is not an assistant reply. Keep owner conversations and visitor chat separate. HTTP/MCP expose reads of existing uploads but no upload-creation workflow. get_file returns metadata and a signed URL; fetch the content when needed. HTTP screenshots return signed URLs, while MCP get_page_screenshot returns an image content block. Continue pagination while next exists, including empty pages. Reuse supported idempotency keys for retries of the same action; not all writes deduplicate. Respect limits and retryable errors. Never infer launch or deployment completion from HTTP success alone. The HTTP interface covers every MCP capability, with intentional screenshot and launch differences. Consult https://docs.sitestar.io/llms.txt for guides and https://docs.sitestar.io/surface.json for all routes, tools, permissions, and input/result schemas. --- # Build with Site Star Site Star builds, hosts, and maintains websites. Use its API to add website operations to a customer portal, an agency workflow, or an AI assistant. <div class="agent-callout"> ### Are you an agent? You're in the right place. Every documentation page is available as Markdown: append `.md` to its URL, or use **Copy as Markdown**. [Start with the agent guide →](/agents/sitestar-integration.md) [Browse the docs index](/llms.txt) · [Connect with MCP](/api/mcp) </div> An **account** owns sites and provides the account-wide access boundary. A **site** has its own configuration, domains, tasks, conversations, and activity. A **build** tracks the initial website draft and its approval. A **task** requests ongoing work; a **change** is a reviewable revision produced by that work. Approval and successful deployment are separate events. ## Choose an interface | Interface | Use it for | | --- | --- | | [HTTP API](/api/rest) | Your backend, customer portal, or scheduled jobs | | [MCP](/api/mcp) | Agents discovering and calling structured tools | | [Markdown documentation](/guide/agent-docs) | API context for coding assistants | HTTP and MCP share the underlying product operations. HTTP supports every capability in the MCP catalog. Screenshots have transport-specific results, and HTTP launch supports explicit payment-target selection. HTTP also exposes a few operations without dedicated MCP tools; consult the references instead of deriving names from URLs. ## A typical integration 1. Sign up or sign in to Site Star, then create an **Entire account** API key from your account page’s **Access** area. Your normal account is your developer account. 2. Create sites and map each site ID to a customer or project in your application. 3. Follow setup and inspect the initial draft. 4. Approve the build or request a revision, then launch after accepting the billing preview. 5. Submit ongoing tasks, review changes, and confirm deployment through activity. 6. Read analytics, visitor events, and conversations to show results in your application. Your application can provide its own user interface and customer-access rules. Keep its account-wide key on your server. See [accounts and access boundaries](/guides/accounts), then follow the [quickstart](/guide/quickstart). --- # Quickstart Your Site Star account is also your developer account. Create an account-level API key from the account page, then use HTTP or MCP to create and manage sites. This quickstart uses HTTP to create a site, follow its build, and request ongoing work. Run these examples on your server or in a terminal with `curl` and `jq`. ## 1. Get a key and check access 1. Sign up for Site Star, or sign in to your existing account. 2. Open your account page and go to **Access**. 3. Create an API key and choose **Entire account**. 4. Save the key and use it as the bearer credential in your application or [MCP client](/api/mcp). No separate developer account is required. An account-level key lets your integration create sites and use the published HTTP and MCP capabilities across your account, subject to the key's permissions. Choose a specific site instead when an integration should only access that site. See [authentication](/api/authentication) for details. ```sh export SITESTAR_API_URL="https://api.sitestar.io/api/v1/app" export SITESTAR_API_KEY="YOUR_ACCOUNT_API_KEY" curl --fail-with-body "$SITESTAR_API_URL/sites?limit=10" \ -H "Authorization: Bearer $SITESTAR_API_KEY" ``` HTTP returns the operation payload directly: a list has `items` and possibly `next`; there is no additional `data` wrapper. An empty list is a valid result for a new account. ## 2. Create a site ```sh SITE_ID=$(curl --fail-with-body "$SITESTAR_API_URL/sites" \ -H "Authorization: Bearer $SITESTAR_API_KEY" \ -H 'Content-Type: application/json' \ -d '{"name":"Acme Plumbing","hostingMode":"managed","onboardingDomain":"example.com"}' \ | jq -er '.id') export SITE_ID ``` Store `SITE_ID` alongside your application's customer ID. There is no need to create a separate Site Star account per customer. `onboardingDomain` identifies an existing website for onboarding; it does not attach or verify a production domain. Omit it when there is no existing site. ## 3. Follow setup and review the draft ```sh curl --fail-with-body "$SITESTAR_API_URL/sites/$SITE_ID" \ -H "Authorization: Bearer $SITESTAR_API_KEY" curl --fail-with-body "$SITESTAR_API_URL/sites/$SITE_ID/owner-blocked" \ -H "Authorization: Bearer $SITESTAR_API_KEY" ``` Poll with a delay and a deadline. `provisioning` means setup is running; `building` means the initial build is underway. Stop on `failed` and inspect the failure. The owner-blocked result's `items` includes a `kind: "build"` item when a draft awaits your decision; its `id` is the build ID. Require `complete: true` before concluding that nothing needs attention. Inspect the actual draft before deciding. Follow [sites and launch](/guides/sites#review-the-initial-build) to approve or request a revision, then preview and confirm billing to launch. These are deliberate customer actions, not automatic polling steps. ## 4. Request an ongoing change Once the site's initial build has completed: ```sh curl --fail-with-body "$SITESTAR_API_URL/sites/$SITE_ID/tasks" \ -H "Authorization: Bearer $SITESTAR_API_KEY" \ -H 'Content-Type: application/json' \ -d '{"title":"Update our opening hours","description":"Show Monday–Friday, 8am–6pm on the contact page.","idempotencyKey":"acme-hours-001"}' ``` Save the returned `task.id`. Reuse the same idempotency key when retrying that request. A receipt means the request was recorded, not that the website changed. Continue with [tasks and change review](/guides/tasks). --- # Authentication Send your credential in the authorization header for HTTP and MCP requests: ```http Authorization: Bearer YOUR_API_KEY ``` Keep keys in server-side secrets or your MCP client's secret storage. Create separate credentials for separate integrations and environments. Replace a key in the integration before revoking its predecessor. ## Create your API key API keys are self-service from your Site Star account. Your normal account also serves as your developer account; no separate developer account is required. 1. Sign up or sign in to Site Star. 2. Open your account page, then **Access**. 3. Create an API key with **Entire account** selected. 4. Save the key when it is shown. Use the same key with the HTTP API or an MCP client. An account-level key supports the published API capabilities across the account, including creating sites and managing existing sites, subject to its permission scopes. For a dedicated single-site integration, select that site instead. Keys created from a site's Access area are bound to that site. Keep keys out of source control and logs. API keys and OAuth are distinct credential flows. The endpoints accept API keys or supported OAuth tokens, but a generic MCP client can use the bearer-key configuration in the [MCP guide](/api/mcp). The current OAuth registration configuration requires a site binding; use an account-level API key for account-wide automation. ## Context and permissions | Credential | Context and use | | --- | --- | | Account | Permitted operations across one account; use for site creation | | Site | Permitted operations restricted to one existing site | The server derives the account namespace and user identity from the credential. Do not send `namespace`, `userId`, or other identity fields in operation input. On HTTP, supply the site ID in the documented path or query; a site-bound key remains restricted even when another site ID is supplied. Permission scopes and site binding are separate. The default `api-user` role grants the published product-operation scopes and selected record scopes. The [operation reference](/reference/operations) lists required permissions for narrower credentials. Build approval, build revision requests, change decisions, and notification-preference writes require a credential carrying an authenticated Site Star user identity; a bare system credential cannot substitute a user ID in the body. ## MCP site binding For a site-bound key, the server supplies the tool's bound `siteId` (or `id` for site-record operations). Omit that bound argument. For an account key, supply site identifiers explicitly as required by the discovered tool schema. `tools/list` is authoritative for your connection. `list_sites` returns the one bound site for a site credential, or the account's sites for an account credential. Use an account-level key for `create_site`; site binding does not grant account-level permission. ## Revocation and permission failures Disable or revoke credentials that are no longer needed. API Gateway's authorization cache can delay enforcement; revocation is not necessarily immediate. For `401` or `403`, check the key's status, account standing, site binding, user identity, and scopes. Do not retry a permission failure indefinitely. See [errors and retries](/api/errors). --- # Documentation for agents Every documentation page has a Markdown copy. Use **Copy as Markdown** beside the page outline, or append `.md` to its route; the home page is `/index.md`. - [Documentation index](/llms.txt) - [Complete documentation](/llms-full.txt) - [Site Star integration guide for agents](/agents/sitestar-integration.md), for calling the API and MCP server - [Site Star site builder guide for agents](/agents/site-builder.md), for building a site that Site Star hosts - [Machine-readable API/MCP catalog](/surface.json) The Markdown copies and combined corpus are generated from the same source as the website on every build. The machine-readable catalog records HTTP routes, MCP tool names, and product-operation schemas; it is not an OpenAPI document. Start with the integration guide, then retrieve only the reference sections needed for the task. Tool discovery supplies the runtime schema for your credential, including any bound site arguments. --- # Accounts and access boundaries Your normal Site Star account is also your developer account. Sign up or sign in, open the account page, and create an **Entire account** API key in **Access**. This self-service key works with both HTTP and MCP; you do not need a separate developer account. See [authentication](/api/authentication) for the steps. One Site Star account can own multiple sites. A developer can use one account for an application or agency, create sites through its account-level credential, and store the mapping from each application customer to their site IDs. Account signup and key creation happen in the Site Star application. The HTTP and MCP catalogs do not expose account-creation operations. Site creation uses the account associated with the credential; sending an account ID cannot switch that identity. ## Choose the boundary you need | Model | Access behavior | | --- | --- | | Account-level credential | Can operate across the account's sites, subject to its operation permissions | | Site-level credential | Restricts site operations to one existing site, with the same operation-permission checks | | Your application's customer mapping | Organizes sites and controls your own portal's users; it is not a Site Star authorization rule | An account-level credential can access sites throughout its account. A site-bound credential is restricted to the selected site. The binding is fixed when the credential is issued; create a replacement credential to change it. If your portal serves multiple customers through one account-wide key, authorize each request in your backend before calling Site Star. Never send that key to a customer's browser. Site-scoped credentials can limit a dedicated integration or agent to one site. A customer label or a list filter does not create an access boundary. ## Ownership and billing Sites within an account share account ownership and administration. An account can have multiple subscriptions; the HTTP launch operation can choose which subscription pays for a site. Separate subscriptions do not require separate accounts. See [sites and launch](/guides/sites). Separate accounts are useful when independent Site Star ownership, membership, and account standing are required. Creating or delegating access across accounts is outside this external API contract. --- # Sites and launch ## Create a site `POST /sites` · MCP: `create_site` Use an account-level credential. Supply `name` and optionally `hostingMode` (`managed` or `external`, default `managed`), `onboardingDomain`, and a caller-generated ULID `id`. Use managed hosting unless your integration is configured for an externally owned repository. The JSON response includes `id`, `siteKey`, `name`, `status`, and `hostingMode`. Use `id` in API requests; `siteKey` is a short public identifier. Creation dispatches setup asynchronously. `onboardingDomain` is a reference for onboarding, not verified domain ownership. ## Lifecycle | Status | Meaning / next action | | --- | --- | | `provisioning` | Repository and hosting setup is in progress; poll the site | | `building` | Initial build is underway; inspect the owner-blocked queue for a draft decision | | `ready` | Initial draft approved; preview the launch charge | | `active` | Site is live | | `paused` | Service is paused; inspect site and billing status | | `failed` | Setup failed; inspect details before retrying | | `archived` | Site is archived | | `migrated` | Ownership moved; use credentials for the destination account | Read `GET /sites/{siteId}/status` or MCP `get_site_status` for lifecycle, live-probe, domain, build, and configuration-propagation status. Individual sources can be unavailable; inspect their availability fields instead of treating missing data as healthy. ## Review the initial build Read `GET /sites/{siteId}/owner-blocked` or call `list_needs_you`. In `items`, a `kind: "build"` entry identifies the current draft awaiting a decision. Use that entry's `id` as `buildId`. The result also includes `inFlight`; `complete: true` means all constituent reads succeeded. Inspect the draft in your review workflow before approving. The owner-blocked queue identifies work; it is not the draft itself. Page and screenshot inspection describes the currently published/captured site and is not proof of an unlaunched draft. The Site Star dashboard remains available for visual draft review. | Decision | HTTP | MCP | | --- | --- | --- | | Approve draft | `POST /sites/{siteId}/builds/{buildId}/approve` | `approve_build` | | Request revision | `POST /sites/{siteId}/builds/{buildId}/revision` | `request_build_revision` | Approve with an empty JSON object: ```sh curl --fail-with-body "$SITESTAR_API_URL/sites/$SITE_ID/builds/$BUILD_ID/approve" \ -H "Authorization: Bearer $SITESTAR_API_KEY" \ -H 'Content-Type: application/json' \ -d '{}' ``` Request a revision with `{"note":"Please use the existing emergency phone number."}`. The note is limited to 2,000 characters. Both operations require a user identity on the credential; the server records identity from trusted context, not input. State guards reject invalid transitions. Approval returns `build`, `site`, and `alreadyApproved`; an already-approved replay does not approve a different build. Revision returns the public build record. For MCP, provide `buildId` to identify the draft reviewed. The schema also allows omission to resolve the current build; prefer the explicit ID when presenting a particular draft to a customer. Omit `siteId` only when the key binds it. Approval makes the site eligible to launch; it does not charge or activate it. Staff draft submission is not published to external clients. ## Launch a ready site `POST /sites/{siteId}/golive` · MCP: `golive_site` First request a preview: ```json {"origin":"https://portal.example.com","confirm":false} ``` Read the result's `action` and billing details. After the customer accepts the charge, repeat with the JSON boolean `confirm: true`. If `action` is `checkout`, the customer must complete the returned checkout URL; inspect current site state and continue the launch flow afterward. `action: "preview"` is not activation, and approval alone is not launch. HTTP also supports `subscriptionId` or `newSubscription` to select the payment destination; they are mutually exclusive. Use the preview's payment target to make that choice explicit. On `SUBSCRIPTION_CHOICE_REQUIRED` or `SUBSCRIPTION_FULL`, inspect the returned alternatives rather than blindly retrying. MCP exposes basic launch without payment-target selection; resolve that choice through the UI or your HTTP integration. A promotion code must be supplied on both preview and confirmation. Follow site status to confirm `active` and site activity to verify delivery. ## Ongoing changes Later content and design work goes through [tasks and change review](/guides/tasks). Initial build decisions and ongoing change decisions are separate operations; neither is an arbitrary status setter. --- # Configuration Configuration describes the site's business content and behavior. Read the editable view before writing it. | HTTP | MCP | Purpose | | --- | --- | --- | | `GET /sites/{siteId}/config` | `get_site_config` | Read editable configuration | | `GET /sites/{siteId}/config/describe` | `describe_site_config` | Discover supported fields and constraints | | `PATCH /sites/{siteId}/config` | `edit_site_config` | Edit allowed leaf fields by dotted path | | `PUT /sites/{siteId}/config` | `update_site_config` | Import sections or update dotted paths | | `POST /sites/{siteId}/config/generate` | `generate_site_config` | Generate configuration suggestions | ## Update selected fields Use `PATCH /sites/{siteId}/config` (MCP `edit_site_config`) with an `edits` map: ```json { "edits": { "content.brand.voice.prohibitedTerms": ["guaranteed results"] } } ``` Only allowed leaf paths may be edited. Scalars and arrays replace their current values; send the complete array. `null` deletes a leaf. Object values and deletion of parent settings are rejected. A request may contain at most 100 paths. Use `describe_site_config` to discover editable paths rather than guessing them. ## Import whole sections Use `PUT /sites/{siteId}/config` (MCP `update_site_config`) with a nested `config` document to import supplied sections. Each supplied section replaces its entire stored slot; read and preserve any existing values you want to keep. Do not mix a section import and dotted paths in one request. The result includes `siteId`, `applied`, and the resulting editable `config`. Configuration persistence and propagation to the website are separate events; inspect activity before reporting that a visible change has shipped. `PUT` also accepts dotted paths inside `config`; prefer `PATCH` with `edits` for focused changes. `get_site_settings` returns raw stored slots; use `get_site_config` for the configuration shape consumed by update operations. --- # Tasks and change review A task describes work to be done. A change records a reviewable revision. One task can lead to more than one change or review cycle. ## Create and follow a task `POST /sites/{siteId}/tasks` · MCP: `create_task` Supply `title` and `idempotencyKey`; add `description` for acceptance criteria. Titles are limited to 300 characters and descriptions to 10,000. `attachmentFileIds` accepts up to 25 existing customer uploads or link snapshots belonging to the site. ```json { "title": "Add an emergency service section", "description": "Add a section to the home page with our existing phone number and a link to the contact page.", "idempotencyKey": "acme-emergency-section-001" } ``` Save the returned `task.id`. `deduplicated: true` means this retry found an existing task. If `initialNotification` is present, its `channel` and `destination` describe where updates will be sent. Read `GET /sites/{siteId}/tasks/{id}` or call `get_task`. Use the cancel operation to cancel supported work; changing a status is not a substitute for cancellation. ## Review the current change List `GET /sites/{siteId}/changes` or call `list_site_changes`. Inspect the current revision and its preview before deciding. `GET /sites/{siteId}/owner-blocked` or MCP `list_needs_you` gathers decisions waiting for your input and in-flight work. Require `complete: true` before treating an empty queue as authoritative. `POST /sites/{siteId}/changes/{changeId}/decisions` · MCP: `decide_change` ```json { "outcome": "changes_requested", "body": "Please use the existing emergency phone number.", "idempotencyKey": "review-emergency-001" } ``` Use `approved` to approve or `changes_requested` to request a revision. For approval, the server attempts a merge guarded against the revision changing concurrently. Inspect the result's `applied`, `status`, `headSha`, and `reviewCycle`. `applied: false` can include `revision-advanced`, `not-mergeable`, or `already-applied`. Re-read the change before making a new decision; do not blindly approve a newer revision under an old decision key. A recorded approval is not a completed deployment. Follow site activity to confirm the release reached the site. ## Ideas | Action | HTTP | MCP | | --- | --- | --- | | List | `GET /sites/{siteId}/ideas` | `list_ideas` | | Read | `GET /sites/{siteId}/ideas/{id}` | `get_idea` | | Promote to task | `POST /sites/{siteId}/ideas/{ideaId}/promote` | `promote_idea` | | Dismiss | `POST /sites/{siteId}/ideas/{ideaId}/dismiss` | `dismiss_idea` | Promotion and dismissal return HTTP `202` with `status` and `sourceUrl`. They acknowledge a source-issue update; the resulting task or dismissed idea materializes asynchronously. Re-read the idea and task list afterward. A promotion acknowledgment is not a task receipt and does not contain a task ID. ## Notifications Use `GET /sites/{siteId}/tasks/{taskId}/notifications` / `get_task_notifications` to read delivery routes. `PATCH` on that path / `set_task_notifications` changes one contact's email or SMS route with `contactId`, `channel`, and a boolean `enabled`. The destination comes from the contact record, never an arbitrary input address. The write requires a user-backed credential. See [contacts and integrations](/guides/integrations). --- # Conversations Conversations let an integration send a customer's request to the site's assistant and read the reply history. ## Find a conversation Read `GET /conversations?siteId=SITE_ID` or call `list_conversations`. Use an existing site conversation from the dashboard. Keep its `conversationId` with the `siteId`; a conversation from another site cannot be used interchangeably. ## Send a message `POST /conversations/{conversationId}/messages` · MCP: `send_message` ```json { "siteId": "01K50000000000000000000001", "content": "What changes are waiting for my approval?", "idempotencyKey": "owner-message-001" } ``` Supply `content` or `attachmentIds`. An attachment-only message needs ready upload IDs belonging to this site, with at most 10 attachments. Messages sent through this operation always have the user role. The result contains `messageId`, `conversationId`, `created`, `queued`, and `deduplicated`. A message receipt is not an assistant reply. `queued: false` does not mean the stored message was lost; processing can continue through the message stream. Reuse the idempotency key if a transport failure requires a retry. ## Read replies Use `GET /conversations/{conversationId}/messages?siteId=SITE_ID` or `list_messages`. Follow returned cursors, bound your polling interval, and stop polling when your application's deadline is reached. ## Visitor chat Visitor conversations are a separate interface under `/sites/{siteId}/visitor-conversations/{visitorConversationId}`. Use `list_visitor_messages`, `send_visitor_message`, and `set_visitor_chat_mode` for visitor history, staff replies, and assistant handoff. Keep owner conversations and visitor conversation IDs separate. --- # Domains and redirects ## Connect a domain 1. Call `POST /sites/{siteId}/domains` with `{"domain":"www.example.com"}`, or use `add_domain`. 2. Follow the DNS instructions returned for that domain. 3. Read `GET /sites/{siteId}/domains` or `list_domains` until verification and serving readiness complete. 4. Call `POST /sites/{siteId}/domains/{domain}/primary`, or use `set_primary_domain`, when the domain is ready. Domain registration, DNS verification, certificate readiness, and primary-domain selection are distinct steps. Use the returned DNS records; do not hard-code a DNS target into your integration. `onboardingDomain` on site creation is an unverified reference to an existing website. It does not replace this attachment flow. ## Remove a domain Use `DELETE /sites/{siteId}/domains/{domain}` or `remove_domain`. Confirm the customer's intended domain before removing it. If it is the primary domain, establish the replacement first. ## Redirects Read `/sites/{siteId}/redirects` or use `list_redirects`. MCP provides `add_redirect`, `set_redirect_target`, and `remove_redirect`; corresponding HTTP endpoints are in the [reference](/reference/http). Inspect existing redirects before changing them and avoid loops. Verify the deployed URL after propagation. --- # Analytics, activity, pages, and files Use analytics for aggregate behavior, events for individual visitor actions, and activity for website operations. | Data | HTTP | MCP | | --- | --- | --- | | Analytics | `GET /sites/{siteId}/analytics` | `get_analytics` | | Activity | `GET /sites/{siteId}/activity` | `list_site_activity` | | Visitor events | `GET /sites/{siteId}/events` | `list_site_events` | | Events by kind | `GET /sites/{siteId}/events/kind/{kind}` | `list_site_events_by_kind` | | Individual event | `GET /sites/{siteId}/events/{id}` | No dedicated tool | | Lead journey | `GET /sites/{siteId}/events/{eventId}/journey` | No dedicated tool | | Platform status | `GET /platform/status` | `get_platform_status` | | Site status | `GET /sites/{siteId}/status` | `get_site_status` | Activity requires a `level`; use its [operation schema](/reference/operations#site-activity-list) for supported values and filters. Paginated results can contain an empty `items` array and still return `next`. Continue until the cursor is absent. ## Inspect the published site | Action | HTTP | MCP | | --- | --- | --- | | List pages | `GET /sites/{siteId}/pages` | `list_pages` | | Read page text | `GET /sites/{siteId}/page?route=/contact` | `read_page` | | Get screenshot | `GET /sites/{siteId}/page-screenshot?route=/contact&viewport=mobile` | `get_page_screenshot` | Choose a route from the page list and URL-encode query values. Page text is returned with its source (`markdown` or `html-extract`). These operations inspect published artifacts; they are not an unpublished-draft preview API. HTTP screenshots return metadata and a short-lived signed `url` to a JPEG. Fetch it promptly; it is not a permanent image URL. MCP returns the image as a content block with a caption. Both support `desktop` or `mobile` viewport, defaulting to desktop. Capture time belongs to the deployed release and can predate pending changes. `SCREENSHOTS_UNAVAILABLE` means the deployment predates screenshot capture; `SCREENSHOT_NOT_CAPTURED` means the selected route has no captured image. ## Uploaded files `GET /sites/{siteId}/files` / `list_files` lists customer uploads and supports `limit` / `next`. `GET /sites/{siteId}/files/{id}` / `get_file` returns public metadata, optional extracted text, and a short-lived `signedUrl`. Fetch or open the returned resource when inspecting the file itself. The external catalog supports reading existing uploads; it does not expose an upload-creation workflow. Files attached to tasks or messages must already belong to that site and satisfy the operation's readiness requirements. ## Diagnose delays `get_platform_status` reports upstream service health and can be cached for five minutes. `get_site_status` describes one website, including a live HTTPS probe and build/delivery information. Individual dependency failures are reported separately. Check timestamps and availability fields; an unavailable source is not evidence that everything is healthy. --- # Contacts and integrations ## Contacts Use `/sites/{siteId}/contacts` to list or add site contacts. Contact updates and removal use the contact ID. MCP provides `list_contacts`, `add_contact`, `set_contact_status`, and `remove_contact`; HTTP also has a contact-name update route. Contact notification preferences are separate from adding a contact: `PATCH /sites/{siteId}/contacts/{contactId}/notifications` · MCP: `set_contact_notifications` ```json {"receivesNotifications":true,"receivesReports":true,"preferredChannel":"email"} ``` Omit a field to preserve it. `preferredChannel` accepts `email`, `sms`, or an empty string to clear the preference. Optional `preferredChannelFrom` / `preferredChannelThrough` are calendar dates in the site's timezone. This preference does not disable the other channel. The credential must carry a user identity; callers cannot substitute one in the body. Task-level notification routes have separate read/write operations described in [tasks and change review](/guides/tasks#notifications). A task write accepts a contact ID and channel, not an arbitrary destination. Enabling can fail when the contact lacks the required address, has notifications disabled, or SMS is unavailable. Inspect the result before telling a customer they will receive updates. ## Inbound addresses Read `GET /sites/{siteId}/inbound-addresses` or call `list_inbound_addresses` to find addresses assigned to the site. Use returned addresses instead of constructing them from the site name. ## Microsoft Teams 1. Call `POST /sites/{siteId}/teams/pairing-code` with `{}`, or MCP `connect_teams`. 2. Follow the returned `instructions` to enter the short-lived pairing code in Teams. 3. Read `GET /sites/{siteId}/teams/installation` or MCP `get_teams_connection` to confirm the connection. `installation: null` means the site is not connected. Creating a code does not complete pairing. Keep pairing codes out of public logs. HTTP returns `201` when a code is created. Installation updates, disconnection, and test posts are not in the external catalog. ## SMS and visitor handoff | HTTP | MCP | | --- | --- | | `PATCH /sites/{id}/sms` | `set_sms_enabled` | | `PATCH /sites/{id}/chat-sms` | `set_chat_sms_enabled` | | `PATCH /sites/{id}/chat-handoff` | `set_chat_handoff_enabled` | | `GET /sites/{siteId}/chat-sms/sender` | `get_chat_sms_sender` | These flags control separate capabilities. Enabling a flag does not itself provision a sender; inspect the sender result for availability. See the [operation schemas](/reference/operations) for each input. --- # Publish contract What a site you build yourself must hand Site Star so it can be built, published, searched and hosted. Site Star checks the build output, not how you produced it: any generator that writes static HTML works. ## `sitestar.config.json` One file in the root of the repo. Site Star reads it at the commit being built. ```json { "build": { "command": "npm ci && npm run build", "output": "dist", "node": 22 }, "pages": { "exclude": ["/drafts/one"] }, "immutable": ["_astro/*"] } ``` | Key | Required | Meaning | |---|---|---| | `build.command` | Yes | Run from the repo root. It installs its own dependencies. | | `build.output` | Yes | The folder the build writes, relative to the repo root. Forward slashes, no `..`, not absolute. | | `build.node` | Yes | The Node major version to build with: `22`, `24` or `26`. | | `pages.exclude` | No | Exact routes to leave out of search and chat, each starting with `/`. Wildcards are refused. | | `immutable` | No | Path patterns for files whose names carry a content hash. Only these are cached for a long time; every other file is rechecked on each visit. | A key that is not in this table is an error, and so is a file that is not valid JSON. Every problem is reported at once. The file holds no business facts. The name, phone, hours and chat settings are kept in Site Star and reach the site through the SDK. > The build gets no environment variables and no secrets. The SDK needs none, because it talks to the site's own address. ## The output rules Checked on the output folder after the build command succeeds. | Rule | If it is broken | |---|---| | The output folder exists and holds an `index.html` at its root. | The build fails. | | Every page is a flat file: `/about` is `about.html`, and `/services/roofing` is `services/roofing.html`. An `index.html` anywhere but the root is refused. | The build fails and lists the files. | | The home page has at least 100 characters of text in its HTML, not counting navigation, footer, scripts and styles. | The build fails. | | Nothing sits under `api/v1/` or `data/v1/`, and there is no `.sitestar-release.json`. Site Star serves and writes those itself. | The build fails and lists the files. | | No `.md` file sits where a page's Markdown copy goes: `about.md` beside `about.html`, or `index.md` at the root. | The build fails and lists the files. | | Every `.html` file is a whole page with a `<body>`. | The build fails. Remove the file from the output or list its route in `pages.exclude`. | | The output holds no symbolic links. | The build fails. | | A page is at most 1 MB of HTML, and a site at most 25,000 pages. | The build fails and says which limit. | | A `_redirects` file, if there is one, holds only rules Site Star can serve. | The build fails and lists the lines. | Three things are reported without failing the build: - **Thin pages.** A page other than the home page with under 100 characters of text is published and listed as having little to find. - **No `404.html`.** Site Star's default "page not found" page is used. - **Pages marked `noindex`.** A page with `<meta name="robots" content="noindex">` is published and left out of search and chat. ### Why flat files Site Star serves `/about` from `about.html`. A page written as `about/index.html` would never be reached, while search and chat would still link to it. Most generators write folders by default and have one setting for flat files. In Astro it is: ```js // astro.config.mjs export default defineConfig({ build: { format: 'file' }, }) ``` Confirm it by building and looking in the output folder. ### Why the home page needs text Search and the chat assistant read each page's HTML without running JavaScript. A site that draws its pages in the browser ships an empty page, so there is nothing to search and nothing for the assistant to answer from. Build the site to static HTML. ## Page details Site Star reads these from each page's `<head>`. None is required, and each one makes search and chat better. | Detail | Read from | |---|---| | Title | `<title>` | | Description | `<meta name="description">` | | Language | `<html lang>` | | Published and updated dates | `<meta property="article:published_time">` and `article:modified_time` | | Type | `<meta property="og:type" content="article">` marks an article. Anything else is a page. | The page's text is taken from `<main>`, or from `<body>` when there is no `<main>`. ## Redirects A `_redirects` file in the output root, one rule per line: the old path, then the target. ```text /old-pricing /pricing /blog/2023-news /news ``` Each rule is an exact path, served as a 301. These are refused: - a wildcard or placeholder (`*`, `:name`, `:splat`); - a status other than 301; - redirecting the home page, or a path ending in `/`; - a path under `api/v1/` or `data/v1/`; - a path that is also a real page in the output; - the same path twice. ## Preview and publish Both happen in the Site Star dashboard. ### 1. Connect the repo Connect GitHub, then pick the repo and branch. Site Star checks that it can read the repo and that `sitestar.config.json` is valid before it lets you save. ### 2. Build a preview Site Star builds the latest commit on the branch, checks the output against the rules above, and publishes it to a preview address. The report lists the pages found, any thin pages, and whether the default "page not found" page was added. If your build command fails, the dashboard shows the end of its log. Previewing a commit a second time replaces its earlier build. ### 3. Publish the build Publishing makes a previewed build the live release. Nothing is rebuilt: the files you previewed are the files that go live. Site Star numbers each release itself; the number has nothing to do with your own versions. > Publishing is separate from going live. A site that has not gone live yet is published behind its access code. Going live is the paid step that opens it to the public. ## What Site Star does not do - Change your code, or fix a failing build. - Run a server for the site, or render it on request. - Render a browser-drawn site into HTML for you. - Provide build-time environment variables or secrets. ## Reference - [Forms](/features/forms) - [Agent guide for building a site](/agents/site-builder.md) --- # Forms Contact, quote, signup and other forms on a site hosted by Site Star. ## What it does A visitor fills in a form on the site. Site Star stores the submission for that site and tells the owner about it. There is nothing to set up: a form on any hosted site works as soon as it is published. - **Each form has a name**, such as `contact` or `quote`. The owner's submissions are grouped by it. Names are stored in capitals (`contact` becomes `CONTACT`), and a submission with no name lands under `GENERAL`. - **The site is known from where the form was sent.** A submission belongs to the site whose address the page was served from. A form cannot name a different site. - **Fields are free-form.** Any field name is accepted and stored as text. Two names mean something: `email`, which must look like an email address when it is filled in, and `phone`, which becomes the visitor's contact number. - **A submission must contain something.** One with every field empty is refused. - **Bots are screened.** Every form carries an empty hidden field named `_honeypot`. A submission that fills it is refused. - **The owner sees where the visitor came from.** The page the form was on, and how the visitor reached the site, are recorded with the submission. - **Being stored is not the same as being answered.** A successful submission means Site Star has it. It does not mean an email was sent to the visitor. Limits: 10 KB per submission, about 37 fields, and 2,000 characters per value (longer values are cut). Values are plain text: no files, lists or nested objects. ## Configure A form needs no settings. Two things are optional, and the owner controls both in Site Star. **Form rules.** The owner can add rules for a named form: required fields, formats, allowed values and lengths. Site Star then refuses a submission that breaks them and says which field failed. A form with no rules is accepted as it is sent. Rules are one setting per form, `forms.definitions.<form name>`, holding that form's whole definition: ```json { "properties": { "name": { "minLength": 2 }, "email": { "format": "email" }, "phone": { "format": "phone" }, "service": { "enum": ["repair", "install", "inspection"] } }, "required": ["name", "email"] } ``` | Keyword | Where | Meaning | |---|---|---| | `properties` | Form or step | The fields the rules cover. At most 50 per form. | | `required` | Form or step | Field names that must be filled in. | | `additionalProperties` | Form | `false` refuses any field that is not listed. | | `format` | Field | `email`, `phone`, `date` or `uri`. | | `enum` | Field | The allowed values. At most 100. | | `minLength`, `maxLength` | Field | Length limits. `maxLength` is at most 2,000. | | `steps` | Form | A multi-step form: 2 to 10 steps in order, each with an `id`, `properties` and `required`. | `pattern` is not supported. A field name may not start with `_`. > A rule only checks fields the page already sends. Requiring a field the form does not show makes every submission of that form fail. Add the field to the page first, publish, then add the rule. The owner sets rules by asking their Site Star assistant, or with [`edit_site_config`](/guides/configuration) over the API or MCP. The dashboard lists them under Settings, Forms. **Spam controls.** The same Settings, Forms section holds the owner's spam controls. ## Use in your site **Tell your agent:** "Add a contact form with name, email and message, and show the visitor a thank-you when it is sent." ```html <form id="contact-form"> <label for="contact-name">Name</label> <input id="contact-name" name="name" autocomplete="name" required /> <label for="contact-email">Email</label> <input id="contact-email" name="email" type="email" autocomplete="email" required /> <label for="contact-message">Message</label> <textarea id="contact-message" name="message" required></textarea> <!-- Stays empty. Hidden from people, present in the page. --> <input name="_honeypot" tabindex="-1" autocomplete="off" aria-hidden="true" style="position:absolute;left:-9999px" /> <button type="submit">Send</button> <p id="contact-status" role="status"></p> </form> ``` ```typescript import { createSiteStar, FormSubmitError } from '@sitestar/sdk' async function setUpContactForm(): Promise<void> { const form = document.querySelector<HTMLFormElement>('#contact-form') const status = document.querySelector<HTMLElement>('#contact-status') if (!form || !status) return // Reuse the site's one createSiteStar() call if it already has one. const sitestar = await createSiteStar() let sending = false form.addEventListener('submit', async (event) => { event.preventDefault() if (sending) return sending = true form.setAttribute('aria-busy', 'true') const fields: Record<string, string> = {} for (const [name, value] of new FormData(form)) { if (typeof value === 'string') fields[name] = value } try { await sitestar.forms.submit('contact', fields) status.textContent = 'Thanks. We have your message.' form.reset() } catch (error) { if (!(error instanceof FormSubmitError)) throw error status.textContent = error.message } finally { sending = false form.removeAttribute('aria-busy') } }) } void setUpContactForm() ``` ### Rules 1. **Name every form.** The first argument to `submit` is the form's name. Use one stable, lowercase name per form, and keep it once the form is live: the owner's rules and history are filed under it. 2. **Keep the `_honeypot` input.** It is in the page, hidden from people, always empty, and sent with the other fields. 3. **Name the fields `email` and `phone`** when the form collects them. Under any other name they are stored as ordinary text and the owner cannot reply from them. 4. **Send plain values.** Strings, numbers and booleans. No files, lists or objects. 5. **Do not send your own lead event.** The SDK sends Google's `generate_lead` once for each accepted submission. A second one double-counts every conversion. 6. **Do not add a site, domain or key field.** The site is known from where the form was sent. 7. **Stop a second click while one is sending.** Use a flag and `aria-busy`, as above. Do not set `disabled` on the button: it drops keyboard focus mid-send. 8. **Keep what the visitor typed when a submission fails.** ### When a submission fails `submit` throws a `FormSubmitError`. Its `message` is ready to show the visitor. | `error.kind` | What happened | What to offer | |---|---|---| | `network` | The request never reached Site Star. | Try again. | | `rejected` | The submission was refused: a field broke a rule, or it was empty. | Fix the fields. See `error.fieldErrors`. | | `rate-limited` | Too many attempts. | Wait, then try again. | | `server` | Something is wrong on Site Star's side or in the site's setup. | Another way to get in touch. The visitor cannot fix this. | When the form has rules, `error.fieldErrors` names each field that failed: ```typescript error.fieldErrors // { name: { code: 'min-length', message: 'must be at least 2 characters' } } ``` Show each one beside its input and connect it with `aria-describedby`. `message` is a short English phrase written to follow the field's label. A site in another language shows its own text for each `code`: `required`, `not-accepted`, `format`, `enum`, `min-length`, `max-length`, `unknown-step`, `step-order` or `unknown`. To change or translate the four general messages, pass them once at start-up: ```typescript const sitestar = await createSiteStar({ strings: { formErrorNetwork: 'Check your connection and try again.' }, }) ``` The keys are `formErrorNetwork`, `formErrorRejected`, `formErrorRateLimited` and `formErrorServer`. ### Multi-step forms A multi-step form needs rules with `steps`. Each step is sent on its own, named by its `id`, and passes the previous step's token on: ```typescript const first = await sitestar.forms.submit('quote', { email }, { step: 'contact' }) await sitestar.forms.submit( 'quote', { budget }, { step: 'details', updateToken: first.updateToken }, ) ``` - The first step creates the submission, so the owner has the lead even if the visitor stops there. - Steps are accepted in order. A step sent too early is refused with `step-order`, naming the step that comes first. - Every step returns a new token. Always pass the most recent one. - A token lasts about two hours. If a later step arrives with an expired token, it is kept as a second submission, so nothing the visitor typed is lost. - Keep the token in memory only. Do not write it to storage. ### Local development A form can only be sent from a page that reaches Site Star through the site's own address. On a local dev server, proxy `/api/v1` to the site's Site Star address. ## Reference - [Publish contract](/build/publish-contract) - [Configuration](/guides/configuration), for setting form rules over the API or MCP - [Agent guide for building a site](/agents/site-builder.md) --- # HTTP API Base URL: `https://api.sitestar.io/api/v1/app` Send `Authorization: Bearer YOUR_API_KEY`. Requests with a body use `Content-Type: application/json`. Route paths in this documentation are relative to the base URL. ## Parameters Replace `{siteId}`, `{id}`, and other path placeholders with URL-encoded identifiers. For `GET` and `DELETE`, supply remaining operation input as query parameters. For `POST`, `PUT`, and `PATCH`, supply the remaining fields in a JSON body. Path parameters do not need to be repeated in the body. ```sh curl --fail-with-body "$SITESTAR_API_URL/sites?limit=20" -H "Authorization: Bearer $SITESTAR_API_KEY" ``` ## Responses Successful calls return the operation result directly, without a `data` wrapper: ```json {"items":[],"next":"opaque-cursor"} ``` Creation routes return `201` where listed. Idea promotion and dismissal return `202` acknowledgments; other successful routes default to `200`. A null/absent operation result returns `204` with no body; clients must not JSON-parse an empty response. An accepted request can start asynchronous work. Read the returned product status to establish completion. ## Pagination List operations supporting pagination accept `limit` and an opaque `next` cursor. Pass `next` unchanged on the subsequent request, with the same filters. Continue when an empty page still has a cursor. Do not parse cursors or share them across accounts, sites, or queries. ## Versioning The URL identifies the API version. Clients should tolerate additional response fields and avoid treating newly returned status values as successful terminal states. Validate outgoing input against each operation's schema; many operations reject unknown input fields. Browse [all HTTP endpoints](/reference/http) and [operation schemas](/reference/operations). For transport and product failures, see [errors and retries](/api/errors). --- # Connect with MCP MCP gives an agent structured tools for Site Star operations. Connect to: ```text https://api.sitestar.io/mcp/v1 ``` Use an HTTP-capable MCP client and send your Site Star credential in the authorization header. A generic client configuration looks like: ```json { "mcpServers": { "sitestar": { "url": "https://api.sitestar.io/mcp/v1", "headers": {"Authorization": "Bearer YOUR_API_KEY"} } } } ``` Client configuration formats vary. Store the actual key in the client's secret settings rather than committing this file with a credential. ## Discover and call tools Initialize the MCP connection with your client, then use `tools/list`. The response supplies tool names, descriptions, and input schemas for the credential. Use `tools/call` to invoke one: ```json { "jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": { "name": "create_site", "arguments": {"name":"Acme Plumbing","hostingMode":"managed"} } } ``` Use an account-level API key for `create_site`, and a site credential for an agent dedicated to one website. A site-bound `get_site` call needs no `id`; the server supplies it from the credential. HTTP returns raw operation JSON; MCP has its own content wrapping: inspect the tool result's content and error indicator through your MCP client. ## Suggested agent workflow 1. Read the site and its current status. 2. Read relevant configuration, tasks, or changes before proposing a mutation. 3. Call the narrowest tool that expresses the requested action. 4. Keep the returned IDs and reuse supported idempotency keys on retries. 5. Read the resulting state before reporting completion. Initial drafts use `approve_build` / `request_build_revision`; ongoing changes use `decide_change`. All require the credential to carry a user identity. Task creation requests work. Change approval can initiate a merge. Launch confirmation can charge the account. Distinguish those outcomes in the agent's response. See the [full tool catalog](/reference/mcp) and [agent documentation](/guide/agent-docs). --- # HTTP endpoint reference All paths are relative to the [HTTP base URL](/api/rest). Send a bearer credential. Path parameters are URL-encoded; remaining inputs go in query parameters for GET/DELETE or a JSON body for writes. Select an action to see its inputs, results, and required permissions. | Method | Path | Success | Action | | --- | --- | --- | --- | | GET | `/platform/status` | 200 | [Get platform status](/reference/operations#get-platform-status) | | GET | `/sites` | 200 | [List sites](/reference/operations#list-sites) | | GET | `/sites/{id}` | 200 | [Get site](/reference/operations#get-site) | | POST | `/sites` | 201 | [Create site](/reference/operations#create-site) | | PATCH | `/sites/{id}/privacy` | 200 | [Set site privacy](/reference/operations#set-site-privacy) | | PATCH | `/sites/{id}/timezone` | 200 | [Set site timezone](/reference/operations#set-site-timezone) | | PATCH | `/sites/{id}/geo-blocking` | 200 | [Set country restrictions](/reference/operations#set-geo-blocking) | | PATCH | `/sites/{id}/sms` | 200 | [Set SMS enabled](/reference/operations#set-sms-enabled) | | PATCH | `/sites/{id}/chat-sms` | 200 | [Set chat SMS enabled](/reference/operations#set-chat-sms-enabled) | | PATCH | `/sites/{id}/chat-handoff` | 200 | [Set chat handoff enabled](/reference/operations#set-chat-handoff-enabled) | | GET | `/sites/{siteId}/chat-sms/sender` | 200 | [Get chat SMS sender](/reference/operations#get-chat-sms-sender) | | PUT | `/sites/{siteId}/config` | 200 | [Update site config](/reference/operations#update-site-config) | | GET | `/sites/{siteId}/config` | 200 | [Get site config](/reference/operations#get-site-config) | | GET | `/sites/{siteId}/config/describe` | 200 | [Describe site config](/reference/operations#describe-site-config) | | POST | `/sites/{siteId}/config/generate` | 200 | [Generate site config](/reference/operations#generate-site-config) | | POST | `/sites/{siteId}/golive` | 200 | [Launch a site with HTTP](/reference/operations#launch-site) | | GET | `/sites/{siteId}/tasks` | 200 | [List tasks](/reference/operations#list-tasks) | | GET | `/sites/{siteId}/tasks/{id}` | 200 | [Get task](/reference/operations#get-task) | | POST | `/sites/{siteId}/tasks` | 201 | [Create task](/reference/operations#create-task) | | PATCH | `/sites/{siteId}/tasks/{id}/status` | 200 | [Set task status](/reference/operations#set-task-status) | | POST | `/sites/{siteId}/tasks/{id}/cancel` | 200 | [Cancel task](/reference/operations#cancel-task) | | GET | `/sites/{siteId}/activity` | 200 | [List site activity](/reference/operations#list-site-activity) | | GET | `/sites/{siteId}/analytics` | 200 | [Get analytics](/reference/operations#get-analytics) | | GET | `/sites/{siteId}/requests` | 200 | [Get site requests](/reference/operations#get-site-requests) | | GET | `/sites/{siteId}/events/{eventId}/journey` | 200 | [Get lead journey](/reference/operations#get-lead-journey) | | GET | `/sites/{siteId}/changes` | 200 | [List site changes](/reference/operations#list-site-changes) | | GET | `/sites/{siteId}/visitor-conversations/{visitorConversationId}/messages` | 200 | [List visitor messages](/reference/operations#list-visitor-messages) | | POST | `/sites/{siteId}/visitor-conversations/{visitorConversationId}/messages` | 201 | [Send visitor message](/reference/operations#send-visitor-message) | | PATCH | `/sites/{siteId}/visitor-conversations/{visitorConversationId}/agent-mode` | 200 | [Set visitor chat mode](/reference/operations#set-visitor-chat-mode) | | GET | `/sites/{siteId}/events` | 200 | [List site events](/reference/operations#list-site-events) | | GET | `/sites/{siteId}/events/kind/{kind}` | 200 | [List site events by kind](/reference/operations#list-site-events-by-kind) | | GET | `/sites/{siteId}/events/{id}` | 200 | [Get site event](/reference/operations#get-site-event) | | GET | `/sites/{siteId}/changes/{changeId}/decisions` | 200 | [Get change decisions](/reference/operations#get-change-decisions) | | POST | `/sites/{siteId}/changes/{changeId}/decisions` | 201 | [Decide change](/reference/operations#decide-change) | | GET | `/sites/{siteId}/contacts` | 200 | [List contacts](/reference/operations#list-contacts) | | POST | `/sites/{siteId}/contacts` | 201 | [Add contact](/reference/operations#add-contact) | | PATCH | `/sites/{siteId}/contacts/{id}/name` | 200 | [Set contact name](/reference/operations#set-contact-name) | | PATCH | `/sites/{siteId}/contacts/{id}/status` | 200 | [Set contact status](/reference/operations#set-contact-status) | | DELETE | `/sites/{siteId}/contacts/{id}` | 200 | [Remove contact](/reference/operations#remove-contact) | | GET | `/sites/{siteId}/inbound-addresses` | 200 | [List inbound addresses](/reference/operations#list-inbound-addresses) | | GET | `/sites/{siteId}/redirects` | 200 | [List redirects](/reference/operations#list-redirects) | | POST | `/sites/{siteId}/redirects` | 201 | [Add redirect](/reference/operations#add-redirect) | | PATCH | `/sites/{siteId}/redirects/{id}/target` | 200 | [Set redirect target](/reference/operations#set-redirect-target) | | DELETE | `/sites/{siteId}/redirects/{id}` | 200 | [Remove redirect](/reference/operations#remove-redirect) | | GET | `/sites/{siteId}/settings` | 200 | [Get site settings](/reference/operations#get-site-settings) | | GET | `/sites/{siteId}/domains` | 200 | [List domains](/reference/operations#list-domains) | | POST | `/sites/{siteId}/domains` | 201 | [Add domain](/reference/operations#add-domain) | | POST | `/sites/{siteId}/domains/{domain}/primary` | 200 | [Set primary domain](/reference/operations#set-primary-domain) | | DELETE | `/sites/{siteId}/domains/{domain}` | 200 | [Remove domain](/reference/operations#remove-domain) | | GET | `/conversations` | 200 | [List conversations](/reference/operations#list-conversations) | | GET | `/conversations/{conversationId}/messages` | 200 | [List messages](/reference/operations#list-messages) | | POST | `/conversations/{conversationId}/messages` | 201 | [Send message](/reference/operations#send-message) | | PATCH | `/sites/{siteId}/config` | 200 | [Edit site config](/reference/operations#edit-site-config) | | GET | `/sites/{siteId}/tasks/{taskId}/notifications` | 200 | [Get task notifications](/reference/operations#get-task-notifications) | | PATCH | `/sites/{siteId}/tasks/{taskId}/notifications` | 200 | [Set task notifications](/reference/operations#set-task-notifications) | | GET | `/sites/{siteId}/status` | 200 | [Get site status](/reference/operations#get-site-status) | | GET | `/sites/{siteId}/page-screenshot` | 200 | [Get a page screenshot URL](/reference/operations#get-page-screenshot-url) | | GET | `/sites/{siteId}/pages` | 200 | [List pages](/reference/operations#list-pages) | | GET | `/sites/{siteId}/page` | 200 | [Read page](/reference/operations#read-page) | | GET | `/sites/{siteId}/files` | 200 | [List files](/reference/operations#list-files) | | GET | `/sites/{siteId}/files/{id}` | 200 | [Get file](/reference/operations#get-file) | | GET | `/sites/{siteId}/owner-blocked` | 200 | [List items needing your attention](/reference/operations#list-needs-you) | | GET | `/sites/{siteId}/ideas` | 200 | [List ideas](/reference/operations#list-ideas) | | GET | `/sites/{siteId}/ideas/{id}` | 200 | [Get idea](/reference/operations#get-idea) | | POST | `/sites/{siteId}/ideas/{ideaId}/promote` | 202 | [Promote idea](/reference/operations#promote-idea) | | POST | `/sites/{siteId}/ideas/{ideaId}/dismiss` | 202 | [Dismiss idea](/reference/operations#dismiss-idea) | | PATCH | `/sites/{siteId}/contacts/{contactId}/notifications` | 200 | [Set contact notifications](/reference/operations#set-contact-notifications) | | POST | `/sites/{siteId}/teams/pairing-code` | 201 | [Connect Teams](/reference/operations#connect-teams) | | GET | `/sites/{siteId}/teams/installation` | 200 | [Get Teams connection](/reference/operations#get-teams-connection) | | POST | `/sites/{siteId}/builds/{buildId}/approve` | 200 | [Approve build](/reference/operations#approve-build) | | POST | `/sites/{siteId}/builds/{buildId}/revision` | 200 | [Request build revision](/reference/operations#request-build-revision) | ## Lists and records Lists return `items` and, where paginated, an opaque `next` cursor. Read operations return the requested record. Use the documented site and record IDs to select what to access. --- # MCP tool reference Connect using the [MCP guide](/api/mcp), then call `tools/list` for the input schema available to your credential. “Bound input” is supplied by a site credential; omit it from your arguments when bound. An account credential must supply unbound site identifiers required by its discovered schema. <table class="mcp-tools" v-pre> <thead><tr><th scope="col">Tool</th><th scope="col">Action</th><th scope="col">Bound input</th></tr></thead> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-platform-status"><code>get_platform_status</code></a></th><td><a href="/reference/operations#get-platform-status">Get platform status</a></td><td>—</td></tr> <tr class="mcp-tool-description"><td colspan="3">Whether the platform's own upstream services are degraded right now, in customer terms: assistant (AI features), siteChanges (builds, deploys, and requested changes landing on the site), and conversations (message history). Use this when something platform-wide seems slow or failing, before assuming a problem with one site. The report is cached for up to five minutes; checkedAt is when it was measured. Not a site's own health — use get_site_status for that.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-sites"><code>list_sites</code></a></th><td><a href="/reference/operations#list-sites">List sites</a></td><td>—</td></tr> <tr class="mcp-tool-description"><td colspan="3">List websites available to this credential. An account-level credential receives every site in the account; a site-scoped credential receives only its bound site.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-site"><code>get_site</code></a></th><td><a href="/reference/operations#get-site">Get site</a></td><td><code>id</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Get the site: name, status (provisioning, building, ready, active, paused, archived, failed, migrated), primaryDomain, timezone, planStatus, and its switches: privateMode with the gate password privateAuthSecret, geoBlocking with blockedCountries, smsEnabled, chatSmsEnabled, and chatHandoffEnabled. Read it before changing any of those switches.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#create-site"><code>create_site</code></a></th><td><a href="/reference/operations#create-site">Create site</a></td><td>—</td></tr> <tr class="mcp-tool-description"><td colspan="3">Create a new website. Returns the created site in 'provisioning' status; repo and hosting setup run asynchronously — poll get_site until status is 'building', which means setup finished and a Site Star builder is now designing the site. The site reaches 'ready' only after the customer approves the builder's draft, and can be launched (go-live) only from there.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#set-site-privacy"><code>set_site_privacy</code></a></th><td><a href="/reference/operations#set-site-privacy">Set site privacy</a></td><td><code>id</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Turn the site's password gate on or off (privateMode). true means visitors need the gate password (privateAuthSecret from get_site); false makes the site public. A site that has not launched stays gated regardless, so turning privacy off before launch only takes effect at launch. Reaches the edge within seconds.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#set-geo-blocking"><code>set_geo_blocking</code></a></th><td><a href="/reference/operations#set-geo-blocking">Set country restrictions</a></td><td><code>id</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Set which countries are blocked from visiting the site. geoBlocking '' restores the Site Star default list, 'off' blocks no country, and 'custom' blocks exactly blockedCountries (1 to 50 two-letter ISO codes such as ['CN','RU']) with no defaults added. A custom list replaces the previous one, so read get_site first and include every country that should stay blocked. Reaches the edge within seconds.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#set-sms-enabled"><code>set_sms_enabled</code></a></th><td><a href="/reference/operations#set-sms-enabled">Set SMS enabled</a></td><td><code>id</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Turn texting the site's assistant on or off (smsEnabled). On resumes the site's paused number or buys a new one; off pauses the number without releasing it. Turning it on needs a paid site plan (refused with PAYMENT_REQUIRED) and room in the plan (LIMIT_EXCEEDED). Any failure leaves the setting unchanged. After turning it on, list_inbound_addresses shows the number.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#set-chat-sms-enabled"><code>set_chat_sms_enabled</code></a></th><td><a href="/reference/operations#set-chat-sms-enabled">Set chat SMS enabled</a></td><td><code>id</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Pause or resume the visitor-facing text number that live chat continues on (chatSmsEnabled). It only switches a number Site Star support already set up: turning it on without one is refused with PUBLIC_SMS_NOT_PROVISIONED and nothing changes. get_chat_sms_sender shows whether a number exists.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#set-chat-handoff-enabled"><code>set_chat_handoff_enabled</code></a></th><td><a href="/reference/operations#set-chat-handoff-enabled">Set chat handoff enabled</a></td><td><code>id</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Choose whether the site's public chat assistant may hand a visitor conversation to the owner's team (chatHandoffEnabled). When on, the chat assistant can pause itself and email the contacts who receive notifications. When off, it keeps answering visitors on its own. On by default.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-chat-sms-sender"><code>get_chat_sms_sender</code></a></th><td><a href="/reference/operations#get-chat-sms-sender">Get chat SMS sender</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Read a site's visitor-texting (SMS) setup: whether a text number has been provisioned for the site, the legal sender it belongs to, the number, and whether it is active or paused. Numbers are set up by Sitestar support, not by this tool.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#update-site-config"><code>update_site_config</code></a></th><td><a href="/reference/operations#update-site-config">Update site config</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Update a site's configuration. Accepts either a section import (subset of the canonical config.json; each section replaces its slot) or a flat dotted-path map (assigned at the addressed path, so an object value replaces everything under it; null deletes; max 100 paths). Never mix the two forms. Call get-site-config first to read the current values and contractId. Call describe-site-config only when you have not already read that contractId; request only the schema sections you will modify, plus the catalog when changing automations.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#edit-site-config"><code>edit_site_config</code></a></th><td><a href="/reference/operations#edit-site-config">Edit site config</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Edit a site's configuration by dotted config.json path, e.g. { "business.telephone": "+15551234567" }. Only paths in describe-site-config's editablePaths are accepted, and only LEAF values: an object value, or null on a path that holds other editable settings (e.g. chat.gate), is rejected with INVALID_CONFIG_PATH because it would replace or delete everything under that path; a whole section key such as "content" is rejected the same way. Nothing is written on rejection. Scalars and arrays replace whole (send the complete list), null deletes a leaf, at most 100 paths per call. Call get-site-config first to read current values. The edit is saved immediately and propagates to the live site automatically within minutes.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#describe-site-config"><code>describe_site_config</code></a></th><td><a href="/reference/operations#describe-site-config">Describe site config</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Discover the settings a site's configuration lets you change: the schema for the EDITABLE part of config.json, site-row settings such as site.timezone included (everything else is left out: managed identity, the Core pin, redirects, and platform-owned keys are not settings you can change here) and editablePaths, the exact dotted paths edit-site-config accepts. This can be large: call it once per contractId, not before every write. Use sections to request only the top-level sections you need; sections alone returns schema only and narrows editablePaths the same way. Use include to request schema, catalog, or both, adding catalog for automation capability ids/defaults/schedules. With no filters the full editable schema and catalog are returned. Source 'backend-current' means the description may be ahead of what the site accepts.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-site-config"><code>get_site_config</code></a></th><td><a href="/reference/operations#get-site-config">Get site config</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Read a site's current settings in config.json shape, pruned to what edit-site-config can change and including the site-row settings it addresses (site.timezone) (managed identity such as site name/url, the Core pin, and redirects are not returned: read the site or list redirects for those), plus resolved automation state and the contractId governing it. Read-modify-write directly. Reuse any describe-site-config result with the same contractId; describe only missing sections when the id changes. Includes settings not yet deployed. Returns 409 SITE_NOT_READY while site setup has not completed.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#generate-site-config"><code>generate_site_config</code></a></th><td><a href="/reference/operations#generate-site-config">Generate site config</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Generate a config.json proposal for a site by reading its live pages. Read-only — review the suggestion and submit accepted parts via update-site-config. Use get-site-config for the current contractId, then describe only the proposed sections when that contract has not already been read.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#approve-build"><code>approve_build</code></a></th><td><a href="/reference/operations#approve-build">Approve build</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Approve the builder's draft of a site, ending the build phase. Only the site owner can call this, and only once a draft has been submitted for review (build status 'in-review'). On success the site moves from 'building' to 'ready', which is what makes go-live possible. Idempotent: approving an already-approved build succeeds.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#request-build-revision"><code>request_build_revision</code></a></th><td><a href="/reference/operations#request-build-revision">Request build revision</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Send a site build's draft back to the builder with feedback. Only valid while a draft is under review (build status 'in-review'). Increments the revision round; the counter is computed server-side and cannot be supplied by the caller.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#golive-site"><code>golive_site</code></a></th><td><a href="/reference/operations#golive-site">Launch a site with MCP</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Launch a built site (the pay-on-go-live billing event). Call without confirm to preview the charge; call with confirm=true to commit it. May return a Stripe Checkout URL when no subscription exists yet. Failures return {message, code} and, when the caller has something to choose, a `details` object: SUBSCRIPTION_CHOICE_REQUIRED (409) — the account holds more than one subscription and one must be picked; details.subscriptions[] = [{id, status, paymentMethod, siteCount}]. SUBSCRIPTION_FULL (409) — the subscription already carries Stripe's maximum of 20 sites; details.subscriptionId is the full one and details.subscriptions[] the alternatives. SUBSCRIPTION_NOT_ATTACHABLE (409) — the named subscription is not this account's, or cannot take a new site. PAYMENT_FAILED_STATE (402) — that subscription has a failed payment; the card must be fixed first (it is never re-routed to a new subscription). Also PAYMENT_DECLINED (402), INVALID_PROMO_CODE (400), LAUNCH_IN_PROGRESS / LAUNCH_CONFLICT (409), SITE_NOT_READY (409). Choosing WHICH subscription pays is a human step in the billing UI: this tool has no subscription field, so on SUBSCRIPTION_CHOICE_REQUIRED or SUBSCRIPTION_FULL, report the choice to the user instead of retrying.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-tasks"><code>list_tasks</code></a></th><td><a href="/reference/operations#list-tasks">List tasks</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">List the site's tasks, newest first, one page at a time (limit, then next). A task is a piece of work the site is doing for the owner. status is requested, working, done, or live, or ends as failed or canceled; requestSource says whether the owner or the website asked. A page is never a complete picture of open work: for what is in progress or waiting on the owner, use list_needs_you.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-task"><code>get_task</code></a></th><td><a href="/reference/operations#get-task">Get task</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Get one task by id from list_tasks or list_needs_you: title, description, status with statusChangedAt, origin, requestSource, and discussionConversationId. Pass that conversation id to list_messages to read the task's update thread. An unknown id returns 404.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#create-task"><code>create_task</code></a></th><td><a href="/reference/operations#create-task">Create task</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Create a customer task on a site. idempotencyKey makes retries safe — the same key returns the original task.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#set-task-status"><code>set_task_status</code></a></th><td><a href="/reference/operations#set-task-status">Set task status</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Transition a task to a new product status. Repeating the current status is idempotent and does not advance transition identity.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#cancel-task"><code>cancel_task</code></a></th><td><a href="/reference/operations#cancel-task">Cancel task</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Cancel a task that has not shipped: stops the work in progress on it, then settles the task as canceled. Idempotent — canceling an already-canceled task succeeds. Refused with 409 ALREADY_SHIPPED when the task is done or live, OR when any part of its work already went out or is about to (even if the task still shows as in progress); revert shipped work with a new task instead. A success therefore means nothing shipped.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-task-notifications"><code>get_task_notifications</code></a></th><td><a href="/reference/operations#get-task-notifications">Get task notifications</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">List one task's notification routes — who gets updates about this task, on which channel (email, sms, webhook), at which address, and whether each route is active or disabled. Routes are created automatically from how the task was requested and from thread participation, and explicitly via set-task-notifications.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#set-task-notifications"><code>set_task_notifications</code></a></th><td><a href="/reference/operations#set-task-notifications">Set task notifications</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Enable or disable ONE contact's notification route for ONE task, per channel (email or sms). The destination is always the address on the contact's row — a caller can never supply an address. Disabling turns off every route that contact holds on that channel for the task, and thread participation can never silently re-enable it; only an explicit enable can. Enabling refuses with the blocker named when it would be a dead switch: NO_EMAIL_ON_RECORD / NO_PHONE_ON_RECORD (address missing on the contact), NOTIFICATIONS_DISABLED (the contact's global receivesNotifications is off), CONTACT_DISABLED, SMS_PAUSED (site texting turned off), SMS_NOT_PROVISIONED (site has no text number). A platform user may target any contact; an authorized site contact on the agent surface may target only their own routes; anyone else is refused.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-site-activity"><code>list_site_activity</code></a></th><td><a href="/reference/operations#list-site-activity">List site activity</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">List one feed tier of the site's activity timeline, newest first. Every row includes a server-rendered headline plus its subject title.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-site-events"><code>list_site_events</code></a></th><td><a href="/reference/operations#list-site-events">List site events</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">The site's inbox, newest first: everything visitors sent through the site. kind 'form-submission' rows carry formType, pagePath, email, phone, the submitted fields in payload, and spamVerdict ('' not yet assessed, 'ham', or 'spam'). kind 'conversation' rows are visitor chats and texts; their sourceId is the visitorConversationId that list_visitor_messages takes. Page with limit and next. For one kind only, use list_site_events_by_kind.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-site-events-by-kind"><code>list_site_events_by_kind</code></a></th><td><a href="/reference/operations#list-site-events-by-kind">List site events by kind</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">The site's inbox filtered to one kind, newest first. kind 'form-submission' returns form fills (formType, pagePath, email, phone, the submitted fields in payload, spamVerdict). kind 'conversation' returns visitor chat and text conversations (sourceId is the visitorConversationId that list_visitor_messages takes). Page with limit and next.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-visitor-messages"><code>list_visitor_messages</code></a></th><td><a href="/reference/operations#list-visitor-messages">List visitor messages</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Read the transcript of one VISITOR conversation — a person chatting with the website's live-chat widget or texting the site's number (NOT the owner's own conversation with Site Star; use list_messages for that). visitorConversationId comes from the site's inbox (site events of kind 'conversation'). Newest first by default; pass order=asc for reading order. Each message says who wrote it: the visitor, the site's automated agent, or a person replying from the dashboard.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#send-visitor-message"><code>send_visitor_message</code></a></th><td><a href="/reference/operations#send-visitor-message">Send visitor message</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Reply to a VISITOR in one of the website's live-chat or SMS conversations, as the business. The visitor sees it in their chat widget immediately, or as a text message for SMS conversations. Use this only when the owner has told you what to say to that visitor; it does not pause the site's automated agent — call set_visitor_chat_mode with agentMode=paused first if the owner wants to handle the conversation alone.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#set-visitor-chat-mode"><code>set_visitor_chat_mode</code></a></th><td><a href="/reference/operations#set-visitor-chat-mode">Set visitor chat mode</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Take a visitor conversation over from the website's automated agent (agentMode=paused: the agent stops replying and a person answers via send_visitor_message) or hand it back (agentMode=auto). Visitors keep being able to write either way; paused only changes who answers.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-analytics"><code>get_analytics</code></a></th><td><a href="/reference/operations#get-analytics">Get analytics</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Get one site's traffic analytics from the hosting platform. totals = pageviews, unique visitors, new visitors and sessions per time bucket (defaults to the last 7 days of daily buckets, today included). Breakdowns: type (events per type), channel (sessions per acquisition channel), device (per device class), path (pageviews per page), country (per viewer country), source (sessions per referrer host), campaign (sessions per utm_campaign). path/country/source/campaign are by day (up to 31), month (up to 24) or all-time, never by year; their rows are the top values over the whole range, every bucket included. Answers are shared for five minutes.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-site-requests"><code>get_site_requests</code></a></th><td><a href="/reference/operations#get-site-requests">Get site requests</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Get one site's request-log numbers from the hosting platform: every page-level request CloudFront saw, bots included. A DIFFERENT count from get_analytics (which is what browsers running the site script reported) — never add or compare the two as the same thing. totals = requests, beaconSeen, and humanPageviews/humanBeaconSeen per bucket (browser measurement coverage = humanBeaconSeen / humanPageviews, a lower bound, not an ad-block rate; when humanPageviews is 0 there is no coverage figure — unavailable, not 0%). kind = requests per pageview, not_found, server_error or redirect, bots included. bot = requests per bot name (none = humans, sitestar = Site Star's own tooling). landingPath / errorPath = requests per page for pageviews / not-founds, bots included. host / country / campaign = human requests per hostname, country code or utm_campaign. bot, landingPath, errorPath, host, country and campaign are by day (up to 31), month (up to 24) or all-time, never by year; their rows are the top values over the whole range. Every answer carries meta: buckets after completeThrough are still arriving; days before historyStart are unavailable, not zero; coverage before coverageAvailableFrom is unavailable, not 0%. Answers are shared for five minutes.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-site-status"><code>get_site_status</code></a></th><td><a href="/reference/operations#get-site-status">Get site status</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Read one site's current health in one call: lifecycle and billing state, a bounded live HTTPS probe, domain verification state, latest published release, build state, and configuration propagation state. Each dependent source degrades independently instead of hiding the rest of the answer.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-page-screenshot"><code>get_page_screenshot</code></a></th><td><a href="/reference/operations#get-page-screenshot">View a page screenshot</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">LOOK AT one published page: returns the deploy-captured screenshot as an image you can actually see, plus its metadata. viewport 'desktop' (default) or 'mobile'. Use this for any visual or design question (colors, layout, spacing, how a section reads on a phone) rather than answering from the page's text. Shows the LIVE deployed site as captured at its last deploy, so pending changes are not in it. SCREENSHOTS_UNAVAILABLE means the current deploy predates screenshots; SCREENSHOT_NOT_CAPTURED means that route has no current screenshot.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-pages"><code>list_pages</code></a></th><td><a href="/reference/operations#list-pages">List pages</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">List the published site's pages from the live content inventory (route, title, description, type). Reflects the currently deployed site.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#read-page"><code>read_page</code></a></th><td><a href="/reference/operations#read-page">Read page</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Read one published page's content as clean text, by route (e.g. '/', '/about', '/blog/my-post'). Reflects the currently deployed site, not pending changes.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-files"><code>list_files</code></a></th><td><a href="/reference/operations#list-files">List files</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">List files uploaded to this site (images, documents), newest first. Screenshots and other machine-made files are excluded. Each row has id, name, contentType, kind, contentLength, and a generated caption once processed. Pass an id to get_file to read the file, or to create_task as an attachment. Page with limit and next.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-file"><code>get_file</code></a></th><td><a href="/reference/operations#get-file">Get file</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Get one uploaded file only when it belongs to the requested site.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-site-changes"><code>list_site_changes</code></a></th><td><a href="/reference/operations#list-site-changes">List site changes</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">List the site's changes, newest first, one page at a time. A change is a concrete update delivered for one task (taskId). status is draft, waiting-for-review, changes-requested, approved-applying, queued-for-release, live, or canceled; summary describes the current revision. Use it for recent or in-progress delivery work. It is not the source for what awaits the owner's review: that is list_needs_you, and verdicts go through decide_change.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-change-decisions"><code>get_change_decisions</code></a></th><td><a href="/reference/operations#get-change-decisions">Get change decisions</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">List the review decisions recorded on one change, newest first: outcome ('approved' or 'changes_requested'), who decided (userId, or contact:<id> for a site contact), the note in body, and the reviewed revision (headSha) and reviewCycle. Decisions are permanent history, and only one matching the change's current revision AND review cycle counts: an approval of an older revision does not approve a newer one, and a reopened change needs a fresh decision even at the same revision. Take changeId from list_site_changes or list_needs_you.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#decide-change"><code>decide_change</code></a></th><td><a href="/reference/operations#decide-change">Decide change</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Record the customer's review verdict on a site change's current revision. 'approved' initiates the SHA-guarded merge; 'changes_requested' sends it back. Requires an identified decider: an authenticated platform user, or (agent surface only) an authorized site contact.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-needs-you"><code>list_needs_you</code></a></th><td><a href="/reference/operations#list-needs-you">List items needing your attention</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">THE authoritative answer to 'where are we at' — two complete sets in one call: `items` is everything blocked on the owner's decision (oldest first), `inFlight` is every open piece of work the site owes them — requested or working tasks, changes being prepared or landing, a build in progress (newest first). Call this before saying anything about what is or is not pending; never infer that from the activity feed, which records what happened rather than what is still open. You may state that nothing is waiting on the owner ONLY if this call succeeded and `items` is empty, and that nothing is in progress ONLY if it succeeded and `inFlight` is empty — an empty `items` alone means no DECISION is pending, never that nothing is happening. If it errors, say you could not check — an error never means nothing is pending.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-ideas"><code>list_ideas</code></a></th><td><a href="/reference/operations#list-ideas">List ideas</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">List the site's ideas, newest first: proposals the owner may accept, dismiss, or turn into work. status is proposed, promoting, accepted, dismissed, or withdrawn; taskId is set once an idea became a task. Use it for the history of suggestions. It is a page, so for ideas still awaiting a decision use list_needs_you, then promote_idea or dismiss_idea.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-idea"><code>get_idea</code></a></th><td><a href="/reference/operations#get-idea">Get idea</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Get one idea by id from list_ideas or list_needs_you: title, summary, status, and taskId when it was promoted into a task. An unknown id returns 404.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#promote-idea"><code>promote_idea</code></a></th><td><a href="/reference/operations#promote-idea">Promote idea</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Promote a proposed site idea into a customer task. Returns an acknowledgment; promotion completes asynchronously.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#dismiss-idea"><code>dismiss_idea</code></a></th><td><a href="/reference/operations#dismiss-idea">Dismiss idea</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Dismiss a proposed site idea. Returns an acknowledgment; dismissal completes asynchronously.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-contacts"><code>list_contacts</code></a></th><td><a href="/reference/operations#list-contacts">List contacts</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">List the people associated with this site, in no particular order: id, name, email, phoneNumber, status ('active', or 'disabled' which mutes the contact everywhere), receivesNotifications (alerts and form messages), receivesReports (scheduled reports), canEmailSite and canTextSite (may command the site by email or text), and preferredChannel. Use it to find a contact's id before changing that contact.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#add-contact"><code>add_contact</code></a></th><td><a href="/reference/operations#add-contact">Add contact</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Add a person to this site. Needs an email or a phoneNumber in E.164 form (e.g. +15125550100); name is optional. New contacts are active and get notifications and reports unless those flags are set false. canEmailSite and canTextSite let the person command the site, default to false, and should be set only when the owner asked; canTextSite needs a phoneNumber. An email that is already a contact is refused with 409, and a phone number already on another contact is refused.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#set-contact-status"><code>set_contact_status</code></a></th><td><a href="/reference/operations#set-contact-status">Set contact status</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Set one contact's status by id from list_contacts. 'disabled' mutes them everywhere (no notifications, reports, or commands by text or phone) while keeping their settings; 'active' restores them. Prefer this over remove_contact for a temporary pause.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#remove-contact"><code>remove_contact</code></a></th><td><a href="/reference/operations#remove-contact">Remove contact</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Permanently remove one contact by id from list_contacts. They stop hearing from the site and lose any power to command it. To pause someone instead, use set_contact_status. A contact's email cannot be edited, so changing it means removing the contact and adding them again.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#set-contact-notifications"><code>set_contact_notifications</code></a></th><td><a href="/reference/operations#set-contact-notifications">Set contact notifications</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Change one site contact's notification preferences (receivesNotifications, receivesReports) and their channel directive (preferredChannel with an optional from/through calendar window). A platform user may target any contact of the site; an authorized site contact on the agent surface may target only their own row; anyone else is refused.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-inbound-addresses"><code>list_inbound_addresses</code></a></th><td><a href="/reference/operations#list-inbound-addresses">List inbound addresses</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">List the addresses that route to this site: type 'email' (a custom email alias), 'sms' (the number contacts text the assistant at), or 'public-sms' (the visitor live-chat text number), each with address and status (pending, active, paused, released). The site's standard email address is not listed. Use it to answer what number to text the site at.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-redirects"><code>list_redirects</code></a></th><td><a href="/reference/operations#list-redirects">List redirects</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">List the site's URL redirect rules, in no particular order: id, from (a site path) and to (a site path or http(s) URL), each served as a 301. Read it before adding or changing a rule so the new rule never contradicts an existing one.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#add-redirect"><code>add_redirect</code></a></th><td><a href="/reference/operations#add-redirect">Add redirect</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Add a URL redirect rule. from is a site path such as /old-page with no query string or fragment; to is a site path or an absolute http(s) URL, and cannot equal from. A from that already has a rule is refused with 409: use set_redirect_target to change it. A site holds at most 500 rules. The rule goes live at the site's next publish and rebuild, and that build fails loudly if from is still a live page, to does not resolve, or rules loop.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#set-redirect-target"><code>set_redirect_target</code></a></th><td><a href="/reference/operations#set-redirect-target">Set redirect target</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Change where an existing redirect rule points (to), by id from list_redirects. The from path cannot change: remove the rule and add a new one instead. Takes effect at the site's next publish and rebuild.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#remove-redirect"><code>remove_redirect</code></a></th><td><a href="/reference/operations#remove-redirect">Remove redirect</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Remove one redirect rule by id from list_redirects. Its from path stops redirecting at the site's next publish and rebuild.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-site-settings"><code>get_site_settings</code></a></th><td><a href="/reference/operations#get-site-settings">Get site settings</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Read the site’s settings.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-domains"><code>list_domains</code></a></th><td><a href="/reference/operations#list-domains">List domains</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">List a site's domains with status and the DNS records to publish for pending verifications.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#add-domain"><code>add_domain</code></a></th><td><a href="/reference/operations#add-domain">Add domain</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Attach a custom hostname to a site. Returns the domain in 'pending_dns' with the DNS records the owner must publish.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#set-primary-domain"><code>set_primary_domain</code></a></th><td><a href="/reference/operations#set-primary-domain">Set primary domain</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Make an already-active hostname the site's primary domain.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#remove-domain"><code>remove_domain</code></a></th><td><a href="/reference/operations#remove-domain">Remove domain</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Detach a custom hostname from a site.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-conversations"><code>list_conversations</code></a></th><td><a href="/reference/operations#list-conversations">List conversations</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">List the owner's conversations with Site Star about this site: id, purpose (general, task, change, idea, report, feedback, notification, review), subjectId (the task, change, or idea discussed), status ('active' or 'closed'), summary, and lastMessageAt. Read one with list_messages. Visitor chats with the website are not here; they are in list_site_events.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#send-message"><code>send_message</code></a></th><td><a href="/reference/operations#send-message">Send message</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Send a user message into a site conversation. The assistant reply is generated asynchronously — poll list-messages. idempotencyKey makes retries safe.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#list-messages"><code>list_messages</code></a></th><td><a href="/reference/operations#list-messages">List messages</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">List messages in a conversation, newest first by default. Paginate with the returned 'next' cursor.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#connect-teams"><code>connect_teams</code></a></th><td><a href="/reference/operations#connect-teams">Connect Teams</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Mint a short-lived pairing code that links a Microsoft Teams channel to this site. The owner types `connect <code>` in the Teams channel they want the site's visitor conversations to appear in. The code expires in 15 minutes and works once. Use it when the owner asks to connect Teams; it does not connect anything on its own.</td></tr> </tbody> <tbody> <tr class="mcp-tool-heading"><th scope="row"><a href="/reference/operations#get-teams-connection"><code>get_teams_connection</code></a></th><td><a href="/reference/operations#get-teams-connection">Get Teams connection</a></td><td><code>siteId</code></td></tr> <tr class="mcp-tool-description"><td colspan="3">Read whether this site has a Microsoft Teams channel connected, and its health. `installation` is null when nothing is connected. A status of `error` with `lastErrorCode` means Teams is refusing our posts and the owner must reconnect. `events` lists what the channel receives.</td></tr> </tbody> </table> ## Results Inspect the tool result through your MCP client, including its error indicator. Operation result schemas describe the product payload before MCP transport wrapping. A tool may return text, structured data, or resource content according to its discovered contract. --- # Action reference Input schemas describe the complete product operation. HTTP supplies path fields from the URL; MCP can supply site fields from credential binding. Result schemas describe the operation payload, returned directly as HTTP JSON, or carried inside MCP tool content. Runtime `tools/list` reflects credential-specific site binding. ## Add contact {#add-contact} Add a person to this site. Needs an email or a phoneNumber in E.164 form (e.g. +15125550100); name is optional. New contacts are active and get notifications and reports unless those flags are set false. canEmailSite and canTextSite let the person command the site, default to false, and should be set only when the owner asked; canTextSite needs a phoneNumber. An email that is already a contact is refused with 409, and a phone number already on another contact is refused. - HTTP: `POST /sites/{siteId}/contacts` - MCP: `add_contact` Required permissions: `site_contact:create`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | Default: "$function.ulid()". | | `id` | string | No | Default: "$function.ulid()". | | `email` | string | No | The contact's email address (lowercase; immutable — re-add to change). | | `phoneNumber` | string / null | No | The contact's canonical E.164 SMS number; null when cleared. | | `name` | string | No | Display name for the contact (optional). Default: "". | | `receivesNotifications` | boolean | No | Gets operational notifications (alerts, form messages). Default: true. | | `receivesReports` | boolean | No | Gets scheduled reports (e.g. the weekly email). Default: true. | | `canEmailSite` | boolean | No | May send commands to the site's agent by email (inbound authorization). Default: false. | | `canTextSite` | boolean | No | May send commands to the site's agent by SMS (inbound authorization). Default: false. | ### Input schema ```json { "type": "object", "properties": { "siteId": { "type": "string", "pattern": "^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$", "minLength": 26, "maxLength": 26, "default": "$function.ulid()" }, "id": { "type": "string", "pattern": "^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$", "minLength": 26, "maxLength": 26, "default": "$function.ulid()" }, "email": { "type": "string", "description": "The contact's email address (lowercase; immutable — re-add to change).", "pattern": "^[^\\s@A-Z,;<>\"()\\[\\]\\\\]+@[^\\s@A-Z,;<>\"()\\[\\]\\\\.]+(\\.[^\\s@A-Z,;<>\"()\\[\\]\\\\.]+)+$", "minLength": 6, "maxLength": 254 }, "phoneNumber": { "type": [ "string", "null" ], "description": "The contact's canonical E.164 SMS number; null when cleared.", "pattern": "^\\+[1-9][0-9]{1,14}$", "maxLength": 16 }, "name": { "type": "string", "description": "Display name for the contact (optional).", "maxLength": 200, "default": "" }, "receivesNotifications": { "type": "boolean", "description": "Gets operational notifications (alerts, form messages).", "default": true }, "receivesReports": { "type": "boolean", "description": "Gets scheduled reports (e.g. the weekly email).", "default": true }, "canEmailSite": { "type": "boolean", "description": "May send commands to the site's agent by email (inbound authorization).", "default": false }, "canTextSite": { "type": "boolean", "description": "May send commands to the site's agent by SMS (inbound authorization).", "default": false } }, "required": [ "siteId" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "email": { "type": "string" }, "phoneNumber": { "type": [ "string", "null" ] }, "name": { "type": "string" }, "receivesNotifications": { "type": "boolean" }, "receivesReports": { "type": "boolean" }, "canEmailSite": { "type": "boolean" }, "canTextSite": { "type": "boolean" }, "status": { "type": "string" }, "preferredChannel": { "type": "string" }, "preferredChannelFrom": { "type": "string" }, "preferredChannelThrough": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } ``` ## Add domain {#add-domain} Attach a custom hostname to a site. Returns the domain in 'pending_dns' with the DNS records the owner must publish. - HTTP: `POST /sites/{siteId}/domains` - MCP: `add_domain` Required permissions: `invoke.sitestar:add-domain`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | The site to attach the hostname to. | | `domain` | string | Yes | Custom hostname to attach (normalized to lowercase server-side). | ### Input schema ```json { "type": "object", "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1, "description": "The site to attach the hostname to." }, "domain": { "type": "string", "minLength": 1, "description": "Custom hostname to attach (normalized to lowercase server-side)." } }, "required": [ "siteId", "domain" ] } ``` ### Result schema ```json { "type": "object", "additionalProperties": false, "properties": { "domain": { "type": "object", "required": [ "domain", "type", "isPrimary", "status", "statusReason", "verification", "created", "modified" ], "properties": { "domain": { "type": "string" }, "type": { "type": "string", "enum": [ "custom", "platform" ] }, "isPrimary": { "type": "boolean" }, "status": { "type": "string", "enum": [ "pending_dns", "verifying", "active", "failed" ] }, "statusReason": { "type": "string" }, "verification": { "type": "object", "required": [ "records" ], "properties": { "records": { "type": "array", "items": { "type": "object", "required": [ "type", "host", "value" ], "properties": { "type": { "type": "string" }, "host": { "type": "string" }, "value": { "type": "string" } } } }, "plan": { "type": "object" } } }, "created": { "type": "string" }, "modified": { "type": "string" } } } }, "required": [ "domain" ] } ``` ## Add redirect {#add-redirect} Add a URL redirect rule. from is a site path such as /old-page with no query string or fragment; to is a site path or an absolute http(s) URL, and cannot equal from. A from that already has a rule is refused with 409: use set_redirect_target to change it. A site holds at most 500 rules. The rule goes live at the site's next publish and rebuild, and that build fails loudly if from is still a live page, to does not resolve, or rules loop. - HTTP: `POST /sites/{siteId}/redirects` - MCP: `add_redirect` Required permissions: `site_redirect:create`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | Default: "$function.ulid()". | | `from` | string | Yes | Source path, normalized (leading /, no trailing slash except root; immutable — re-add to change). Default: "". | | `to` | string | Yes | Target: a site-relative path or an absolute http(s) URL. Default: "". | | `id` | string | No | Default: "$function.ulid()". | ### Input schema ```json { "type": "object", "properties": { "siteId": { "type": "string", "pattern": "^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$", "minLength": 26, "maxLength": 26, "default": "$function.ulid()" }, "from": { "type": "string", "description": "Source path, normalized (leading /, no trailing slash except root; immutable — re-add to change).", "pattern": "^(?!.*/\\.{1,2}(/|$))(/|/[^\\s?#\\\\]*[^\\s?#/\\\\])$", "minLength": 1, "maxLength": 512, "default": "" }, "to": { "type": "string", "description": "Target: a site-relative path or an absolute http(s) URL.", "pattern": "^(/(?!/)\\S*|https?://\\S+)$", "minLength": 1, "maxLength": 512, "default": "" }, "id": { "type": "string", "pattern": "^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$", "minLength": 26, "maxLength": 26, "default": "$function.ulid()" } }, "required": [ "siteId", "from", "to" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "from": { "type": "string" }, "to": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } ``` ## Approve build {#approve-build} Approve the builder's draft of a site, ending the build phase. Only the site owner can call this, and only once a draft has been submitted for review (build status 'in-review'). On success the site moves from 'building' to 'ready', which is what makes go-live possible. Idempotent: approving an already-approved build succeeds. - HTTP: `POST /sites/{siteId}/builds/{buildId}/approve` - MCP: `approve_build` Required permissions: `invoke.sitestar:approve-build`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `buildId` | string | No | Optional; defaults to the site's current build. | ### Input schema ```json { "type": "object", "required": [ "siteId" ], "additionalProperties": false, "description": "Approve a site build. buildId defaults to the site's current (newest) build; pass it explicitly to approve a specific one, which will fail if that build is no longer the one awaiting review. Rejected with 409 build-not-approvable when no draft has been submitted yet, and 403 when there is no authenticated user to attribute the approval to.", "properties": { "siteId": { "type": "string", "minLength": 1 }, "buildId": { "type": "string", "minLength": 1, "description": "Optional; defaults to the site's current build." } } } ``` ### Result schema ```json { "type": "object", "required": [ "build", "site", "alreadyApproved" ], "description": "The approved build row and the released site row, both read back after the transaction.", "properties": { "build": { "type": "object", "description": "The site_build row, now in status 'approved'.", "required": [ "id", "siteId", "status", "created", "modified" ], "additionalProperties": false, "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "status": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" }, "builderName": { "type": "string" }, "assignedAt": { "type": "string" }, "draftPromisedAt": { "type": "string" }, "draftDeliveredAt": { "type": "string" }, "draftConfigVersion": { "type": "string" }, "intakeCompletedAt": { "type": "string" }, "revisionCount": { "type": "number" }, "revisionRequestedAt": { "type": "string" }, "revisionNote": { "type": "string" }, "approvedAt": { "type": "string" }, "approvedByUserId": { "type": "string" }, "consultationState": { "type": "string" }, "consultationAt": { "type": "string" } } }, "site": { "type": "object", "description": "Public site summary after the site reaches status 'ready'. Credentials, billing identifiers, infrastructure fields, and tenancy internals are omitted.", "required": [ "id", "siteKey", "name", "status", "hostingMode", "created", "modified" ], "additionalProperties": false, "properties": { "id": { "type": "string" }, "siteKey": { "type": "string" }, "name": { "type": "string" }, "primaryDomain": { "type": [ "string", "null" ] }, "status": { "type": "string", "enum": [ "provisioning", "building", "ready", "active", "paused", "archived", "failed", "migrated" ] }, "hostingMode": { "type": "string", "enum": [ "managed", "external" ] }, "privateMode": { "type": "boolean" }, "created": { "type": "string" }, "modified": { "type": "string" } } }, "alreadyApproved": { "type": "boolean", "description": "True when the build was already approved before this call (idempotent replay), false when this call performed the approval." } }, "additionalProperties": false } ``` ## Cancel task {#cancel-task} Cancel a task that has not shipped: stops the work in progress on it, then settles the task as canceled. Idempotent — canceling an already-canceled task succeeds. Refused with 409 ALREADY_SHIPPED when the task is done or live, OR when any part of its work already went out or is about to (even if the task still shows as in progress); revert shipped work with a new task instead. A success therefore means nothing shipped. - HTTP: `POST /sites/{siteId}/tasks/{id}/cancel` - MCP: `cancel_task` Required permissions: `invoke.sitestar:cancel-task`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `id` | string | Yes | | ### Input schema ```json { "type": "object", "required": [ "siteId", "id" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "id": { "type": "string", "minLength": 1 } } } ``` ### Result schema ```json { "type": "object", "required": [ "id", "siteId", "status", "alreadyCanceled" ], "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "status": { "type": "string", "description": "Always canceled on success — shipped work is refused (409 ALREADY_SHIPPED), never settled as canceled." }, "statusChangedAt": { "type": "string" }, "alreadyCanceled": { "type": "boolean", "description": "True when the task was already canceled — the call was a no-op replay." } } } ``` ## Connect Teams {#connect-teams} Mint a short-lived pairing code that links a Microsoft Teams channel to this site. The owner types `connect <code>` in the Teams channel they want the site's visitor conversations to appear in. The code expires in 15 minutes and works once. Use it when the owner asks to connect Teams; it does not connect anything on its own. - HTTP: `POST /sites/{siteId}/teams/pairing-code` - MCP: `connect_teams` Required permissions: `invoke.sitestar:create-site-teams-pairing-code`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | ### Input schema ```json { "type": "object", "required": [ "siteId" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 } } } ``` ### Result schema ```json { "type": "object", "required": [ "code", "expiresAt", "instructions" ], "additionalProperties": false, "properties": { "code": { "type": "string" }, "expiresAt": { "type": "string" }, "instructions": { "type": "string" } } } ``` ## Create site {#create-site} Create a new website. Returns the created site in 'provisioning' status; repo and hosting setup run asynchronously — poll get_site until status is 'building', which means setup finished and a Site Star builder is now designing the site. The site reaches 'ready' only after the customer approves the builder's draft, and can be launched (go-live) only from there. - HTTP: `POST /sites` - MCP: `create_site` Required permissions: `invoke.sitestar:create-site`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | Yes | Display name for the new site. | | `hostingMode` | string | No | Where the site repo lives: Site Star org (managed) or the customer's own org (external). Allowed: "managed", "external". Default: "managed". | | `id` | string | No | Optional caller-supplied ULID; server-generated when omitted. | | `onboardingDomain` | string | No | The customer's EXISTING website hostname (e.g. acmeplumbing.com). Optional. Stored unverified and used to read that site for setting suggestions; it is never made the site's primary domain. Rejected with INVALID_HOSTNAME if malformed. | ### Input schema ```json { "type": "object", "required": [ "name" ], "additionalProperties": false, "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Display name for the new site." }, "hostingMode": { "type": "string", "enum": [ "managed", "external" ], "default": "managed", "description": "Where the site repo lives: Site Star org (managed) or the customer's own org (external)." }, "id": { "type": "string", "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$", "description": "Optional caller-supplied ULID; server-generated when omitted." }, "onboardingDomain": { "type": "string", "maxLength": 253, "description": "The customer's EXISTING website hostname (e.g. acmeplumbing.com). Optional. Stored unverified and used to read that site for setting suggestions; it is never made the site's primary domain. Rejected with INVALID_HOSTNAME if malformed." } } } ``` ### Result schema ```json { "type": "object", "description": "The created site row; setup (repo, hosting) is dispatched asynchronously by the create hook.", "required": [ "id", "siteKey", "name", "status", "hostingMode" ], "properties": { "id": { "type": "string" }, "siteKey": { "type": "string", "pattern": "^[a-z0-9]{9}$", "description": "Short public identifier (server-generated)." }, "name": { "type": "string" }, "status": { "type": "string", "enum": [ "provisioning", "building", "ready", "active", "paused", "archived", "failed", "migrated" ], "description": "Always 'provisioning' on create." }, "hostingMode": { "type": "string", "enum": [ "managed", "external" ] }, "primaryDomain": { "type": [ "string", "null" ] }, "onboardingDomain": { "type": "string", "description": "Normalized hostname the customer supplied at creation; \"\" when none." }, "privateMode": { "type": "boolean" }, "setupJobId": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } } } ``` ## Create task {#create-task} Create a customer task on a site. idempotencyKey makes retries safe — the same key returns the original task. - HTTP: `POST /sites/{siteId}/tasks` - MCP: `create_task` Required permissions: `invoke.sitestar:create-task`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `title` | string | Yes | Trimmed server-side; must be non-empty after trimming. | | `description` | string | No | | | `conversationId` | string | No | Conversation that produced this request (feedback/report provenance). | | `requestMessageId` | string | No | Server-bound canonical request message provenance. | | `idempotencyKey` | string | Yes | Client retry identity; the task id is derived from it, so replays deduplicate. | | `attachmentFileIds` | array | No | Site file ids to attach to the task. They must be this site's customer uploads or link snapshots (not machine artifacts like screenshots); a file already attached to another task is attached again via an internal copy, so reuse is fine. The files are linked to the task and published on its GitHub issue. | ### Input schema ```json { "type": "object", "required": [ "siteId", "title", "idempotencyKey" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "title": { "type": "string", "minLength": 1, "maxLength": 300, "description": "Trimmed server-side; must be non-empty after trimming." }, "description": { "type": "string", "maxLength": 10000 }, "conversationId": { "type": "string", "description": "Conversation that produced this request (feedback/report provenance)." }, "requestMessageId": { "type": "string", "minLength": 1, "maxLength": 64, "description": "Server-bound canonical request message provenance." }, "idempotencyKey": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,64}$", "description": "Client retry identity; the task id is derived from it, so replays deduplicate." }, "attachmentFileIds": { "type": "array", "maxItems": 25, "uniqueItems": true, "items": { "type": "string", "minLength": 1, "maxLength": 64 }, "description": "Site file ids to attach to the task. They must be this site's customer uploads or link snapshots (not machine artifacts like screenshots); a file already attached to another task is attached again via an internal copy, so reuse is fine. The files are linked to the task and published on its GitHub issue." } } } ``` ### Result schema ```json { "type": "object", "required": [ "task", "deduplicated", "reviewPolicy" ], "properties": { "task": { "type": "object", "description": "The created (or idempotently replayed) task row.", "required": [ "id", "siteId", "title", "status" ], "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "status": { "type": "string" }, "discussionConversationId": { "type": "string" } } }, "deduplicated": { "type": "boolean", "description": "True when the idempotency key matched an existing task." }, "reviewPolicy": { "type": "string", "enum": [ "customer", "auto" ], "description": "How this task's changes get accepted. `customer`: the owner approves each change in the Site Star dashboard before it goes live. `auto`: changes go live on their own once internal review passes, with no owner approval step." }, "notifications": { "type": "array", "description": "Every route this task's updates will actually be delivered on (email/sms), including on replays. Empty means nobody is signed up — the normal state for a request made from the dashboard, chat, or a phone call — so offer to set one up with set-task-notifications. Absent if ensuring the request-message notification subscription or reading notification routes failed after the task was created. When absent, do not state notification routes.", "items": { "type": "object", "required": [ "channel", "destination" ], "properties": { "channel": { "type": "string", "enum": [ "email", "sms" ] }, "destination": { "type": "string" }, "contactId": { "type": "string", "description": "Present when the route belongs to a site contact; the id set-task-notifications takes to change it." } } } } } } ``` ## Decide change {#decide-change} Record the customer's review verdict on a site change's current revision. 'approved' initiates the SHA-guarded merge; 'changes_requested' sends it back. Requires an identified decider: an authenticated platform user, or (agent surface only) an authorized site contact. - HTTP: `POST /sites/{siteId}/changes/{changeId}/decisions` - MCP: `decide_change` Required permissions: `invoke.sitestar:decide-change`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `changeId` | string | Yes | | | `siteId` | string | Yes | | | `outcome` | string | Yes | Allowed: "approved", "changes_requested". | | `body` | string | No | Optional review note (trimmed server-side). | | `idempotencyKey` | string | No | | ### Input schema ```json { "type": "object", "required": [ "changeId", "siteId", "outcome" ], "additionalProperties": false, "description": "The customer's review verdict on the change's CURRENT revision. Requires an identified decider in the trusted context — a platform user, or an authorized site contact on the agent surface; anonymous or system-only callers are rejected (403 UNAUTHORIZED).", "properties": { "changeId": { "type": "string", "minLength": 1 }, "siteId": { "type": "string", "minLength": 1 }, "outcome": { "type": "string", "enum": [ "approved", "changes_requested" ] }, "body": { "type": "string", "maxLength": 2000, "description": "Optional review note (trimmed server-side)." }, "idempotencyKey": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9._:-]+$" } } } ``` ### Result schema ```json { "type": "object", "required": [ "changeId", "outcome", "applied", "status" ], "properties": { "changeId": { "type": "string" }, "outcome": { "type": "string", "enum": [ "approved", "changes_requested" ] }, "applied": { "type": "boolean", "description": "Whether the protected merge was initiated (always false for changes_requested)." }, "status": { "type": "string", "description": "The change's status after the decision." }, "headSha": { "type": "string" }, "reviewCycle": { "type": "integer", "minimum": 0 }, "reason": { "type": "string", "enum": [ "revision-advanced", "not-mergeable", "already-applied" ] }, "deduplicated": { "type": "boolean" } } } ``` ## Describe site config {#describe-site-config} Discover the settings a site's configuration lets you change: the schema for the EDITABLE part of config.json, site-row settings such as site.timezone included (everything else is left out: managed identity, the Core pin, redirects, and platform-owned keys are not settings you can change here) and editablePaths, the exact dotted paths edit-site-config accepts. This can be large: call it once per contractId, not before every write. Use sections to request only the top-level sections you need; sections alone returns schema only and narrows editablePaths the same way. Use include to request schema, catalog, or both, adding catalog for automation capability ids/defaults/schedules. With no filters the full editable schema and catalog are returned. Source 'backend-current' means the description may be ahead of what the site accepts. - HTTP: `GET /sites/{siteId}/config/describe` - MCP: `describe_site_config` Required permissions: `invoke.sitestar:describe-site-config`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `include` | See schema | No | Contract parts to return. MCP/JSON callers use an array; REST query callers use a comma-separated string. Both when omitted, except sections alone implies schema only. | | `sections` | See schema | No | Top-level config.json sections to retain in the schema projection; only sections with editable settings exist. MCP/JSON callers use an array; REST query callers use a comma-separated string. Requires schema when include is supplied. | ### Input schema ```json { "type": "object", "required": [ "siteId" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "include": { "oneOf": [ { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "enum": [ "schema", "catalog" ] } }, { "type": "string", "pattern": "^\\s*(schema|catalog)(\\s*,\\s*(schema|catalog))*\\s*$" } ], "description": "Contract parts to return. MCP/JSON callers use an array; REST query callers use a comma-separated string. Both when omitted, except sections alone implies schema only." }, "sections": { "oneOf": [ { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "enum": [ "site", "design", "business", "integrations", "content", "automations", "tasks", "chat" ] } }, { "type": "string", "pattern": "^\\s*(site|design|business|integrations|content|automations|tasks|chat)(\\s*,\\s*(site|design|business|integrations|content|automations|tasks|chat))*\\s*$" } ], "description": "Top-level config.json sections to retain in the schema projection; only sections with editable settings exist. MCP/JSON callers use an array; REST query callers use a comma-separated string. Requires schema when include is supplied." } } } ``` ### Result schema ```json { "type": "object", "required": [ "siteId", "coreVersion", "source", "contractsVersion", "contractId", "include", "editablePaths" ], "additionalProperties": false, "properties": { "siteId": { "type": "string" }, "coreVersion": { "type": "string", "description": "The site's stamped deployed-Core version; \"\" when never stamped." }, "source": { "type": "string", "enum": [ "site-pinned", "backend-current" ], "description": "site-pinned: served from the archive at the site's own version. backend-current: the authored current contracts — possibly ahead of what the site's vendored Core accepts." }, "contractsVersion": { "type": "string", "description": "The archived core version serving these contracts; \"\" for backend-current." }, "contractId": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$", "description": "Stable identity of the complete schema and catalog pair. Cache projections by this id plus the echoed include/sections filters." }, "include": { "type": "array", "items": { "type": "string", "enum": [ "schema", "catalog" ] }, "description": "The contract parts this response carries, defaults applied — echoed so the cache key of contractId plus filters is reconstructible from the response alone." }, "sections": { "type": "array", "items": { "type": "string" }, "description": "The sections the schema was projected to; absent when the full schema (or no schema) was returned." }, "editablePaths": { "type": "array", "items": { "type": "string" }, "description": "Every dotted config.json path the dotted-path write form accepts (edit-site-config, or update-site-config's dotted form), narrowed to sections when supplied. Wildcard templates such as automations.*.enabled are returned as written; the capability ids that fill the wildcard are the schema's automations properties. Derived from the backend's allowlist, not the archived contract: take it from the response you act on, never from a cache keyed by contractId." }, "schema": { "type": "object", "description": "JSON Schema (draft 2020-12) for the editable part of the site's config.json, pruned to the subtrees an editable path reaches with required filtered to match and additionalProperties opened on narrowed nodes (guidance, not the site's validation gate), optionally projected to requested sections. Its description texts carry semantics the shape cannot. Omitted when include excludes schema." }, "catalog": { "type": "object", "description": "The automations catalog: capability ids with displayName, category, defaultEnabled, default schedules, and settings defaults. Omitted when include excludes catalog or sections alone requested schema." } } } ``` ## Dismiss idea {#dismiss-idea} Dismiss a proposed site idea. Returns an acknowledgment; dismissal completes asynchronously. - HTTP: `POST /sites/{siteId}/ideas/{ideaId}/dismiss` - MCP: `dismiss_idea` Required permissions: `invoke.sitestar:dismiss-idea`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `ideaId` | string | Yes | | ### Input schema ```json { "type": "object", "required": [ "siteId", "ideaId" ], "additionalProperties": false, "description": "Dismiss a proposed idea. Completion is asynchronous. Returns 409 NOT_PROPOSED when the idea is not eligible, 409 SOURCE_MISSING when its source is unavailable, or 404 NOT_FOUND for an unknown idea.", "properties": { "siteId": { "type": "string", "minLength": 1 }, "ideaId": { "type": "string", "minLength": 1 } } } ``` ### Result schema ```json { "type": "object", "required": [ "status", "sourceUrl" ], "description": "Acknowledgment only (REST surface returns it as 202): the issue close succeeded and the idea row converges asynchronously through the mirror projection pipeline.", "properties": { "status": { "const": "dismissing", "description": "The idea's transitional status after the accepted dismiss." }, "sourceUrl": { "type": "string", "format": "uri", "description": "HTML URL of the idea's source GitHub issue." } } } ``` ## Edit site config {#edit-site-config} Edit a site's configuration by dotted config.json path, e.g. { "business.telephone": "+15551234567" }. Only paths in describe-site-config's editablePaths are accepted, and only LEAF values: an object value, or null on a path that holds other editable settings (e.g. chat.gate), is rejected with INVALID_CONFIG_PATH because it would replace or delete everything under that path; a whole section key such as "content" is rejected the same way. Nothing is written on rejection. Scalars and arrays replace whole (send the complete list), null deletes a leaf, at most 100 paths per call. Call get-site-config first to read current values. The edit is saved immediately and propagates to the live site automatically within minutes. - HTTP: `PATCH /sites/{siteId}/config` - MCP: `edit_site_config` Required permissions: `invoke.sitestar:edit-site-config`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `edits` | object | Yes | Flat map of dotted config.json paths to leaf values, e.g. { "content.brand.voice.prohibitedTerms": ["cheap"], "chat.gate.disclaimer": null }. Every key must be a dotted path from editablePaths; values must be scalars or arrays (never objects); arrays replace whole; null deletes a leaf, not a path with settings under it; at most 100 paths. | ### Input schema ```json { "type": "object", "required": [ "siteId", "edits" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "edits": { "type": "object", "description": "Flat map of dotted config.json paths to leaf values, e.g. { \"content.brand.voice.prohibitedTerms\": [\"cheap\"], \"chat.gate.disclaimer\": null }. Every key must be a dotted path from editablePaths; values must be scalars or arrays (never objects); arrays replace whole; null deletes a leaf, not a path with settings under it; at most 100 paths." } } } ``` ### Result schema ```json { "type": "object", "required": [ "siteId", "applied", "config" ], "properties": { "siteId": { "type": "string" }, "applied": { "type": "array", "items": { "type": "string" }, "description": "The dotted config paths applied, in request order." }, "config": { "type": "object", "description": "The resulting configuration, pruned to the editable surface (the same view get-site-config returns, site-row settings included). A request that touched only site-row settings returns just those." } } } ``` ## Generate site config {#generate-site-config} Generate a config.json proposal for a site by reading its live pages. Read-only — review the suggestion and submit accepted parts via update-site-config. Use get-site-config for the current contractId, then describe only the proposed sections when that contract has not already been read. - HTTP: `POST /sites/{siteId}/config/generate` - MCP: `generate_site_config` Required permissions: `invoke.sitestar:generate-site-config`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `sections` | array | No | Config sections to generate; all three when omitted. | | `pageLimit` | integer | No | Maximum pages to ingest as evidence. The host read is the customer's existing website while the site is pre-live, otherwise its primary domain. Default: 6. | ### Input schema ```json { "type": "object", "required": [ "siteId" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "sections": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "enum": [ "site", "business", "content" ] }, "description": "Config sections to generate; all three when omitted." }, "pageLimit": { "type": "integer", "minimum": 1, "maximum": 8, "default": 6, "description": "Maximum pages to ingest as evidence. The host read is the customer's existing website while the site is pre-live, otherwise its primary domain." } } } ``` ### Result schema ```json { "type": "object", "required": [ "suggestion", "sources", "warnings", "sections" ], "description": "A config.json proposal. Read-only: nothing is written; submit accepted data via update_site_config.", "properties": { "suggestion": { "type": "object", "description": "Proposed config.json content for the requested sections." }, "sources": { "type": "array", "items": { "type": "string" }, "description": "URLs used as generation evidence." }, "warnings": { "type": "array", "items": { "type": "string" } }, "sections": { "type": "array", "items": { "type": "string", "enum": [ "site", "business", "content" ] } } } } ``` ## Get analytics {#get-analytics} Get one site's traffic analytics from the hosting platform. totals = pageviews, unique visitors, new visitors and sessions per time bucket (defaults to the last 7 days of daily buckets, today included). Breakdowns: type (events per type), channel (sessions per acquisition channel), device (per device class), path (pageviews per page), country (per viewer country), source (sessions per referrer host), campaign (sessions per utm_campaign). path/country/source/campaign are by day (up to 31), month (up to 24) or all-time, never by year; their rows are the top values over the whole range, every bucket included. Answers are shared for five minutes. - HTTP: `GET /sites/{siteId}/analytics` - MCP: `get_analytics` Required permissions: `invoke.sitestar:get-site-analytics`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `period` | string | No | Bucket size. Defaults to 'day'. 'total' is one all-time bucket and takes no date range. path/country/source/campaign accept day, month or total (not year). Allowed: "day", "month", "year", "total". | | `dimension` | string | No | Which rows come back, and which metrics they carry. totals: pageviews, visitors (unique in the bucket), newVisitors, sessions. type: count per event type (pageview, click_outbound, form_submit). channel: sessions and newVisitors per acquisition channel. device: pageviews, sessions, newVisitors per device class. path: pageviews per page (value = the path). country: pageviews, sessions, newVisitors per ISO country code. source: sessions, newVisitors per referrer host. campaign: sessions, newVisitors per utm_campaign. path, country, source and campaign accept period day, month or total; their rows are the top `limit` values ranked over the whole range, with every bucket row for each, so summing a value's rows gives its range total exactly. Allowed: "totals", "type", "channel", "device", "path", "country", "source", "campaign". | | `startDate` | string | No | Range start in the period's format (day: YYYY-MM-DD, month: YYYY-MM, year: YYYY), a real calendar date. Provide with endDate or omit both for the default trailing window (7 days, 12 months or 5 years, ending today UTC). path/country/source/campaign spans are bounded: 31 days or 24 months. | | `endDate` | string | No | Range end, same format as startDate, a real calendar date; the same bounds apply (31 days / 24 months for path/country/source/campaign). | | `limit` | integer / string | No | Max points per series (up to 200) — for path/country/source/campaign, the number of top values kept over the whole range. Numeric string accepted for query-param parity. | ### Input schema ```json { "type": "object", "required": [ "siteId" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "period": { "type": "string", "enum": [ "day", "month", "year", "total" ], "description": "Bucket size. Defaults to 'day'. 'total' is one all-time bucket and takes no date range. path/country/source/campaign accept day, month or total (not year)." }, "dimension": { "type": "string", "enum": [ "totals", "type", "channel", "device", "path", "country", "source", "campaign" ], "description": "Which rows come back, and which metrics they carry. totals: pageviews, visitors (unique in the bucket), newVisitors, sessions. type: count per event type (pageview, click_outbound, form_submit). channel: sessions and newVisitors per acquisition channel. device: pageviews, sessions, newVisitors per device class. path: pageviews per page (value = the path). country: pageviews, sessions, newVisitors per ISO country code. source: sessions, newVisitors per referrer host. campaign: sessions, newVisitors per utm_campaign. path, country, source and campaign accept period day, month or total; their rows are the top `limit` values ranked over the whole range, with every bucket row for each, so summing a value's rows gives its range total exactly." }, "startDate": { "type": "string", "maxLength": 10, "description": "Range start in the period's format (day: YYYY-MM-DD, month: YYYY-MM, year: YYYY), a real calendar date. Provide with endDate or omit both for the default trailing window (7 days, 12 months or 5 years, ending today UTC). path/country/source/campaign spans are bounded: 31 days or 24 months." }, "endDate": { "type": "string", "maxLength": 10, "description": "Range end, same format as startDate, a real calendar date; the same bounds apply (31 days / 24 months for path/country/source/campaign)." }, "limit": { "type": [ "integer", "string" ], "description": "Max points per series (up to 200) — for path/country/source/campaign, the number of top values kept over the whole range. Numeric string accepted for query-param parity." } } } ``` ### Result schema ```json { "type": "object", "required": [ "siteId", "period", "dimension", "items" ], "additionalProperties": false, "properties": { "siteId": { "type": "string" }, "period": { "type": "string" }, "dimension": { "type": "string" }, "items": { "type": "array", "items": { "type": "object", "required": [ "periodValue" ], "additionalProperties": false, "properties": { "periodValue": { "type": "string", "description": "The bucket: '2026-08-02', '2026-08', '2026', or 'ALL'." }, "value": { "type": "string", "description": "Breakdown value (event type, channel, device class, page path, country code, referrer host or campaign); absent on dimension=totals." }, "count": { "type": "number", "description": "dimension=type only: events of that type in the bucket." }, "pageviews": { "type": "number", "description": "totals, device, country and path." }, "visitors": { "type": "number", "description": "totals only: unique visitors in the bucket." }, "newVisitors": { "type": "number", "description": "First-ever visitors in the bucket; totals and every session-based breakdown." }, "sessions": { "type": "number", "description": "Sessions started in the bucket; totals, channel, device, country, source and campaign." } } } } } } ``` ## Get change decisions {#get-change-decisions} List the review decisions recorded on one change, newest first: outcome ('approved' or 'changes_requested'), who decided (userId, or contact:<id> for a site contact), the note in body, and the reviewed revision (headSha) and reviewCycle. Decisions are permanent history, and only one matching the change's current revision AND review cycle counts: an approval of an older revision does not approve a newer one, and a reopened change needs a fresh decision even at the same revision. Take changeId from list_site_changes or list_needs_you. - HTTP: `GET /sites/{siteId}/changes/{changeId}/decisions` - MCP: `get_change_decisions` Required permissions: `change_decision:list.by-change`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer / string | No | Page size; numeric string accepted for query-param parity | | `next` | string | No | Opaque cursor from a previous page | | `siteId` | string | No | Filter by siteId | | `changeId` | string | No | Filter by changeId | ### Input schema ```json { "type": "object", "properties": { "limit": { "type": [ "integer", "string" ], "description": "Page size; numeric string accepted for query-param parity" }, "next": { "type": "string", "description": "Opaque cursor from a previous page" }, "siteId": { "type": "string", "description": "Filter by siteId" }, "changeId": { "type": "string", "description": "Filter by changeId" } }, "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "changeId": { "type": "string" }, "userId": { "type": "string" }, "outcome": { "type": "string" }, "headSha": { "type": "string" }, "reviewCycle": { "type": "number" }, "body": { "type": "string" }, "idempotencyKey": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } }, "next": { "type": "string" } }, "required": [ "items" ], "additionalProperties": true } ``` ## Get chat SMS sender {#get-chat-sms-sender} Read a site's visitor-texting (SMS) setup: whether a text number has been provisioned for the site, the legal sender it belongs to, the number, and whether it is active or paused. Numbers are set up by Sitestar support, not by this tool. - HTTP: `GET /sites/{siteId}/chat-sms/sender` - MCP: `get_chat_sms_sender` Required permissions: `invoke.sitestar:get-site-chat-sms-sender`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | The site whose visitor-texting setup to read. | ### Input schema ```json { "type": "object", "required": [ "siteId" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1, "description": "The site whose visitor-texting setup to read." } } } ``` ### Result schema ```json { "type": "object", "additionalProperties": false, "required": [ "provisioned" ], "properties": { "provisioned": { "type": "boolean", "description": "False when no text number has been imported for this site." }, "senderId": { "type": "string" }, "legalName": { "type": "string", "description": "Legal business name the number is registered under." }, "brandType": { "type": "string", "enum": [ "STANDARD", "SOLE_PROPRIETOR" ] }, "senderStatus": { "type": "string", "enum": [ "ready", "suspended" ] }, "number": { "type": "string", "description": "E.164 visitor text number." }, "numberStatus": { "type": "string", "enum": [ "pending", "active", "paused", "released" ] } } } ``` ## Get file {#get-file} Get one uploaded file only when it belongs to the requested site. - HTTP: `GET /sites/{siteId}/files/{id}` - MCP: `get_file` Required permissions: `invoke.sitestar:get-site-file`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `id` | string | Yes | File id returned by list_files or attached to this site's conversation. | ### Input schema ```json { "type": "object", "required": [ "siteId", "id" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "id": { "type": "string", "minLength": 1, "description": "File id returned by list_files or attached to this site's conversation." } } } ``` ### Result schema ```json { "type": "object", "required": [ "id", "siteId" ], "additionalProperties": false, "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "name": { "type": "string" }, "contentType": { "type": "string" }, "contentLength": { "type": "number" }, "status": { "type": "string" }, "source": { "type": "string" }, "kind": { "type": "string" }, "usage": { "type": "string" }, "conversationId": { "type": "string" }, "messageId": { "type": "string" }, "caption": { "type": "string" }, "textContent": { "type": "string" }, "signedUrl": { "type": "string" } } } ``` ## Get idea {#get-idea} Get one idea by id from list_ideas or list_needs_you: title, summary, status, and taskId when it was promoted into a task. An unknown id returns 404. - HTTP: `GET /sites/{siteId}/ideas/{id}` - MCP: `get_idea` Required permissions: `site_idea:get`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | The SiteIdea siteId to get | | `id` | string | Yes | The SiteIdea id to get | ### Input schema ```json { "type": "object", "properties": { "siteId": { "type": "string", "description": "The SiteIdea siteId to get" }, "id": { "type": "string", "description": "The SiteIdea id to get" } }, "required": [ "siteId", "id" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "title": { "type": "string" }, "summary": { "type": "string" }, "status": { "type": "string" }, "discussionConversationId": { "type": "string" }, "taskId": { "type": "string" }, "sourceRef": { "type": "string" }, "sourceUrl": { "type": "string" }, "sourceCreatedAt": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } ``` ## Get lead journey {#get-lead-journey} What one inbox lead's visitor did on the website before and around reaching out: the pages of their session in order and how many visits it took. eventId is the inbox id (form-submission:<id> or conversation:<id>). journey is null when the lead carries no analytics session. - HTTP: `GET /sites/{siteId}/events/{eventId}/journey` Required permissions: `invoke.sitestar:get-site-lead-journey`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `eventId` | string | Yes | The inbox row's id. | ### Input schema ```json { "type": "object", "required": [ "siteId", "eventId" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "eventId": { "type": "string", "pattern": "^(form-submission|conversation):[0-9A-HJKMNP-TV-Z]{26}$", "description": "The inbox row's id." } } } ``` ### Result schema ```json { "type": "object", "additionalProperties": false, "required": [ "eventId", "journey" ], "properties": { "eventId": { "type": "string" }, "journey": { "oneOf": [ { "type": "object", "additionalProperties": false, "required": [ "visits", "firstSeenAt", "session", "historyTruncated" ], "properties": { "visits": { "type": "integer", "minimum": 0, "description": "Distinct sessions seen for this visitor, the lead's included." }, "firstSeenAt": { "type": "string" }, "historyTruncated": { "type": "boolean", "description": "True when only the newest events were read; visits and firstSeenAt are then lower bounds." }, "session": { "oneOf": [ { "type": "object", "additionalProperties": false, "required": [ "startedAt", "lastActivityAt", "steps", "stepsTruncated" ], "properties": { "startedAt": { "type": "string" }, "lastActivityAt": { "type": "string" }, "stepsTruncated": { "type": "boolean" }, "steps": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": [ "type", "path", "at" ], "properties": { "type": { "type": "string", "enum": [ "pageview", "form_submit" ] }, "path": { "type": "string", "description": "Site path; empty for a page too unusual to record individually." }, "at": { "type": "string" } } } } } }, { "type": "null" } ] } } }, { "type": "null" } ] } } } ``` ## View a page screenshot {#get-page-screenshot} LOOK AT one published page: returns the deploy-captured screenshot as an image you can actually see, plus its metadata. viewport 'desktop' (default) or 'mobile'. Use this for any visual or design question (colors, layout, spacing, how a section reads on a phone) rather than answering from the page's text. Shows the LIVE deployed site as captured at its last deploy, so pending changes are not in it. SCREENSHOTS_UNAVAILABLE means the current deploy predates screenshots; SCREENSHOT_NOT_CAPTURED means that route has no current screenshot. - MCP: `get_page_screenshot` Required permissions: `invoke.sitestar:view-page-screenshot`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `route` | string | Yes | Page route path starting with '/'. | | `viewport` | string | No | Which capture variant to return; defaults to 'desktop'. Allowed: "desktop", "mobile". | ### Input schema ```json { "type": "object", "required": [ "siteId", "route" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "route": { "type": "string", "minLength": 1, "maxLength": 500, "description": "Page route path starting with '/'." }, "viewport": { "type": "string", "enum": [ "desktop", "mobile" ], "description": "Which capture variant to return; defaults to 'desktop'." } } } ``` ### Result schema ```json { "type": "object", "required": [ "route", "viewport", "contentType" ], "properties": { "route": { "type": "string" }, "viewport": { "type": "string", "enum": [ "desktop", "mobile" ] }, "contentType": { "type": "string" }, "capturedAt": { "type": "string" }, "width": { "type": "number" }, "height": { "type": "number" }, "bytes": { "type": "number" } } } ``` ## Get a page screenshot URL {#get-page-screenshot-url} Get one published page's deploy-captured screenshot by route: image metadata plus a short-lived signed URL to the JPEG. viewport 'desktop' (default) or 'mobile'. Reflects the currently deployed site, not pending changes. SCREENSHOTS_UNAVAILABLE means the site's current deploy predates screenshots; SCREENSHOT_NOT_CAPTURED means that route has no current screenshot (the message says why). - HTTP: `GET /sites/{siteId}/page-screenshot` Required permissions: `invoke.sitestar:get-page-screenshot`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `route` | string | Yes | Page route path starting with '/'. | | `viewport` | string | No | Which capture variant to return; defaults to 'desktop'. Allowed: "desktop", "mobile". | ### Input schema ```json { "type": "object", "required": [ "siteId", "route" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "route": { "type": "string", "minLength": 1, "maxLength": 500, "description": "Page route path starting with '/'." }, "viewport": { "type": "string", "enum": [ "desktop", "mobile" ], "description": "Which capture variant to return; defaults to 'desktop'." } } } ``` ### Result schema ```json { "type": "object", "required": [ "route", "viewport", "contentType", "url" ], "properties": { "route": { "type": "string" }, "viewport": { "type": "string", "enum": [ "desktop", "mobile" ] }, "contentType": { "type": "string" }, "capturedAt": { "type": "string" }, "width": { "type": "number" }, "height": { "type": "number" }, "bytes": { "type": "number" }, "url": { "type": "string", "description": "Short-lived signed URL to the JPEG — fetch promptly, not a durable reference." } } } ``` ## Get platform status {#get-platform-status} Whether the platform's own upstream services are degraded right now, in customer terms: assistant (AI features), siteChanges (builds, deploys, and requested changes landing on the site), and conversations (message history). Use this when something platform-wide seems slow or failing, before assuming a problem with one site. The report is cached for up to five minutes; checkedAt is when it was measured. Not a site's own health — use get_site_status for that. - HTTP: `GET /platform/status` - MCP: `get_platform_status` Required permissions: `invoke.sitestar:get-platform-status`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | ### Input schema ```json { "type": "object", "additionalProperties": false, "properties": {} } ``` ### Result schema ```json { "type": "object", "required": [ "level", "checkedAt", "services" ], "additionalProperties": false, "properties": { "level": { "type": "string", "enum": [ "ok", "degraded" ], "description": "'degraded' when any service is." }, "checkedAt": { "type": "string", "description": "When the dependency probes ran (ISO 8601). Up to five minutes before the call." }, "services": { "type": "object", "required": [ "assistant", "siteChanges", "conversations" ], "additionalProperties": false, "properties": { "assistant": { "type": "string", "enum": [ "ok", "degraded" ], "description": "AI features: the website assistant, config generation, research." }, "siteChanges": { "type": "string", "enum": [ "ok", "degraded" ], "description": "Site builds, deploys, and requested changes reaching the site." }, "conversations": { "type": "string", "enum": [ "ok", "degraded" ], "description": "Conversation history: reading and sending messages." } } } } } ``` ## Get site {#get-site} Get the site: name, status (provisioning, building, ready, active, paused, archived, failed, migrated), primaryDomain, timezone, planStatus, and its switches: privateMode with the gate password privateAuthSecret, geoBlocking with blockedCountries, smsEnabled, chatSmsEnabled, and chatHandoffEnabled. Read it before changing any of those switches. - HTTP: `GET /sites/{id}` - MCP: `get_site` Required permissions: `site:get`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | Yes | The Site id to get | ### Input schema ```json { "type": "object", "properties": { "id": { "type": "string", "description": "The Site id to get" } }, "required": [ "id" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteKey": { "type": "string" }, "name": { "type": "string" }, "primaryDomain": { "type": [ "string", "null" ] }, "onboardingDomain": { "type": "string" }, "status": { "type": "string" }, "activeConfigVersion": { "type": "string" }, "coreVersion": { "type": "string" }, "hostingMode": { "type": "string" }, "reviewPolicy": { "type": "string" }, "timezone": { "type": "string" }, "setupJobId": { "type": "string" }, "launchLockAt": { "type": "string" }, "transferLock": { "type": "string" }, "transferredAt": { "type": "string" }, "archivedAt": { "type": "string" }, "activatedAt": { "type": "string" }, "activationReason": { "type": "string" }, "privateMode": { "type": "boolean" }, "geoBlocking": { "type": "string" }, "smsEnabled": { "type": "boolean" }, "chatSmsEnabled": { "type": "boolean" }, "chatHandoffEnabled": { "type": "boolean" }, "blockedCountries": { "type": "array" }, "screenshot": { "type": "object" }, "icon": { "type": "object" }, "created": { "type": "string" }, "modified": { "type": "string" }, "subscriptionId": { "type": "string" }, "planId": { "type": "string" }, "planStatus": { "type": "string" }, "planLimits": { "type": "object" }, "subscriptionStatus": { "type": "string" }, "currentPeriodEnd": { "type": "string" }, "stampVersion": { "type": "string" } }, "additionalProperties": true } ``` ## Get site config {#get-site-config} Read a site's current settings in config.json shape, pruned to what edit-site-config can change and including the site-row settings it addresses (site.timezone) (managed identity such as site name/url, the Core pin, and redirects are not returned: read the site or list redirects for those), plus resolved automation state and the contractId governing it. Read-modify-write directly. Reuse any describe-site-config result with the same contractId; describe only missing sections when the id changes. Includes settings not yet deployed. Returns 409 SITE_NOT_READY while site setup has not completed. - HTTP: `GET /sites/{siteId}/config` - MCP: `get_site_config` Required permissions: `invoke.sitestar:get-site-config`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | ### Input schema ```json { "type": "object", "required": [ "siteId" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 } } } ``` ### Result schema ```json { "type": "object", "required": [ "siteId", "coreVersion", "source", "contractsVersion", "contractId", "config", "automations" ], "additionalProperties": false, "properties": { "siteId": { "type": "string" }, "coreVersion": { "type": "string", "description": "The site's stamped deployed-Core version; \"\" when never stamped." }, "source": { "type": "string", "enum": [ "site-pinned", "backend-current" ], "description": "Which catalog resolved the automation state (mirrors describe-site-config)." }, "contractsVersion": { "type": "string" }, "contractId": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$", "description": "Stable identity of the complete schema and catalog pair used for this state." }, "config": { "type": "object", "description": "Current settings compiled to config.json shape and pruned to the keys the dotted-path write can change." }, "automations": { "type": "array", "description": "Resolved per-automation state, in catalog order.", "items": { "type": "object", "required": [ "id", "displayName", "category", "enabled", "scheduleEnabled", "cron", "scheduleSource", "defaultCron", "settings", "nextRunAt" ], "additionalProperties": false, "properties": { "id": { "type": "string", "description": "Stable capability id (the catalog key)." }, "displayName": { "type": "string" }, "category": { "type": "string" }, "enabled": { "type": "boolean", "description": "Effective on/off: site override, else the catalog default." }, "scheduleEnabled": { "type": "boolean", "description": "Whether site policy permits scheduled runs (mirrors Core). Can be true for a default-enabled automation with no cron — nothing fires when cron is []; check cron/nextRunAt for an actual schedule." }, "cron": { "type": "array", "items": { "type": "string" }, "description": "The cron expressions driving scheduled runs ([] when none). UTC." }, "scheduleSource": { "type": "string", "enum": [ "site-override", "catalog-default", "none" ] }, "defaultCron": { "type": "array", "items": { "type": "string" }, "description": "The catalog's own schedule for this capability ([] when it has none). Distinct from `cron`: an opt-in automation never inherits the catalog schedule, so `cron` is [] until the site supplies one while this still reports what the catalog suggests. Send this with the enable flags when turning an opt-in automation on." }, "settings": { "type": "object", "description": "Effective persistent settings: catalog defaults with site overrides." }, "nextRunAt": { "type": [ "string", "null" ], "description": "Next scheduled run (ISO, UTC), or null when scheduled runs are off." } } } } } } ``` ## Get site event {#get-site-event} Get one visitor event by its ID. - HTTP: `GET /sites/{siteId}/events/{id}` Required permissions: `site_event:get`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | The SiteEvent siteId to get | | `id` | string | Yes | Deterministic id: <kind>:<platform row ULID>. | ### Input schema ```json { "type": "object", "properties": { "siteId": { "type": "string", "description": "The SiteEvent siteId to get" }, "id": { "type": "string", "description": "Deterministic id: <kind>:<platform row ULID>." } }, "required": [ "siteId", "id" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "kind": { "type": "string" }, "sourceId": { "type": "string" }, "domain": { "type": "string" }, "occurredAt": { "type": "string" }, "payload": { "type": "object" }, "fingerprint": { "type": "string" }, "hydrated": { "type": "boolean" }, "receiptPending": { "type": "boolean" }, "formType": { "type": "string" }, "pagePath": { "type": "string" }, "email": { "type": "string" }, "phone": { "type": "string" }, "spamVerdict": { "type": "string" }, "spamScore": { "type": "number" }, "spamReasons": { "type": "array" }, "spamSource": { "type": "string" }, "spamAssessedAt": { "type": "string" }, "handoffNotifiedAt": { "type": "string" }, "followUpEmailSentAt": { "type": "string" }, "handoffRemindedAt": { "type": "string" }, "handoffReminderDueAt": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } ``` ## Get site requests {#get-site-requests} Get one site's request-log numbers from the hosting platform: every page-level request CloudFront saw, bots included. A DIFFERENT count from get_analytics (which is what browsers running the site script reported) — never add or compare the two as the same thing. totals = requests, beaconSeen, and humanPageviews/humanBeaconSeen per bucket (browser measurement coverage = humanBeaconSeen / humanPageviews, a lower bound, not an ad-block rate; when humanPageviews is 0 there is no coverage figure — unavailable, not 0%). kind = requests per pageview, not_found, server_error or redirect, bots included. bot = requests per bot name (none = humans, sitestar = Site Star's own tooling). landingPath / errorPath = requests per page for pageviews / not-founds, bots included. host / country / campaign = human requests per hostname, country code or utm_campaign. bot, landingPath, errorPath, host, country and campaign are by day (up to 31), month (up to 24) or all-time, never by year; their rows are the top values over the whole range. Every answer carries meta: buckets after completeThrough are still arriving; days before historyStart are unavailable, not zero; coverage before coverageAvailableFrom is unavailable, not 0%. Answers are shared for five minutes. - HTTP: `GET /sites/{siteId}/requests` - MCP: `get_site_requests` Required permissions: `invoke.sitestar:get-site-requests`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `period` | string | No | Bucket size. Defaults to 'day'. 'total' is one all-time bucket and takes no date range. bot, landingPath, errorPath, host, country and campaign accept day, month or total (not year). Allowed: "day", "month", "year", "total". | | `dimension` | string | No | Which rows come back. totals: requests, beaconSeen, humanPageviews, humanBeaconSeen (coverage = humanBeaconSeen / humanPageviews; with humanPageviews 0 it is unavailable, not 0%). kind: requests and beaconSeen per kind (pageview = 200/304, not_found = 404/410, server_error = 5xx, redirect = https 301/302 to a page), bots included. bot: requests and beaconSeen per bot name (none = humans, sitestar = Site Star tooling); a bot with beaconSeen ran a browser. landingPath: requests per page for pageviews, bots included. errorPath: requests per page for not-founds, bots included. host: human requests per hostname — any host other than the site's primary is redirect traffic. country: human requests per ISO country code. campaign: human entry requests and beaconSeen per utm_campaign. Prefix-read dimensions return the top `limit` values ranked over the whole range, every bucket row for each; never use their sum as a total. Allowed: "totals", "kind", "bot", "landingPath", "errorPath", "host", "country", "campaign". | | `startDate` | string | No | Range start in the period's format (day: YYYY-MM-DD, month: YYYY-MM, year: YYYY), a real calendar date. Provide with endDate or omit both for the default trailing window (7 days, 12 months or 5 years, ending today UTC). Prefix-read spans are bounded: 31 days or 24 months. | | `endDate` | string | No | Range end, same format as startDate, a real calendar date; the same bounds apply. | | `limit` | integer / string | No | Max points per series (up to 200) — for prefix-read dimensions, the number of top values kept over the whole range. Numeric string accepted for query-param parity. | ### Input schema ```json { "type": "object", "required": [ "siteId" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "period": { "type": "string", "enum": [ "day", "month", "year", "total" ], "description": "Bucket size. Defaults to 'day'. 'total' is one all-time bucket and takes no date range. bot, landingPath, errorPath, host, country and campaign accept day, month or total (not year)." }, "dimension": { "type": "string", "enum": [ "totals", "kind", "bot", "landingPath", "errorPath", "host", "country", "campaign" ], "description": "Which rows come back. totals: requests, beaconSeen, humanPageviews, humanBeaconSeen (coverage = humanBeaconSeen / humanPageviews; with humanPageviews 0 it is unavailable, not 0%). kind: requests and beaconSeen per kind (pageview = 200/304, not_found = 404/410, server_error = 5xx, redirect = https 301/302 to a page), bots included. bot: requests and beaconSeen per bot name (none = humans, sitestar = Site Star tooling); a bot with beaconSeen ran a browser. landingPath: requests per page for pageviews, bots included. errorPath: requests per page for not-founds, bots included. host: human requests per hostname — any host other than the site's primary is redirect traffic. country: human requests per ISO country code. campaign: human entry requests and beaconSeen per utm_campaign. Prefix-read dimensions return the top `limit` values ranked over the whole range, every bucket row for each; never use their sum as a total." }, "startDate": { "type": "string", "maxLength": 10, "description": "Range start in the period's format (day: YYYY-MM-DD, month: YYYY-MM, year: YYYY), a real calendar date. Provide with endDate or omit both for the default trailing window (7 days, 12 months or 5 years, ending today UTC). Prefix-read spans are bounded: 31 days or 24 months." }, "endDate": { "type": "string", "maxLength": 10, "description": "Range end, same format as startDate, a real calendar date; the same bounds apply." }, "limit": { "type": [ "integer", "string" ], "description": "Max points per series (up to 200) — for prefix-read dimensions, the number of top values kept over the whole range. Numeric string accepted for query-param parity." } } } ``` ### Result schema ```json { "type": "object", "required": [ "siteId", "period", "dimension", "items", "meta" ], "additionalProperties": false, "properties": { "siteId": { "type": "string" }, "period": { "type": "string" }, "dimension": { "type": "string" }, "items": { "type": "array", "items": { "type": "object", "required": [ "periodValue" ], "additionalProperties": false, "properties": { "periodValue": { "type": "string", "description": "The bucket: '2026-08-02', '2026-08', '2026', or 'ALL'." }, "value": { "type": "string", "description": "Breakdown value (kind, bot name, page path, hostname, country code or campaign); absent on dimension=totals." }, "requests": { "type": "number", "description": "Page-level requests in the bucket; every dimension." }, "beaconSeen": { "type": "number", "description": "Of those, entry pageviews whose browser beacon was matched; totals, kind, bot and campaign." }, "humanPageviews": { "type": "number", "description": "totals only: pageviews from non-bot requests — browser measurement coverage's denominator; 0 means no coverage figure for the bucket, not 0%." }, "humanBeaconSeen": { "type": "number", "description": "totals only: of humanPageviews, the ones whose beacon was matched — coverage's numerator." } } } }, "meta": { "type": "object", "required": [ "completeThrough", "historyStart", "coverageAvailableFrom" ], "additionalProperties": false, "properties": { "completeThrough": { "type": "string", "description": "ISO instant. Buckets ending after it are still receiving requests." }, "historyStart": { "type": [ "string", "null" ], "description": "YYYY-MM-DD of the site's earliest request history; earlier buckets are unavailable, not zero. null = no history yet." }, "coverageAvailableFrom": { "type": [ "string", "null" ], "description": "YYYY-MM-DD of the first matched browser beacon; coverage before it is unavailable, not 0%. null = not yet available." } } } } } ``` ## Get site settings {#get-site-settings} Read the site’s settings. - HTTP: `GET /sites/{siteId}/settings` - MCP: `get_site_settings` Required permissions: `site_setting:list`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer / string | No | Page size; numeric string accepted for query-param parity | | `next` | string | No | Opaque cursor from a previous page | | `siteId` | string | No | Filter by siteId | ### Input schema ```json { "type": "object", "properties": { "limit": { "type": [ "integer", "string" ], "description": "Page size; numeric string accepted for query-param parity" }, "next": { "type": "string", "description": "Opaque cursor from a previous page" }, "siteId": { "type": "string", "description": "Filter by siteId" } }, "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "siteId": { "type": "string" }, "key": { "type": "string" }, "value": { "type": [ "string", "number", "boolean", "object", "array", "null" ] }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } }, "next": { "type": "string" } }, "required": [ "items" ], "additionalProperties": true } ``` ## Get site status {#get-site-status} Read one site's current health in one call: lifecycle and billing state, a bounded live HTTPS probe, domain verification state, latest published release, build state, and configuration propagation state. Each dependent source degrades independently instead of hiding the rest of the answer. - HTTP: `GET /sites/{siteId}/status` - MCP: `get_site_status` Required permissions: `invoke.sitestar:get-site-status`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | ### Input schema ```json { "type": "object", "required": [ "siteId" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 } } } ``` ### Result schema ```json { "type": "object", "required": [ "site", "live", "domains", "delivery" ], "additionalProperties": false, "properties": { "site": { "type": "object", "required": [ "status", "gated", "gateReason", "planStatus" ], "additionalProperties": false, "properties": { "status": { "type": "string" }, "gated": { "type": "boolean" }, "gateReason": { "type": "string", "enum": [ "private", "not-active", "none" ] }, "planStatus": { "type": [ "string", "null" ] }, "planStatusUnavailable": { "type": "string", "enum": [ "not-found", "read-failed" ] } } }, "live": { "type": "object", "required": [ "checked", "url", "ok" ], "additionalProperties": false, "properties": { "checked": { "type": "boolean" }, "url": { "type": "string" }, "finalUrl": { "type": "string" }, "ok": { "type": "boolean" }, "httpStatus": { "type": "integer" }, "latencyMs": { "type": "number" }, "error": { "type": "string", "enum": [ "NO_PRIMARY_DOMAIN", "GATE_SECRET_UNAVAILABLE", "DNS_UNAVAILABLE", "UNSAFE_ADDRESS", "REDIRECT_LIMIT", "UNSAFE_REDIRECT", "TIMEOUT", "CONNECTION_FAILED" ] } } }, "domains": { "type": "object", "required": [ "items" ], "additionalProperties": false, "properties": { "items": { "type": "array", "items": { "type": "object", "required": [ "hostname", "type", "primary", "status", "statusReason" ], "additionalProperties": false, "properties": { "hostname": { "type": "string" }, "type": { "type": "string", "enum": [ "custom", "platform" ] }, "primary": { "type": "boolean" }, "status": { "type": "string", "enum": [ "pending_dns", "verifying", "active", "failed" ] }, "statusReason": { "type": "string" } } } }, "unavailable": { "const": "read-failed" } } }, "delivery": { "type": "object", "required": [ "latestRelease", "siteBuildStatus", "configPropagationStatus" ], "additionalProperties": false, "properties": { "latestRelease": { "type": [ "object", "null" ], "required": [ "releaseId", "version", "publishedAt", "url" ], "additionalProperties": false, "properties": { "releaseId": { "type": "string" }, "version": { "type": "string" }, "publishedAt": { "type": "string" }, "url": { "type": "string" } } }, "latestReleaseUnavailable": { "const": "read-failed" }, "siteBuildStatus": { "type": [ "string", "null" ] }, "siteBuildUnavailable": { "const": "read-failed" }, "configPropagationStatus": { "type": [ "string", "null" ] }, "configPropagationUnavailable": { "const": "read-failed" } } } } } ``` ## Get task {#get-task} Get one task by id from list_tasks or list_needs_you: title, description, status with statusChangedAt, origin, requestSource, and discussionConversationId. Pass that conversation id to list_messages to read the task's update thread. An unknown id returns 404. - HTTP: `GET /sites/{siteId}/tasks/{id}` - MCP: `get_task` Required permissions: `task:get`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | The Task siteId to get | | `id` | string | Yes | The Task id to get | ### Input schema ```json { "type": "object", "properties": { "siteId": { "type": "string", "description": "The Task siteId to get" }, "id": { "type": "string", "description": "The Task id to get" } }, "required": [ "siteId", "id" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "status": { "type": "string" }, "statusChangedAt": { "type": "string" }, "origin": { "type": "string" }, "originRef": { "type": "string" }, "requestSource": { "type": "string" }, "requestedByUserId": { "type": "string" }, "reviewPolicy": { "type": "string" }, "sourceRetracted": { "type": "boolean" }, "conversationId": { "type": "string" }, "requestMessageId": { "type": "string" }, "discussionConversationId": { "type": "string" }, "sourceRef": { "type": "string" }, "sourceUrl": { "type": "string" }, "sourceCreatedAt": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } ``` ## Get task notifications {#get-task-notifications} List one task's notification routes — who gets updates about this task, on which channel (email, sms, webhook), at which address, and whether each route is active or disabled. Routes are created automatically from how the task was requested and from thread participation, and explicitly via set-task-notifications. - HTTP: `GET /sites/{siteId}/tasks/{taskId}/notifications` - MCP: `get_task_notifications` Required permissions: `invoke.sitestar:get-task-notifications`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `taskId` | string | Yes | The task's id exactly as returned by the task list. | ### Input schema ```json { "type": "object", "required": [ "siteId", "taskId" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "taskId": { "type": "string", "minLength": 1, "maxLength": 64, "description": "The task's id exactly as returned by the task list." } } } ``` ### Result schema ```json { "type": "object", "required": [ "taskId", "routes" ], "properties": { "taskId": { "type": "string" }, "routes": { "type": "array", "items": { "type": "object", "required": [ "subscriptionId", "channel", "destination", "status", "origin" ], "properties": { "subscriptionId": { "type": "string" }, "channel": { "type": "string", "enum": [ "email", "sms", "webhook" ] }, "destination": { "type": "string" }, "status": { "type": "string", "enum": [ "active", "disabled" ] }, "origin": { "type": "string", "enum": [ "request", "participation", "explicit" ], "description": "request = derived from the message that created the task; participation = added by replying into the task's thread; explicit = chosen via set-task-notifications." }, "contactId": { "type": "string", "description": "Present when the route belongs to a site contact." } } } } } } ``` ## Get Teams connection {#get-teams-connection} Read whether this site has a Microsoft Teams channel connected, and its health. `installation` is null when nothing is connected. A status of `error` with `lastErrorCode` means Teams is refusing our posts and the owner must reconnect. `events` lists what the channel receives. - HTTP: `GET /sites/{siteId}/teams/installation` - MCP: `get_teams_connection` Required permissions: `invoke.sitestar:get-site-teams-installation`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | ### Input schema ```json { "type": "object", "required": [ "siteId" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 } } } ``` ### Result schema ```json { "type": "object", "required": [ "installation" ], "additionalProperties": false, "properties": { "installation": { "oneOf": [ { "type": "object", "required": [ "id", "status", "disabledReason", "teamName", "channelName", "events", "pairedAt", "lastErrorCode", "lastErrorAt" ], "additionalProperties": false, "properties": { "id": { "type": "string" }, "status": { "type": "string", "enum": [ "active", "disabled", "error" ] }, "disabledReason": { "type": "string" }, "teamName": { "type": "string" }, "channelName": { "type": "string" }, "events": { "type": "array", "items": { "type": "string" } }, "pairedAt": { "type": "string" }, "lastErrorCode": { "type": "string" }, "lastErrorAt": { "type": "string" } } }, { "type": "null" } ] } } } ``` ## Launch a site with MCP {#golive-site} Launch a built site (the pay-on-go-live billing event). Call without confirm to preview the charge; call with confirm=true to commit it. May return a Stripe Checkout URL when no subscription exists yet. Failures return {message, code} and, when the caller has something to choose, a `details` object: SUBSCRIPTION_CHOICE_REQUIRED (409) — the account holds more than one subscription and one must be picked; details.subscriptions[] = [{id, status, paymentMethod, siteCount}]. SUBSCRIPTION_FULL (409) — the subscription already carries Stripe's maximum of 20 sites; details.subscriptionId is the full one and details.subscriptions[] the alternatives. SUBSCRIPTION_NOT_ATTACHABLE (409) — the named subscription is not this account's, or cannot take a new site. PAYMENT_FAILED_STATE (402) — that subscription has a failed payment; the card must be fixed first (it is never re-routed to a new subscription). Also PAYMENT_DECLINED (402), INVALID_PROMO_CODE (400), LAUNCH_IN_PROGRESS / LAUNCH_CONFLICT (409), SITE_NOT_READY (409). Choosing WHICH subscription pays is a human step in the billing UI: this tool has no subscription field, so on SUBSCRIPTION_CHOICE_REQUIRED or SUBSCRIPTION_FULL, report the choice to the user instead of retrying. - MCP: `golive_site` Required permissions: `invoke.sitestar:golive`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `confirm` | boolean | No | True = the user accepted the previewed charge; commit it. Must be the JSON boolean true — any other value previews. Default: false. | | `origin` | string | Yes | Origin for Stripe Checkout redirect URLs (first subscription only). | | `promotionCode` | string | No | Coupon code for THIS site, applied as an item-level discount on the site's own subscription line (never the whole subscription). Send it on preview to see discounted numbers, and again on confirm to commit them. | ### Input schema ```json { "type": "object", "required": [ "siteId", "origin" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "confirm": { "type": "boolean", "default": false, "description": "True = the user accepted the previewed charge; commit it. Must be the JSON boolean true — any other value previews." }, "origin": { "type": "string", "format": "uri", "description": "Origin for Stripe Checkout redirect URLs (first subscription only)." }, "promotionCode": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Coupon code for THIS site, applied as an item-level discount on the site's own subscription line (never the whole subscription). Send it on preview to see discounted numbers, and again on confirm to commit them." } } } ``` ### Result schema ```json { "oneOf": [ { "type": "object", "required": [ "action", "preview" ], "properties": { "action": { "const": "preview" }, "preview": { "type": "object", "required": [ "amountDueNow", "currency", "recurringTotal", "lines", "paymentTarget" ], "properties": { "amountDueNow": { "type": "integer", "description": "Prorated charge on confirm, smallest currency unit. From Stripe's invoice preview — the exact number the card pays." }, "currency": { "type": "string" }, "interval": { "type": [ "string", "null" ] }, "recurringTotal": { "type": "integer", "description": "The next renewal invoice's total with this site included, smallest currency unit — Stripe's number, discounts applied." }, "lines": { "type": "array", "items": { "type": "object", "required": [ "description", "amount" ], "properties": { "description": { "type": "string" }, "amount": { "type": "integer", "description": "Line total after discounts, smallest currency unit." } } }, "description": "The renewal invoice's lines (may truncate past 10; recurringTotal is authoritative)." }, "appliedPromotionCode": { "type": "string", "description": "Canonical code applied to this preview, when one was submitted." }, "discountDuration": { "enum": [ "once", "repeating", "forever" ], "description": "How long the applied coupon lasts. \"once\" = today's charge only; recurringTotal is then the FULL renewal price (the launch's proration invoice consumes the coupon). \"repeating\" = discountDurationInMonths months of renewals. \"forever\" = every renewal. Present only when a coupon was applied." }, "discountDurationInMonths": { "type": [ "integer", "null" ], "description": "Months the discount runs when discountDuration is \"repeating\"; null otherwise." }, "paymentTarget": { "type": "object", "required": [ "subscriptionId", "paymentMethod", "siteCount" ], "properties": { "subscriptionId": { "type": "string", "description": "The subscription this preview was quoted against and that confirm will charge." }, "paymentMethod": { "type": "object", "description": "Card summary on that subscription ({ type, brand?, last4? }); {} when unknown." }, "siteCount": { "type": "integer", "description": "Sites already billed on that subscription." } }, "description": "Which subscription pays. Re-submit with this subscriptionId to keep it, or newSubscription: true to pay with a new card." } } } } }, { "type": "object", "required": [ "action", "url" ], "properties": { "action": { "const": "checkout" }, "url": { "type": "string", "description": "No subscription yet — complete Stripe Checkout, then call again." } } }, { "type": "object", "required": [ "action", "site", "charged" ], "properties": { "action": { "const": "activated" }, "site": { "type": "object", "description": "The now-active site row." }, "charged": { "type": "boolean", "description": "True when this call billed the card." } } } ] } ``` ## Launch a site with HTTP {#launch-site} Launch a built site with an explicit payment target. Same contract and responses as golive_site, plus the human-only subscription choice: subscriptionId attaches the site to that existing subscription; newSubscription pays with a new card via Stripe Checkout. At most one of the two. Published on the application and service REST surfaces only — the agent-facing golive tool deliberately has no subscription field, so choosing which subscription pays stays a human step in the billing UI. - HTTP: `POST /sites/{siteId}/golive` Required permissions: `invoke.sitestar:golive-with-target`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `confirm` | boolean | No | True = the user accepted the previewed charge; commit it. Must be the JSON boolean true — any other value previews. Default: false. | | `origin` | string | Yes | Origin for Stripe Checkout redirect URLs (first subscription only). | | `promotionCode` | string | No | Coupon code for THIS site, applied as an item-level discount on the site's own subscription line (never the whole subscription). Send it on preview to see discounted numbers, and again on confirm to commit them. | | `subscriptionId` | string | No | Attach the site to this existing subscription (a Stripe sub_ id from preview.paymentTarget or the SUBSCRIPTION_CHOICE_REQUIRED / SUBSCRIPTION_FULL details). Mutually exclusive with newSubscription; ownership and capacity are verified against the caller's own account. | | `newSubscription` | boolean | No | True = pay with a new card on a new subscription (Stripe Checkout), even when an attachable subscription exists. Mutually exclusive with subscriptionId. | ### Input schema ```json { "type": "object", "required": [ "siteId", "origin" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "confirm": { "type": "boolean", "default": false, "description": "True = the user accepted the previewed charge; commit it. Must be the JSON boolean true — any other value previews." }, "origin": { "type": "string", "format": "uri", "description": "Origin for Stripe Checkout redirect URLs (first subscription only)." }, "promotionCode": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Coupon code for THIS site, applied as an item-level discount on the site's own subscription line (never the whole subscription). Send it on preview to see discounted numbers, and again on confirm to commit them." }, "subscriptionId": { "type": "string", "minLength": 1, "description": "Attach the site to this existing subscription (a Stripe sub_ id from preview.paymentTarget or the SUBSCRIPTION_CHOICE_REQUIRED / SUBSCRIPTION_FULL details). Mutually exclusive with newSubscription; ownership and capacity are verified against the caller's own account." }, "newSubscription": { "type": "boolean", "description": "True = pay with a new card on a new subscription (Stripe Checkout), even when an attachable subscription exists. Mutually exclusive with subscriptionId." } } } ``` ### Result schema ```json { "oneOf": [ { "type": "object", "required": [ "action", "preview" ], "properties": { "action": { "const": "preview" }, "preview": { "type": "object", "required": [ "amountDueNow", "currency", "recurringTotal", "lines", "paymentTarget" ], "properties": { "amountDueNow": { "type": "integer", "description": "Prorated charge on confirm, smallest currency unit. From Stripe's invoice preview — the exact number the card pays." }, "currency": { "type": "string" }, "interval": { "type": [ "string", "null" ] }, "recurringTotal": { "type": "integer", "description": "The next renewal invoice's total with this site included, smallest currency unit — Stripe's number, discounts applied." }, "lines": { "type": "array", "items": { "type": "object", "required": [ "description", "amount" ], "properties": { "description": { "type": "string" }, "amount": { "type": "integer", "description": "Line total after discounts, smallest currency unit." } } }, "description": "The renewal invoice's lines (may truncate past 10; recurringTotal is authoritative)." }, "appliedPromotionCode": { "type": "string", "description": "Canonical code applied to this preview, when one was submitted." }, "discountDuration": { "enum": [ "once", "repeating", "forever" ], "description": "How long the applied coupon lasts. \"once\" = today's charge only; recurringTotal is then the FULL renewal price (the launch's proration invoice consumes the coupon). \"repeating\" = discountDurationInMonths months of renewals. \"forever\" = every renewal. Present only when a coupon was applied." }, "discountDurationInMonths": { "type": [ "integer", "null" ], "description": "Months the discount runs when discountDuration is \"repeating\"; null otherwise." }, "paymentTarget": { "type": "object", "required": [ "subscriptionId", "paymentMethod", "siteCount" ], "properties": { "subscriptionId": { "type": "string", "description": "The subscription this preview was quoted against and that confirm will charge." }, "paymentMethod": { "type": "object", "description": "Card summary on that subscription ({ type, brand?, last4? }); {} when unknown." }, "siteCount": { "type": "integer", "description": "Sites already billed on that subscription." } }, "description": "Which subscription pays. Re-submit with this subscriptionId to keep it, or newSubscription: true to pay with a new card." } } } } }, { "type": "object", "required": [ "action", "url" ], "properties": { "action": { "const": "checkout" }, "url": { "type": "string", "description": "No subscription yet — complete Stripe Checkout, then call again." } } }, { "type": "object", "required": [ "action", "site", "charged" ], "properties": { "action": { "const": "activated" }, "site": { "type": "object", "description": "The now-active site row." }, "charged": { "type": "boolean", "description": "True when this call billed the card." } } } ] } ``` ## List contacts {#list-contacts} List the people associated with this site, in no particular order: id, name, email, phoneNumber, status ('active', or 'disabled' which mutes the contact everywhere), receivesNotifications (alerts and form messages), receivesReports (scheduled reports), canEmailSite and canTextSite (may command the site by email or text), and preferredChannel. Use it to find a contact's id before changing that contact. - HTTP: `GET /sites/{siteId}/contacts` - MCP: `list_contacts` Required permissions: `site_contact:list`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer / string | No | Page size; numeric string accepted for query-param parity | | `next` | string | No | Opaque cursor from a previous page | | `siteId` | string | No | Filter by siteId | ### Input schema ```json { "type": "object", "properties": { "limit": { "type": [ "integer", "string" ], "description": "Page size; numeric string accepted for query-param parity" }, "next": { "type": "string", "description": "Opaque cursor from a previous page" }, "siteId": { "type": "string", "description": "Filter by siteId" } }, "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "email": { "type": "string" }, "phoneNumber": { "type": [ "string", "null" ] }, "name": { "type": "string" }, "receivesNotifications": { "type": "boolean" }, "receivesReports": { "type": "boolean" }, "canEmailSite": { "type": "boolean" }, "canTextSite": { "type": "boolean" }, "status": { "type": "string" }, "preferredChannel": { "type": "string" }, "preferredChannelFrom": { "type": "string" }, "preferredChannelThrough": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } }, "next": { "type": "string" } }, "required": [ "items" ], "additionalProperties": true } ``` ## List conversations {#list-conversations} List the owner's conversations with Site Star about this site: id, purpose (general, task, change, idea, report, feedback, notification, review), subjectId (the task, change, or idea discussed), status ('active' or 'closed'), summary, and lastMessageAt. Read one with list_messages. Visitor chats with the website are not here; they are in list_site_events. - HTTP: `GET /conversations` - MCP: `list_conversations` Required permissions: `conversation:list`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer / string | No | Page size; numeric string accepted for query-param parity | | `next` | string | No | Opaque cursor from a previous page | | `siteId` | string | No | Filter by siteId | ### Input schema ```json { "type": "object", "properties": { "limit": { "type": [ "integer", "string" ], "description": "Page size; numeric string accepted for query-param parity" }, "next": { "type": "string", "description": "Opaque cursor from a previous page" }, "siteId": { "type": "string", "description": "Filter by siteId" } }, "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "purpose": { "type": "string" }, "subjectId": { "type": "string" }, "status": { "type": "string" }, "dialogueId": { "type": "string" }, "summary": { "type": "string" }, "lastMessageAt": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } }, "next": { "type": "string" } }, "required": [ "items" ], "additionalProperties": true } ``` ## List domains {#list-domains} List a site's domains with status and the DNS records to publish for pending verifications. - HTTP: `GET /sites/{siteId}/domains` - MCP: `list_domains` Required permissions: `invoke.sitestar:list-domains`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | The site whose domains to list. | ### Input schema ```json { "type": "object", "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1, "description": "The site whose domains to list." } }, "required": [ "siteId" ] } ``` ### Result schema ```json { "type": "object", "additionalProperties": false, "properties": { "domains": { "type": "array", "items": { "type": "object", "required": [ "domain", "type", "isPrimary", "status", "statusReason", "verification", "created", "modified" ], "properties": { "domain": { "type": "string" }, "type": { "type": "string", "enum": [ "custom", "platform" ] }, "isPrimary": { "type": "boolean" }, "status": { "type": "string", "enum": [ "pending_dns", "verifying", "active", "failed" ] }, "statusReason": { "type": "string", "description": "Human-readable reason when status is failed; empty otherwise." }, "verification": { "type": "object", "required": [ "records" ], "properties": { "records": { "type": "array", "description": "Recommended option's DNS records to publish.", "items": { "type": "object", "required": [ "type", "host", "value" ], "properties": { "type": { "type": "string" }, "host": { "type": "string" }, "value": { "type": "string" } } } }, "plan": { "type": "object", "description": "Shape/provider-aware connection plan (v2 rows only; absent for v1 rows)." } } }, "created": { "type": "string" }, "modified": { "type": "string" } } } } }, "required": [ "domains" ] } ``` ## List files {#list-files} List files uploaded to this site (images, documents), newest first. Screenshots and other machine-made files are excluded. Each row has id, name, contentType, kind, contentLength, and a generated caption once processed. Pass an id to get_file to read the file, or to create_task as an attachment. Page with limit and next. - HTTP: `GET /sites/{siteId}/files` - MCP: `list_files` Required permissions: `site_file:list.by-site-uploads`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer / string | No | Page size; numeric string accepted for query-param parity | | `next` | string | No | Opaque cursor from a previous page | | `siteId` | string | No | Filter by siteId | ### Input schema ```json { "type": "object", "properties": { "limit": { "type": [ "integer", "string" ], "description": "Page size; numeric string accepted for query-param parity" }, "next": { "type": "string", "description": "Opaque cursor from a previous page" }, "siteId": { "type": "string", "description": "Filter by siteId" } }, "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "type": { "type": "string" }, "name": { "type": "string" }, "contentType": { "type": "string" }, "contentLength": { "type": "number" }, "status": { "type": "string" }, "source": { "type": "string" }, "kind": { "type": "string" }, "usage": { "type": "string" }, "conversationId": { "type": "string" }, "messageId": { "type": "string" }, "taskId": { "type": "string" }, "addedBy": { "type": "string" }, "caption": { "type": "string" }, "textContent": { "type": "string" }, "expires": { "type": "number" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } }, "next": { "type": "string" } }, "required": [ "items" ], "additionalProperties": true } ``` ## List ideas {#list-ideas} List the site's ideas, newest first: proposals the owner may accept, dismiss, or turn into work. status is proposed, promoting, accepted, dismissed, or withdrawn; taskId is set once an idea became a task. Use it for the history of suggestions. It is a page, so for ideas still awaiting a decision use list_needs_you, then promote_idea or dismiss_idea. - HTTP: `GET /sites/{siteId}/ideas` - MCP: `list_ideas` Required permissions: `site_idea:list`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer / string | No | Page size; numeric string accepted for query-param parity | | `next` | string | No | Opaque cursor from a previous page | | `siteId` | string | No | Filter by siteId | ### Input schema ```json { "type": "object", "properties": { "limit": { "type": [ "integer", "string" ], "description": "Page size; numeric string accepted for query-param parity" }, "next": { "type": "string", "description": "Opaque cursor from a previous page" }, "siteId": { "type": "string", "description": "Filter by siteId" } }, "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "title": { "type": "string" }, "summary": { "type": "string" }, "status": { "type": "string" }, "discussionConversationId": { "type": "string" }, "taskId": { "type": "string" }, "sourceRef": { "type": "string" }, "sourceUrl": { "type": "string" }, "sourceCreatedAt": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } }, "next": { "type": "string" } }, "required": [ "items" ], "additionalProperties": true } ``` ## List inbound addresses {#list-inbound-addresses} List the addresses that route to this site: type 'email' (a custom email alias), 'sms' (the number contacts text the assistant at), or 'public-sms' (the visitor live-chat text number), each with address and status (pending, active, paused, released). The site's standard email address is not listed. Use it to answer what number to text the site at. - HTTP: `GET /sites/{siteId}/inbound-addresses` - MCP: `list_inbound_addresses` Required permissions: `site_inbound_address:list`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer / string | No | Page size; numeric string accepted for query-param parity | | `next` | string | No | Opaque cursor from a previous page | | `siteId` | string | No | Filter by siteId | ### Input schema ```json { "type": "object", "properties": { "limit": { "type": [ "integer", "string" ], "description": "Page size; numeric string accepted for query-param parity" }, "next": { "type": "string", "description": "Opaque cursor from a previous page" }, "siteId": { "type": "string", "description": "Filter by siteId" } }, "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "type": { "type": "string" }, "address": { "type": "string" }, "status": { "type": "string" }, "smsSenderId": { "type": "string" }, "registeredConfirmedAt": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } }, "next": { "type": "string" } }, "required": [ "items" ], "additionalProperties": true } ``` ## List messages {#list-messages} List messages in a conversation, newest first by default. Paginate with the returned 'next' cursor. - HTTP: `GET /conversations/{conversationId}/messages` - MCP: `list_messages` Required permissions: `invoke.sitestar:list-messages`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `conversationId` | string | Yes | | | `siteId` | string | Yes | | | `limit` | integer / string | No | Page size, 1-100 (default 50). Numeric string accepted for REST-query parity; non-numeric values fall back to the default. | | `next` | string | No | Opaque pagination cursor from a previous page. | | `order` | string | No | Allowed: "asc", "desc". Default: "desc". | ### Input schema ```json { "type": "object", "additionalProperties": false, "required": [ "conversationId", "siteId" ], "properties": { "conversationId": { "type": "string", "minLength": 1 }, "siteId": { "type": "string", "minLength": 1 }, "limit": { "type": [ "integer", "string" ], "description": "Page size, 1-100 (default 50). Numeric string accepted for REST-query parity; non-numeric values fall back to the default." }, "next": { "type": "string", "description": "Opaque pagination cursor from a previous page." }, "order": { "type": "string", "enum": [ "asc", "desc" ], "default": "desc" } } } ``` ### Result schema ```json { "type": "object", "additionalProperties": false, "required": [ "items" ], "properties": { "items": { "type": "array", "items": { "type": "object", "required": [ "id", "role", "content", "created" ], "properties": { "id": { "type": "string" }, "role": { "type": "string" }, "content": {}, "created": { "type": "string", "format": "date-time" }, "metadata": { "type": "object", "description": "Channel/provider metadata persisted on the row. Values are arbitrary JSON — e.g. email messages carry an 'attachments' array of file refs." }, "deliveries": { "type": "array", "description": "Where this message was sent and what came back, one entry per route. Absent means nothing is known about it — not that it arrived, and not that it failed.", "items": { "type": "object", "required": [ "id", "channel", "destinationLabel", "sendState", "outcome", "engagement" ], "properties": { "id": { "type": "string", "description": "Id of the send obligation this describes." }, "channel": { "type": "string", "enum": [ "email", "sms" ] }, "destinationLabel": { "type": "string", "description": "Where it was sent, as a display value." }, "sendState": { "type": "string", "enum": [ "pending", "accepted", "failed", "cancelled", "unknown" ], "description": "What happened to the handoff. 'accepted' means a provider took it, never that a person received it." }, "outcome": { "type": "string", "enum": [ "unknown", "delivered", "bounced", "rejected", "undelivered", "complained" ], "description": "What the provider later reported. 'unknown' means nothing has been reported, which is not a failure." }, "reasonKind": { "type": "string", "description": "Classification of a non-arrival, e.g. bounce-permanent, bounce-ambiguous, rejected." }, "reasonText": { "type": "string", "description": "Bounded provider diagnostic for a non-arrival." }, "acceptedAt": { "type": "string", "description": "When a provider accepted the send." }, "deliveredAt": { "type": "string" }, "bouncedAt": { "type": "string" }, "rejectedAt": { "type": "string" }, "complainedAt": { "type": "string" }, "engagement": { "type": "object", "description": "Observed signals only. 'unavailable' means the send could not carry the signal; 'unknown' means it is not known whether it could. Neither absence is evidence that nobody read the message.", "required": [ "opens", "clicks" ], "properties": { "opens": { "type": "string", "enum": [ "enabled", "unavailable", "unknown" ] }, "clicks": { "type": "string", "enum": [ "enabled", "unavailable", "unknown" ] }, "firstOpenedAt": { "type": "string" }, "lastOpenedAt": { "type": "string" }, "firstClickedAt": { "type": "string" }, "lastClickedAt": { "type": "string" } } } } } }, "deliveriesTruncated": { "type": "boolean", "description": "True when 'deliveries' is a partial list: the message reached more routes than are shown." } } } }, "next": { "type": "string", "description": "Present when another page exists." } } } ``` ## List items needing your attention {#list-needs-you} THE authoritative answer to 'where are we at' — two complete sets in one call: `items` is everything blocked on the owner's decision (oldest first), `inFlight` is every open piece of work the site owes them — requested or working tasks, changes being prepared or landing, a build in progress (newest first). Call this before saying anything about what is or is not pending; never infer that from the activity feed, which records what happened rather than what is still open. You may state that nothing is waiting on the owner ONLY if this call succeeded and `items` is empty, and that nothing is in progress ONLY if it succeeded and `inFlight` is empty — an empty `items` alone means no DECISION is pending, never that nothing is happening. If it errors, say you could not check — an error never means nothing is pending. - HTTP: `GET /sites/{siteId}/owner-blocked` - MCP: `list_needs_you` Required permissions: `invoke.sitestar:list-owner-blocked`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | ### Input schema ```json { "type": "object", "required": [ "siteId" ], "additionalProperties": false, "description": "Everything currently open for the site, split by who it waits on: `items` is what awaits the owner's decision (proposed ideas, changes waiting for review, a build draft in review), `inFlight` is open work the site owes the owner (requested/working tasks, changes being prepared or landing, a build in progress). Both sets are complete (pagination is exhausted server-side). Fails closed: if any underlying read does not complete the call errors rather than returning a short list.", "properties": { "siteId": { "type": "string", "minLength": 1 } } } ``` ### Result schema ```json { "type": "object", "required": [ "items", "inFlight", "complete" ], "properties": { "complete": { "type": "boolean", "description": "Always true on success — both sets are complete, not pages. Only assert 'nothing is waiting' when this is true and items is empty, and 'nothing is in progress' when this is true and inFlight is empty." }, "items": { "type": "array", "description": "Everything blocked on the owner's decision, oldest first.", "items": { "type": "object", "required": [ "kind", "id", "title", "status", "since" ], "properties": { "kind": { "type": "string", "description": "'idea', 'change', or 'build' — the entity the caller should link to." }, "id": { "type": "string" }, "title": { "type": "string" }, "status": { "type": "string", "description": "The blocking status: proposed, waiting-for-review, or in-review." }, "since": { "type": "string", "description": "Source clock (ISO). NOT 'waiting since' — an item can enter a blocking status more than once. Do not present it as a wait duration." } } } }, "inFlight": { "type": "array", "description": "Open work the site owes the owner — nothing here needs the owner to act. Newest first.", "items": { "type": "object", "required": [ "kind", "id", "title", "status", "since" ], "properties": { "kind": { "type": "string", "description": "'task', 'change', or 'build' — the entity the caller should link to." }, "id": { "type": "string" }, "title": { "type": "string" }, "status": { "type": "string", "description": "The in-flight status: requested, working, draft, changes-requested, approved-applying, queued-for-release, or a build status." }, "since": { "type": "string", "description": "Source clock (ISO) of when the item was created." } } } } } } ``` ## List pages {#list-pages} List the published site's pages from the live content inventory (route, title, description, type). Reflects the currently deployed site. - HTTP: `GET /sites/{siteId}/pages` - MCP: `list_pages` Required permissions: `invoke.sitestar:list-pages`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | ### Input schema ```json { "type": "object", "required": [ "siteId" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 } } } ``` ### Result schema ```json { "type": "object", "required": [ "pages" ], "properties": { "site": { "type": "object", "properties": { "name": { "type": "string" }, "url": { "type": "string" } } }, "pages": { "type": "array", "items": { "type": "object", "required": [ "route", "url", "type" ], "properties": { "route": { "type": "string" }, "url": { "type": "string" }, "type": { "type": "string", "description": "'page', or the post type name (e.g. 'blog')." }, "title": { "type": "string" }, "description": { "type": "string" }, "date": { "type": "string" }, "dateModified": { "type": "string" }, "image": { "type": "string" }, "markdown": { "type": "string", "description": "URL of the clean-markdown mirror, when the build emitted one." }, "noindex": { "type": "boolean" } } } } } } ``` ## List redirects {#list-redirects} List the site's URL redirect rules, in no particular order: id, from (a site path) and to (a site path or http(s) URL), each served as a 301. Read it before adding or changing a rule so the new rule never contradicts an existing one. - HTTP: `GET /sites/{siteId}/redirects` - MCP: `list_redirects` Required permissions: `site_redirect:list`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer / string | No | Page size; numeric string accepted for query-param parity | | `next` | string | No | Opaque cursor from a previous page | | `siteId` | string | No | Filter by siteId | ### Input schema ```json { "type": "object", "properties": { "limit": { "type": [ "integer", "string" ], "description": "Page size; numeric string accepted for query-param parity" }, "next": { "type": "string", "description": "Opaque cursor from a previous page" }, "siteId": { "type": "string", "description": "Filter by siteId" } }, "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "from": { "type": "string" }, "to": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } }, "next": { "type": "string" } }, "required": [ "items" ], "additionalProperties": true } ``` ## List site activity {#list-site-activity} List one feed tier of the site's activity timeline, newest first. Every row includes a server-rendered headline plus its subject title. - HTTP: `GET /sites/{siteId}/activity` - MCP: `list_site_activity` Required permissions: `invoke.sitestar:list-site-activity`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `level` | string | Yes | Feed tier: primary (main feed), detail, or trace. Allowed: "primary", "detail", "trace". | | `limit` | integer / string | No | Page size; numeric string accepted for query-param parity. | | `next` | string | No | Opaque cursor from a previous page. Only send a value returned by a previous call with the same siteId and level; omit it for the first page. | ### Input schema ```json { "type": "object", "required": [ "siteId", "level" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "level": { "type": "string", "enum": [ "primary", "detail", "trace" ], "description": "Feed tier: primary (main feed), detail, or trace." }, "limit": { "type": [ "integer", "string" ], "description": "Page size; numeric string accepted for query-param parity." }, "next": { "type": "string", "minLength": 1, "description": "Opaque cursor from a previous page. Only send a value returned by a previous call with the same siteId and level; omit it for the first page." } } } ``` ### Result schema ```json { "type": "object", "required": [ "items" ], "additionalProperties": false, "properties": { "items": { "type": "array", "items": { "type": "object", "required": [ "headline" ], "additionalProperties": true, "properties": { "headline": { "type": "string" } } } }, "next": { "type": "string" } } } ``` ## List site changes {#list-site-changes} List the site's changes, newest first, one page at a time. A change is a concrete update delivered for one task (taskId). status is draft, waiting-for-review, changes-requested, approved-applying, queued-for-release, live, or canceled; summary describes the current revision. Use it for recent or in-progress delivery work. It is not the source for what awaits the owner's review: that is list_needs_you, and verdicts go through decide_change. - HTTP: `GET /sites/{siteId}/changes` - MCP: `list_site_changes` Required permissions: `site_change:list`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer / string | No | Page size; numeric string accepted for query-param parity | | `next` | string | No | Opaque cursor from a previous page | | `siteId` | string | No | Filter by siteId | ### Input schema ```json { "type": "object", "properties": { "limit": { "type": [ "integer", "string" ], "description": "Page size; numeric string accepted for query-param parity" }, "next": { "type": "string", "description": "Opaque cursor from a previous page" }, "siteId": { "type": "string", "description": "Filter by siteId" } }, "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "taskId": { "type": "string" }, "title": { "type": "string" }, "summary": { "type": "string" }, "summaryHeadSha": { "type": "string" }, "status": { "type": "string" }, "reviewCycle": { "type": "number" }, "reviewCycleAnchor": { "type": "string" }, "desiredDecisionHeadSha": { "type": "string" }, "desiredDecisionOutcome": { "type": "string" }, "desiredDecisionReviewCycle": { "type": "number" }, "deliveredDecisionHeadSha": { "type": "string" }, "deliveredDecisionOutcome": { "type": "string" }, "deliveredDecisionReviewCycle": { "type": "number" }, "decisionReconciliationNeeded": { "type": "string" }, "decisionStatusHeadSha": { "type": "string" }, "decisionStatusOutcome": { "type": "string" }, "decisionStatusReviewCycle": { "type": "number" }, "discussionConversationId": { "type": "string" }, "sourceRef": { "type": "string" }, "sourceUrl": { "type": "string" }, "sourceHeadSha": { "type": "string" }, "acceptedAt": { "type": "string" }, "releaseId": { "type": "string" }, "releasedVersion": { "type": "string" }, "releasedAt": { "type": "string" }, "releaseUrl": { "type": "string" }, "deployedReleaseId": { "type": "string" }, "deployedVersion": { "type": "string" }, "deployedAt": { "type": "string" }, "deploymentRunId": { "type": "string" }, "deploymentSha": { "type": "string" }, "deploymentUrl": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } }, "next": { "type": "string" } }, "required": [ "items" ], "additionalProperties": true } ``` ## List site events {#list-site-events} The site's inbox, newest first: everything visitors sent through the site. kind 'form-submission' rows carry formType, pagePath, email, phone, the submitted fields in payload, and spamVerdict ('' not yet assessed, 'ham', or 'spam'). kind 'conversation' rows are visitor chats and texts; their sourceId is the visitorConversationId that list_visitor_messages takes. Page with limit and next. For one kind only, use list_site_events_by_kind. - HTTP: `GET /sites/{siteId}/events` - MCP: `list_site_events` Required permissions: `site_event:list`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer / string | No | Page size; numeric string accepted for query-param parity | | `next` | string | No | Opaque cursor from a previous page | | `siteId` | string | No | Filter by siteId | ### Input schema ```json { "type": "object", "properties": { "limit": { "type": [ "integer", "string" ], "description": "Page size; numeric string accepted for query-param parity" }, "next": { "type": "string", "description": "Opaque cursor from a previous page" }, "siteId": { "type": "string", "description": "Filter by siteId" } }, "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "kind": { "type": "string" }, "sourceId": { "type": "string" }, "domain": { "type": "string" }, "occurredAt": { "type": "string" }, "payload": { "type": "object" }, "fingerprint": { "type": "string" }, "hydrated": { "type": "boolean" }, "receiptPending": { "type": "boolean" }, "formType": { "type": "string" }, "pagePath": { "type": "string" }, "email": { "type": "string" }, "phone": { "type": "string" }, "spamVerdict": { "type": "string" }, "spamScore": { "type": "number" }, "spamReasons": { "type": "array" }, "spamSource": { "type": "string" }, "spamAssessedAt": { "type": "string" }, "handoffNotifiedAt": { "type": "string" }, "followUpEmailSentAt": { "type": "string" }, "handoffRemindedAt": { "type": "string" }, "handoffReminderDueAt": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } }, "next": { "type": "string" } }, "required": [ "items" ], "additionalProperties": true } ``` ## List site events by kind {#list-site-events-by-kind} The site's inbox filtered to one kind, newest first. kind 'form-submission' returns form fills (formType, pagePath, email, phone, the submitted fields in payload, spamVerdict). kind 'conversation' returns visitor chat and text conversations (sourceId is the visitorConversationId that list_visitor_messages takes). Page with limit and next. - HTTP: `GET /sites/{siteId}/events/kind/{kind}` - MCP: `list_site_events_by_kind` Required permissions: `site_event:list.by-kind`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer / string | No | Page size; numeric string accepted for query-param parity | | `next` | string | No | Opaque cursor from a previous page | | `siteId` | string | No | Filter by siteId | | `kind` | string | No | Which platform entity this mirrors. Allowed: "form-submission", "conversation". | ### Input schema ```json { "type": "object", "properties": { "limit": { "type": [ "integer", "string" ], "description": "Page size; numeric string accepted for query-param parity" }, "next": { "type": "string", "description": "Opaque cursor from a previous page" }, "siteId": { "type": "string", "description": "Filter by siteId" }, "kind": { "type": "string", "description": "Which platform entity this mirrors.", "enum": [ "form-submission", "conversation" ] } }, "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "kind": { "type": "string" }, "sourceId": { "type": "string" }, "domain": { "type": "string" }, "occurredAt": { "type": "string" }, "payload": { "type": "object" }, "fingerprint": { "type": "string" }, "hydrated": { "type": "boolean" }, "receiptPending": { "type": "boolean" }, "formType": { "type": "string" }, "pagePath": { "type": "string" }, "email": { "type": "string" }, "phone": { "type": "string" }, "spamVerdict": { "type": "string" }, "spamScore": { "type": "number" }, "spamReasons": { "type": "array" }, "spamSource": { "type": "string" }, "spamAssessedAt": { "type": "string" }, "handoffNotifiedAt": { "type": "string" }, "followUpEmailSentAt": { "type": "string" }, "handoffRemindedAt": { "type": "string" }, "handoffReminderDueAt": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } }, "next": { "type": "string" } }, "required": [ "items" ], "additionalProperties": true } ``` ## List sites {#list-sites} List websites available to this credential. An account-level credential receives every site in the account; a site-scoped credential receives only its bound site. - HTTP: `GET /sites` - MCP: `list_sites` Required permissions: `invoke.sitestar:list-sites`, `site:list`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer / string | No | Page size; numeric string accepted for query-parameter parity. | | `next` | string | No | Opaque cursor from a previous page. | ### Input schema ```json { "type": "object", "additionalProperties": false, "properties": { "limit": { "type": [ "integer", "string" ], "description": "Page size; numeric string accepted for query-parameter parity." }, "next": { "type": "string", "description": "Opaque cursor from a previous page." } } } ``` ### Result schema ```json { "type": "object", "required": [ "items" ], "properties": { "items": { "type": "array", "items": { "type": "object", "additionalProperties": true } }, "next": { "type": "string" } }, "additionalProperties": false } ``` ## List tasks {#list-tasks} List the site's tasks, newest first, one page at a time (limit, then next). A task is a piece of work the site is doing for the owner. status is requested, working, done, or live, or ends as failed or canceled; requestSource says whether the owner or the website asked. A page is never a complete picture of open work: for what is in progress or waiting on the owner, use list_needs_you. - HTTP: `GET /sites/{siteId}/tasks` - MCP: `list_tasks` Required permissions: `task:list`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `limit` | integer / string | No | Page size; numeric string accepted for query-param parity | | `next` | string | No | Opaque cursor from a previous page | | `siteId` | string | No | Filter by siteId | ### Input schema ```json { "type": "object", "properties": { "limit": { "type": [ "integer", "string" ], "description": "Page size; numeric string accepted for query-param parity" }, "next": { "type": "string", "description": "Opaque cursor from a previous page" }, "siteId": { "type": "string", "description": "Filter by siteId" } }, "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "status": { "type": "string" }, "statusChangedAt": { "type": "string" }, "origin": { "type": "string" }, "originRef": { "type": "string" }, "requestSource": { "type": "string" }, "requestedByUserId": { "type": "string" }, "reviewPolicy": { "type": "string" }, "sourceRetracted": { "type": "boolean" }, "conversationId": { "type": "string" }, "requestMessageId": { "type": "string" }, "discussionConversationId": { "type": "string" }, "sourceRef": { "type": "string" }, "sourceUrl": { "type": "string" }, "sourceCreatedAt": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } }, "next": { "type": "string" } }, "required": [ "items" ], "additionalProperties": true } ``` ## List visitor messages {#list-visitor-messages} Read the transcript of one VISITOR conversation — a person chatting with the website's live-chat widget or texting the site's number (NOT the owner's own conversation with Site Star; use list_messages for that). visitorConversationId comes from the site's inbox (site events of kind 'conversation'). Newest first by default; pass order=asc for reading order. Each message says who wrote it: the visitor, the site's automated agent, or a person replying from the dashboard. - HTTP: `GET /sites/{siteId}/visitor-conversations/{visitorConversationId}/messages` - MCP: `list_visitor_messages` Required permissions: `invoke.sitestar:list-visitor-conversation-messages`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `visitorConversationId` | string | Yes | The VISITOR conversation's id — the ULID after 'conversation:' in the inbox event id. Not the owner's own conversation. | | `limit` | integer / string | No | Messages per page, up to 100 (default 50). | | `next` | string | No | Opaque cursor from the previous page. | | `order` | string | No | desc (default) newest first; asc oldest first. Allowed: "asc", "desc". | ### Input schema ```json { "type": "object", "required": [ "siteId", "visitorConversationId" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "visitorConversationId": { "type": "string", "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$", "description": "The VISITOR conversation's id — the ULID after 'conversation:' in the inbox event id. Not the owner's own conversation." }, "limit": { "type": [ "integer", "string" ], "description": "Messages per page, up to 100 (default 50)." }, "next": { "type": "string", "maxLength": 2048, "description": "Opaque cursor from the previous page." }, "order": { "type": "string", "enum": [ "asc", "desc" ], "description": "desc (default) newest first; asc oldest first." } } } ``` ### Result schema ```json { "type": "object", "required": [ "conversationId", "agentMode", "channel", "status", "closedReason", "handoff", "lastOwnerMessageAt", "items" ], "additionalProperties": false, "properties": { "conversationId": { "type": "string" }, "agentMode": { "type": "string", "description": "'auto' — the site's agent is replying; 'paused' — a person has taken over and the agent stays silent." }, "channel": { "type": "string", "description": "How the visitor reached the site: chat (widget) or sms." }, "status": { "type": "string", "description": "'active' or 'closed'." }, "closedReason": { "type": "string", "enum": [ "", "turn_limit", "agent_ended", "owner", "idle" ], "description": "Why a closed conversation closed: the 20-message cap, the agent ending it, a person, or 30 minutes with no message (web only); empty while open." }, "handoff": { "type": "object", "description": "Agent-initiated handoff. state 'requested' means the site's agent paused itself and asked for a person — reason and summary say why; 'offered' means it suggested one; 'none' otherwise.", "required": [ "state", "reason", "summary", "offeredAt", "requestedAt", "pauseOrigin" ], "additionalProperties": false, "properties": { "state": { "type": "string", "enum": [ "none", "offered", "requested" ] }, "reason": { "type": "string", "enum": [ "", "visitor_requested", "out_of_scope", "action_not_supported", "complaint", "unable_to_help" ], "description": "Why the agent handed off; empty when it has not." }, "summary": { "type": "string", "description": "The agent's short account of what the visitor needs; empty when no handoff." }, "offeredAt": { "type": "string" }, "requestedAt": { "type": "string" }, "pauseOrigin": { "type": "string", "enum": [ "", "owner", "agent_handoff" ], "description": "Who paused the agent: a person from the inbox, or the agent's own handoff." } } }, "lastOwnerMessageAt": { "type": "string", "description": "When a person last replied from the inbox (ISO 8601); empty when never. Compare with handoff.requestedAt to answer 'is anyone waiting on me?'." }, "items": { "type": "array", "items": { "type": "object", "required": [ "id", "role", "content", "created", "kind", "author" ], "additionalProperties": false, "properties": { "id": { "type": "string" }, "role": { "type": "string", "description": "'user' is the visitor; 'assistant' is the site's agent or the owner (see author); 'tool' is an action or lookup the agent performed (see kind/tool)." }, "content": { "type": "string" }, "created": { "type": "string" }, "author": { "type": "string", "enum": [ "visitor", "agent", "owner" ], "description": "Who wrote it: the visitor, the site's automated agent, or a person replying from the dashboard." }, "kind": { "type": "string", "enum": [ "message", "tool" ], "description": "'message' — someone said something (content is the words); 'tool' — the site's agent DID something (content is a one-line label; see tool)." }, "tool": { "type": "object", "description": "Present on kind 'tool': the action or lookup the agent performed. display 'action' means the visitor saw it (a request sent to the team, an email, a handoff, the conversation ended); 'activity' is a lookup only staff see.", "required": [ "name", "outcome", "display", "isError", "input" ], "additionalProperties": false, "properties": { "name": { "type": "string" }, "outcome": { "type": "string", "description": "For actions: submitted, already_submitted, sent, already_sent, requested, offer_recorded, ended, unavailable, …; empty for lookups." }, "display": { "type": "string", "enum": [ "action", "activity" ] }, "isError": { "type": "boolean" }, "input": { "type": "object", "description": "The retained arguments the agent passed." }, "output": { "description": "The retained result; never page text or images." }, "provider": { "type": "string" }, "model": { "type": "string" } } }, "authorName": { "type": "string", "description": "The person's display name on owner messages." }, "authorId": { "type": "string", "description": "Opaque id of the dashboard user who sent an owner message." }, "channel": { "type": "string", "description": "Transport the message moved on (chat, sms, dashboard), when recorded." }, "attachments": { "type": "array", "description": "Photos the visitor sent with this message by MMS. Each url is a short-lived signed link minted for this read; fetch it now, never store it.", "items": { "type": "object", "required": [ "id", "contentType", "url" ], "additionalProperties": false, "properties": { "id": { "type": "string" }, "contentType": { "type": "string", "description": "image/jpeg, image/png, image/gif, or image/webp." }, "url": { "type": "string" } } } } } } }, "next": { "type": "string" } } } ``` ## Promote idea {#promote-idea} Promote a proposed site idea into a customer task. Returns an acknowledgment; promotion completes asynchronously. - HTTP: `POST /sites/{siteId}/ideas/{ideaId}/promote` - MCP: `promote_idea` Required permissions: `invoke.sitestar:promote-idea`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `ideaId` | string | Yes | | ### Input schema ```json { "type": "object", "required": [ "siteId", "ideaId" ], "additionalProperties": false, "description": "Turn a proposed idea into a task. Completion is asynchronous. Returns 409 NOT_PROPOSED when the idea is not eligible, 409 SOURCE_MISSING when its source is unavailable, or 404 NOT_FOUND for an unknown idea.", "properties": { "siteId": { "type": "string", "minLength": 1 }, "ideaId": { "type": "string", "minLength": 1 } } } ``` ### Result schema ```json { "type": "object", "required": [ "status", "sourceUrl" ], "description": "Acknowledgment only (REST surface returns it as 202): the issue relabel succeeded and the task materializes asynchronously through the mirror projection pipeline.", "properties": { "status": { "const": "promoting", "description": "The idea's transitional status after the accepted promote." }, "sourceUrl": { "type": "string", "format": "uri", "description": "HTML URL of the idea's source GitHub issue." } } } ``` ## Read page {#read-page} Read one published page's content as clean text, by route (e.g. '/', '/about', '/blog/my-post'). Reflects the currently deployed site, not pending changes. - HTTP: `GET /sites/{siteId}/page` - MCP: `read_page` Required permissions: `invoke.sitestar:read-page`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `route` | string | Yes | Page route path starting with '/'. | ### Input schema ```json { "type": "object", "required": [ "siteId", "route" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "route": { "type": "string", "minLength": 1, "maxLength": 500, "description": "Page route path starting with '/'." } } } ``` ### Result schema ```json { "type": "object", "required": [ "route", "source", "content" ], "properties": { "route": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "source": { "type": "string", "enum": [ "markdown", "html-extract" ], "description": "markdown = clean mirror; html-extract = stripped prerendered HTML." }, "content": { "type": "string" } } } ``` ## Remove contact {#remove-contact} Permanently remove one contact by id from list_contacts. They stop hearing from the site and lose any power to command it. To pause someone instead, use set_contact_status. A contact's email cannot be edited, so changing it means removing the contact and adding them again. - HTTP: `DELETE /sites/{siteId}/contacts/{id}` - MCP: `remove_contact` Required permissions: `site_contact:delete`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | The SiteContact siteId to delete | | `id` | string | Yes | The SiteContact id to delete | ### Input schema ```json { "type": "object", "properties": { "siteId": { "type": "string", "description": "The SiteContact siteId to delete" }, "id": { "type": "string", "description": "The SiteContact id to delete" } }, "required": [ "siteId", "id" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "deleted": { "type": "boolean" } }, "required": [ "deleted" ], "additionalProperties": true } ``` ## Remove domain {#remove-domain} Detach a custom hostname from a site. - HTTP: `DELETE /sites/{siteId}/domains/{domain}` - MCP: `remove_domain` Required permissions: `invoke.sitestar:remove-domain`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | The site to detach the hostname from. | | `domain` | string | Yes | The custom hostname to detach. | ### Input schema ```json { "type": "object", "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1, "description": "The site to detach the hostname from." }, "domain": { "type": "string", "minLength": 1, "description": "The custom hostname to detach." } }, "required": [ "siteId", "domain" ] } ``` ### Result schema ```json { "type": "object", "additionalProperties": false, "properties": { "success": { "type": "boolean", "const": true } }, "required": [ "success" ] } ``` ## Remove redirect {#remove-redirect} Remove one redirect rule by id from list_redirects. Its from path stops redirecting at the site's next publish and rebuild. - HTTP: `DELETE /sites/{siteId}/redirects/{id}` - MCP: `remove_redirect` Required permissions: `site_redirect:delete`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | The SiteRedirect siteId to delete | | `id` | string | Yes | The SiteRedirect id to delete | ### Input schema ```json { "type": "object", "properties": { "siteId": { "type": "string", "description": "The SiteRedirect siteId to delete" }, "id": { "type": "string", "description": "The SiteRedirect id to delete" } }, "required": [ "siteId", "id" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "deleted": { "type": "boolean" } }, "required": [ "deleted" ], "additionalProperties": true } ``` ## Request build revision {#request-build-revision} Send a site build's draft back to the builder with feedback. Only valid while a draft is under review (build status 'in-review'). Increments the revision round; the counter is computed server-side and cannot be supplied by the caller. - HTTP: `POST /sites/{siteId}/builds/{buildId}/revision` - MCP: `request_build_revision` Required permissions: `invoke.sitestar:request-build-revision`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `buildId` | string | No | Optional; defaults to the site's current build. | | `note` | string | No | What the customer wants changed. | ### Input schema ```json { "type": "object", "required": [ "siteId" ], "additionalProperties": false, "description": "Request changes to the draft under review. buildId defaults to the site's current build. Rejected with 409 build-not-in-review when no draft is awaiting review, and 403 when there is no authenticated user.", "properties": { "siteId": { "type": "string", "minLength": 1 }, "buildId": { "type": "string", "minLength": 1, "description": "Optional; defaults to the site's current build." }, "note": { "type": "string", "maxLength": 2000, "description": "What the customer wants changed." } } } ``` ### Result schema ```json { "type": "object", "description": "The build row, now in status 'revising'.", "required": [ "id", "siteId", "status", "created", "modified" ], "additionalProperties": false, "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "status": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" }, "builderName": { "type": "string" }, "assignedAt": { "type": "string" }, "draftPromisedAt": { "type": "string" }, "draftDeliveredAt": { "type": "string" }, "draftConfigVersion": { "type": "string" }, "intakeCompletedAt": { "type": "string" }, "revisionCount": { "type": "number" }, "revisionRequestedAt": { "type": "string" }, "revisionNote": { "type": "string" }, "approvedAt": { "type": "string" }, "approvedByUserId": { "type": "string" }, "consultationState": { "type": "string" }, "consultationAt": { "type": "string" } } } ``` ## Send message {#send-message} Send a user message into a site conversation. The assistant reply is generated asynchronously — poll list-messages. idempotencyKey makes retries safe. - HTTP: `POST /conversations/{conversationId}/messages` - MCP: `send_message` Required permissions: `invoke.sitestar:send-message`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `conversationId` | string | Yes | Conversation to append to (formerly the path parameter). | | `siteId` | string | Yes | Site that owns the conversation. | | `content` | string | No | Message body. May be blank when attachmentIds is non-empty. Role is always 'user'; assistant/system roles cannot be forged through this operation. | | `idempotencyKey` | string | No | Optional client retry token; retries carrying the same key return the original message instead of duplicating it. | | `attachmentIds` | array | No | Optional site-upload file ids to attach. Files must belong to this site and be ready. | ### Input schema ```json { "type": "object", "additionalProperties": false, "required": [ "conversationId", "siteId" ], "anyOf": [ { "required": [ "content" ] }, { "required": [ "attachmentIds" ] } ], "properties": { "conversationId": { "type": "string", "minLength": 1, "description": "Conversation to append to (formerly the path parameter)." }, "siteId": { "type": "string", "minLength": 1, "description": "Site that owns the conversation." }, "content": { "type": "string", "maxLength": 10000, "description": "Message body. May be blank when attachmentIds is non-empty. Role is always 'user'; assistant/system roles cannot be forged through this operation." }, "idempotencyKey": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,64}$", "description": "Optional client retry token; retries carrying the same key return the original message instead of duplicating it." }, "attachmentIds": { "type": "array", "maxItems": 10, "uniqueItems": true, "items": { "type": "string", "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$" }, "description": "Optional site-upload file ids to attach. Files must belong to this site and be ready." } } } ``` ### Result schema ```json { "type": "object", "additionalProperties": false, "required": [ "messageId", "dialogueId", "conversationId", "created", "queued", "deduplicated" ], "properties": { "messageId": { "type": "string" }, "dialogueId": { "type": "string" }, "conversationId": { "type": "string" }, "created": { "type": "string", "format": "date-time" }, "queued": { "type": "boolean", "description": "Whether the message entered the LLM-reply lifecycle (false = enqueue optimization failed; the stream path still drives it)." }, "deduplicated": { "type": "boolean", "description": "True when an idempotent retry matched an already-stored message." } } } ``` ## Send visitor message {#send-visitor-message} Reply to a VISITOR in one of the website's live-chat or SMS conversations, as the business. The visitor sees it in their chat widget immediately, or as a text message for SMS conversations. Use this only when the owner has told you what to say to that visitor; it does not pause the site's automated agent — call set_visitor_chat_mode with agentMode=paused first if the owner wants to handle the conversation alone. - HTTP: `POST /sites/{siteId}/visitor-conversations/{visitorConversationId}/messages` - MCP: `send_visitor_message` Required permissions: `invoke.sitestar:send-visitor-conversation-message`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `visitorConversationId` | string | Yes | | | `content` | string | Yes | The reply, as the visitor should read it. | | `idempotencyKey` | string | No | Retry token: the same key with the same content never sends twice. When omitted it is derived from the conversation, the sender, and the content, so a retried call is safe and a different message still goes through. | ### Input schema ```json { "type": "object", "required": [ "siteId", "visitorConversationId", "content" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "visitorConversationId": { "type": "string", "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$" }, "content": { "type": "string", "minLength": 1, "maxLength": 10000, "description": "The reply, as the visitor should read it." }, "idempotencyKey": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,64}$", "description": "Retry token: the same key with the same content never sends twice. When omitted it is derived from the conversation, the sender, and the content, so a retried call is safe and a different message still goes through." } } } ``` ### Result schema ```json { "type": "object", "required": [ "conversationId", "message", "deduplicated", "sms" ], "additionalProperties": false, "properties": { "conversationId": { "type": "string" }, "message": { "type": "object", "required": [ "id", "role", "content", "created", "kind", "author" ], "additionalProperties": false, "properties": { "id": { "type": "string" }, "role": { "type": "string", "description": "'user' is the visitor; 'assistant' is the site's agent or the owner (see author); 'tool' is an action or lookup the agent performed (see kind/tool)." }, "content": { "type": "string" }, "created": { "type": "string" }, "author": { "type": "string", "enum": [ "visitor", "agent", "owner" ], "description": "Who wrote it: the visitor, the site's automated agent, or a person replying from the dashboard." }, "kind": { "type": "string", "enum": [ "message", "tool" ], "description": "'message' — someone said something (content is the words); 'tool' — the site's agent DID something (content is a one-line label; see tool)." }, "tool": { "type": "object", "description": "Present on kind 'tool': the action or lookup the agent performed. display 'action' means the visitor saw it (a request sent to the team, an email, a handoff, the conversation ended); 'activity' is a lookup only staff see.", "required": [ "name", "outcome", "display", "isError", "input" ], "additionalProperties": false, "properties": { "name": { "type": "string" }, "outcome": { "type": "string", "description": "For actions: submitted, already_submitted, sent, already_sent, requested, offer_recorded, ended, unavailable, …; empty for lookups." }, "display": { "type": "string", "enum": [ "action", "activity" ] }, "isError": { "type": "boolean" }, "input": { "type": "object", "description": "The retained arguments the agent passed." }, "output": { "description": "The retained result; never page text or images." }, "provider": { "type": "string" }, "model": { "type": "string" } } }, "authorName": { "type": "string", "description": "The person's display name on owner messages." }, "authorId": { "type": "string", "description": "Opaque id of the dashboard user who sent an owner message." }, "channel": { "type": "string", "description": "Transport the message moved on (chat, sms, dashboard), when recorded." } } }, "deduplicated": { "type": "boolean", "description": "True when the idempotencyKey matched an earlier send; nothing new went out." }, "sms": { "type": "object", "required": [ "status" ], "additionalProperties": false, "properties": { "status": { "type": "string", "enum": [ "not_applicable", "sent", "failed" ], "description": "Text delivery for SMS conversations: not_applicable for web chat, sent when the carrier accepted the text, failed when it did not (see reason)." }, "providerMessageId": { "type": "string" }, "reason": { "type": "string" }, "retryable": { "type": "boolean" } } } } } ``` ## Set chat handoff enabled {#set-chat-handoff-enabled} Choose whether the site's public chat assistant may hand a visitor conversation to the owner's team (chatHandoffEnabled). When on, the chat assistant can pause itself and email the contacts who receive notifications. When off, it keeps answering visitors on its own. On by default. - HTTP: `PATCH /sites/{id}/chat-handoff` - MCP: `set_chat_handoff_enabled` Required permissions: `site:update.set-chat-handoff-enabled`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | Yes | The Site id to update | | `chatHandoffEnabled` | boolean | Yes | Whether the site's chat assistant may hand a visitor conversation to your team (it pauses itself and emails your notification contacts). On by default; switch it off to keep the assistant answering on its own. Contacts who receive notifications are the recipients; with none, the assistant will not offer a follow-up. | ### Input schema ```json { "type": "object", "properties": { "id": { "type": "string", "description": "The Site id to update" }, "chatHandoffEnabled": { "type": "boolean", "description": "Whether the site's chat assistant may hand a visitor conversation to your team (it pauses itself and emails your notification contacts). On by default; switch it off to keep the assistant answering on its own. Contacts who receive notifications are the recipients; with none, the assistant will not offer a follow-up." } }, "required": [ "id", "chatHandoffEnabled" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteKey": { "type": "string" }, "name": { "type": "string" }, "primaryDomain": { "type": [ "string", "null" ] }, "onboardingDomain": { "type": "string" }, "status": { "type": "string" }, "activeConfigVersion": { "type": "string" }, "coreVersion": { "type": "string" }, "hostingMode": { "type": "string" }, "reviewPolicy": { "type": "string" }, "timezone": { "type": "string" }, "setupJobId": { "type": "string" }, "launchLockAt": { "type": "string" }, "transferLock": { "type": "string" }, "transferredAt": { "type": "string" }, "archivedAt": { "type": "string" }, "activatedAt": { "type": "string" }, "activationReason": { "type": "string" }, "privateMode": { "type": "boolean" }, "geoBlocking": { "type": "string" }, "smsEnabled": { "type": "boolean" }, "chatSmsEnabled": { "type": "boolean" }, "chatHandoffEnabled": { "type": "boolean" }, "blockedCountries": { "type": "array" }, "screenshot": { "type": "object" }, "icon": { "type": "object" }, "created": { "type": "string" }, "modified": { "type": "string" }, "subscriptionId": { "type": "string" }, "planId": { "type": "string" }, "planStatus": { "type": "string" }, "planLimits": { "type": "object" }, "subscriptionStatus": { "type": "string" }, "currentPeriodEnd": { "type": "string" }, "stampVersion": { "type": "string" } }, "additionalProperties": true } ``` ## Set chat SMS enabled {#set-chat-sms-enabled} Pause or resume the visitor-facing text number that live chat continues on (chatSmsEnabled). It only switches a number Site Star support already set up: turning it on without one is refused with PUBLIC_SMS_NOT_PROVISIONED and nothing changes. get_chat_sms_sender shows whether a number exists. - HTTP: `PATCH /sites/{id}/chat-sms` - MCP: `set_chat_sms_enabled` Required permissions: `site:update.set-chat-sms-enabled`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | Yes | The Site id to update | | `chatSmsEnabled` | boolean | Yes | Whether the site's visitor-facing text number (live-chat SMS) is on. The number is set up by Sitestar support; this pauses/resumes it and is refused when none exists. | ### Input schema ```json { "type": "object", "properties": { "id": { "type": "string", "description": "The Site id to update" }, "chatSmsEnabled": { "type": "boolean", "description": "Whether the site's visitor-facing text number (live-chat SMS) is on. The number is set up by Sitestar support; this pauses/resumes it and is refused when none exists." } }, "required": [ "id", "chatSmsEnabled" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteKey": { "type": "string" }, "name": { "type": "string" }, "primaryDomain": { "type": [ "string", "null" ] }, "onboardingDomain": { "type": "string" }, "status": { "type": "string" }, "activeConfigVersion": { "type": "string" }, "coreVersion": { "type": "string" }, "hostingMode": { "type": "string" }, "reviewPolicy": { "type": "string" }, "timezone": { "type": "string" }, "setupJobId": { "type": "string" }, "launchLockAt": { "type": "string" }, "transferLock": { "type": "string" }, "transferredAt": { "type": "string" }, "archivedAt": { "type": "string" }, "activatedAt": { "type": "string" }, "activationReason": { "type": "string" }, "privateMode": { "type": "boolean" }, "geoBlocking": { "type": "string" }, "smsEnabled": { "type": "boolean" }, "chatSmsEnabled": { "type": "boolean" }, "chatHandoffEnabled": { "type": "boolean" }, "blockedCountries": { "type": "array" }, "screenshot": { "type": "object" }, "icon": { "type": "object" }, "created": { "type": "string" }, "modified": { "type": "string" }, "subscriptionId": { "type": "string" }, "planId": { "type": "string" }, "planStatus": { "type": "string" }, "planLimits": { "type": "object" }, "subscriptionStatus": { "type": "string" }, "currentPeriodEnd": { "type": "string" }, "stampVersion": { "type": "string" } }, "additionalProperties": true } ``` ## Set contact name {#set-contact-name} Update a contact’s name. - HTTP: `PATCH /sites/{siteId}/contacts/{id}/name` Required permissions: `site_contact:update.set-name`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | The SiteContact siteId to update | | `id` | string | Yes | The SiteContact id to update | | `name` | string | Yes | Display name for the contact (optional). | ### Input schema ```json { "type": "object", "properties": { "siteId": { "type": "string", "description": "The SiteContact siteId to update" }, "id": { "type": "string", "description": "The SiteContact id to update" }, "name": { "type": "string", "description": "Display name for the contact (optional).", "maxLength": 200 } }, "required": [ "siteId", "id", "name" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "email": { "type": "string" }, "phoneNumber": { "type": [ "string", "null" ] }, "name": { "type": "string" }, "receivesNotifications": { "type": "boolean" }, "receivesReports": { "type": "boolean" }, "canEmailSite": { "type": "boolean" }, "canTextSite": { "type": "boolean" }, "status": { "type": "string" }, "preferredChannel": { "type": "string" }, "preferredChannelFrom": { "type": "string" }, "preferredChannelThrough": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } ``` ## Set contact notifications {#set-contact-notifications} Change one site contact's notification preferences (receivesNotifications, receivesReports) and their channel directive (preferredChannel with an optional from/through calendar window). A platform user may target any contact of the site; an authorized site contact on the agent surface may target only their own row; anyone else is refused. - HTTP: `PATCH /sites/{siteId}/contacts/{contactId}/notifications` - MCP: `set_contact_notifications` Required permissions: `invoke.sitestar:set-contact-notification-prefs`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `contactId` | string | Yes | The contact's id exactly as returned by the contact list (26 uppercase characters). | | `receivesNotifications` | boolean | No | Whether this contact receives operational alerts and form messages. | | `receivesReports` | boolean | No | Whether this contact receives scheduled reports like the weekly email. | | `preferredChannel` | string | No | Which channel to PREFER when the site could reach this person more than one way — a tilt, not a switch: the other channel stays available. "" clears the preference and its dates. Allowed: "", "email", "sms". | | `preferredChannelFrom` | string | No | First day the preference applies, YYYY-MM-DD in the site's local time; omit or "" for immediately. Use it when someone says the preference starts later ("text me next week"). | | `preferredChannelThrough` | string | No | Last day the preference applies, YYYY-MM-DD in the site's local time; omit or "" for no end. "Text me this week, I'm out" is a through date; "just text me from now on" has none. | ### Input schema ```json { "type": "object", "required": [ "siteId", "contactId" ], "additionalProperties": false, "description": "Which contact and which flags to change. Identity comes from the trusted context only: a platform user may target any contact; an agent-surface contact only themselves (403 FORBIDDEN otherwise); system-only callers are rejected (403 UNAUTHORIZED). Provide at least one flag — an omitted flag keeps its current value.", "properties": { "siteId": { "type": "string", "minLength": 1 }, "contactId": { "type": "string", "minLength": 1, "pattern": "^[0-9A-F]{26}$", "description": "The contact's id exactly as returned by the contact list (26 uppercase characters)." }, "receivesNotifications": { "type": "boolean", "description": "Whether this contact receives operational alerts and form messages." }, "receivesReports": { "type": "boolean", "description": "Whether this contact receives scheduled reports like the weekly email." }, "preferredChannel": { "type": "string", "enum": [ "", "email", "sms" ], "description": "Which channel to PREFER when the site could reach this person more than one way — a tilt, not a switch: the other channel stays available. \"\" clears the preference and its dates." }, "preferredChannelFrom": { "type": "string", "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$", "description": "First day the preference applies, YYYY-MM-DD in the site's local time; omit or \"\" for immediately. Use it when someone says the preference starts later (\"text me next week\")." }, "preferredChannelThrough": { "type": "string", "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$", "description": "Last day the preference applies, YYYY-MM-DD in the site's local time; omit or \"\" for no end. \"Text me this week, I'm out\" is a through date; \"just text me from now on\" has none." } } } ``` ### Result schema ```json { "type": "object", "required": [ "contactId", "receivesNotifications", "receivesReports", "preferredChannel", "preferredChannelFrom", "preferredChannelThrough" ], "properties": { "contactId": { "type": "string" }, "receivesNotifications": { "type": "boolean" }, "receivesReports": { "type": "boolean" }, "preferredChannel": { "type": "string" }, "preferredChannelFrom": { "type": "string" }, "preferredChannelThrough": { "type": "string" } } } ``` ## Set contact status {#set-contact-status} Set one contact's status by id from list_contacts. 'disabled' mutes them everywhere (no notifications, reports, or commands by text or phone) while keeping their settings; 'active' restores them. Prefer this over remove_contact for a temporary pause. - HTTP: `PATCH /sites/{siteId}/contacts/{id}/status` - MCP: `set_contact_status` Required permissions: `site_contact:update.set-status`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | The SiteContact siteId to update | | `id` | string | Yes | The SiteContact id to update | | `status` | string | Yes | active, or disabled (muted everywhere, settings kept). Allowed: "active", "disabled". | ### Input schema ```json { "type": "object", "properties": { "siteId": { "type": "string", "description": "The SiteContact siteId to update" }, "id": { "type": "string", "description": "The SiteContact id to update" }, "status": { "type": "string", "description": "active, or disabled (muted everywhere, settings kept).", "enum": [ "active", "disabled" ] } }, "required": [ "siteId", "id", "status" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "email": { "type": "string" }, "phoneNumber": { "type": [ "string", "null" ] }, "name": { "type": "string" }, "receivesNotifications": { "type": "boolean" }, "receivesReports": { "type": "boolean" }, "canEmailSite": { "type": "boolean" }, "canTextSite": { "type": "boolean" }, "status": { "type": "string" }, "preferredChannel": { "type": "string" }, "preferredChannelFrom": { "type": "string" }, "preferredChannelThrough": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } ``` ## Set country restrictions {#set-geo-blocking} Set which countries are blocked from visiting the site. geoBlocking '' restores the Site Star default list, 'off' blocks no country, and 'custom' blocks exactly blockedCountries (1 to 50 two-letter ISO codes such as ['CN','RU']) with no defaults added. A custom list replaces the previous one, so read get_site first and include every country that should stay blocked. Reaches the edge within seconds. - HTTP: `PATCH /sites/{id}/geo-blocking` - MCP: `set_geo_blocking` Required permissions: `site:update.set-geo-blocking`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | Yes | The Site id to update | | `geoBlocking` | string | Yes | Geo-blocking mode: "" = platform default, "off" = disabled, "custom" = exactly blockedCountries. Allowed: "", "off", "custom". | | `blockedCountries` | array | No | ISO 3166-1 alpha-2 codes blocked at the edge when geoBlocking is "custom"; empty otherwise. | ### Input schema ```json { "type": "object", "properties": { "id": { "type": "string", "description": "The Site id to update" }, "geoBlocking": { "type": "string", "description": "Geo-blocking mode: \"\" = platform default, \"off\" = disabled, \"custom\" = exactly blockedCountries.", "enum": [ "", "off", "custom" ] }, "blockedCountries": { "type": "array", "description": "ISO 3166-1 alpha-2 codes blocked at the edge when geoBlocking is \"custom\"; empty otherwise." } }, "required": [ "id", "geoBlocking" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteKey": { "type": "string" }, "name": { "type": "string" }, "primaryDomain": { "type": [ "string", "null" ] }, "onboardingDomain": { "type": "string" }, "status": { "type": "string" }, "activeConfigVersion": { "type": "string" }, "coreVersion": { "type": "string" }, "hostingMode": { "type": "string" }, "reviewPolicy": { "type": "string" }, "timezone": { "type": "string" }, "setupJobId": { "type": "string" }, "launchLockAt": { "type": "string" }, "transferLock": { "type": "string" }, "transferredAt": { "type": "string" }, "archivedAt": { "type": "string" }, "activatedAt": { "type": "string" }, "activationReason": { "type": "string" }, "privateMode": { "type": "boolean" }, "geoBlocking": { "type": "string" }, "smsEnabled": { "type": "boolean" }, "chatSmsEnabled": { "type": "boolean" }, "chatHandoffEnabled": { "type": "boolean" }, "blockedCountries": { "type": "array" }, "screenshot": { "type": "object" }, "icon": { "type": "object" }, "created": { "type": "string" }, "modified": { "type": "string" }, "subscriptionId": { "type": "string" }, "planId": { "type": "string" }, "planStatus": { "type": "string" }, "planLimits": { "type": "object" }, "subscriptionStatus": { "type": "string" }, "currentPeriodEnd": { "type": "string" }, "stampVersion": { "type": "string" } }, "additionalProperties": true } ``` ## Set primary domain {#set-primary-domain} Make an already-active hostname the site's primary domain. - HTTP: `POST /sites/{siteId}/domains/{domain}/primary` - MCP: `set_primary_domain` Required permissions: `invoke.sitestar:set-primary-domain`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | The site whose primary domain to repoint. | | `domain` | string | Yes | An already-active hostname on the site to make primary. | ### Input schema ```json { "type": "object", "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1, "description": "The site whose primary domain to repoint." }, "domain": { "type": "string", "minLength": 1, "description": "An already-active hostname on the site to make primary." } }, "required": [ "siteId", "domain" ] } ``` ### Result schema ```json { "type": "object", "additionalProperties": false, "properties": { "domain": { "type": "object", "required": [ "domain", "type", "isPrimary", "status", "statusReason", "verification", "created", "modified" ], "properties": { "domain": { "type": "string" }, "type": { "type": "string", "enum": [ "custom", "platform" ] }, "isPrimary": { "type": "boolean" }, "status": { "type": "string", "enum": [ "pending_dns", "verifying", "active", "failed" ] }, "statusReason": { "type": "string" }, "verification": { "type": "object", "required": [ "records" ], "properties": { "records": { "type": "array", "items": { "type": "object", "required": [ "type", "host", "value" ], "properties": { "type": { "type": "string" }, "host": { "type": "string" }, "value": { "type": "string" } } } }, "plan": { "type": "object" } } }, "created": { "type": "string" }, "modified": { "type": "string" } } } }, "required": [ "domain" ] } ``` ## Set redirect target {#set-redirect-target} Change where an existing redirect rule points (to), by id from list_redirects. The from path cannot change: remove the rule and add a new one instead. Takes effect at the site's next publish and rebuild. - HTTP: `PATCH /sites/{siteId}/redirects/{id}/target` - MCP: `set_redirect_target` Required permissions: `site_redirect:update.set-target`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | The SiteRedirect siteId to update | | `id` | string | Yes | The SiteRedirect id to update | | `to` | string | Yes | Target: a site-relative path or an absolute http(s) URL. | ### Input schema ```json { "type": "object", "properties": { "siteId": { "type": "string", "description": "The SiteRedirect siteId to update" }, "id": { "type": "string", "description": "The SiteRedirect id to update" }, "to": { "type": "string", "description": "Target: a site-relative path or an absolute http(s) URL.", "pattern": "^(/(?!/)\\S*|https?://\\S+)$", "minLength": 1, "maxLength": 512 } }, "required": [ "siteId", "id", "to" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "from": { "type": "string" }, "to": { "type": "string" }, "created": { "type": "string" }, "modified": { "type": "string" } }, "additionalProperties": true } ``` ## Set site privacy {#set-site-privacy} Turn the site's password gate on or off (privateMode). true means visitors need the gate password (privateAuthSecret from get_site); false makes the site public. A site that has not launched stays gated regardless, so turning privacy off before launch only takes effect at launch. Reaches the edge within seconds. - HTTP: `PATCH /sites/{id}/privacy` - MCP: `set_site_privacy` Required permissions: `site:update.set-privacy`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | Yes | The Site id to update | | `privateMode` | boolean | Yes | Keep the site gated behind HTTP auth (always on until launch; optional after). | ### Input schema ```json { "type": "object", "properties": { "id": { "type": "string", "description": "The Site id to update" }, "privateMode": { "type": "boolean", "description": "Keep the site gated behind HTTP auth (always on until launch; optional after)." } }, "required": [ "id", "privateMode" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteKey": { "type": "string" }, "name": { "type": "string" }, "primaryDomain": { "type": [ "string", "null" ] }, "onboardingDomain": { "type": "string" }, "status": { "type": "string" }, "activeConfigVersion": { "type": "string" }, "coreVersion": { "type": "string" }, "hostingMode": { "type": "string" }, "reviewPolicy": { "type": "string" }, "timezone": { "type": "string" }, "setupJobId": { "type": "string" }, "launchLockAt": { "type": "string" }, "transferLock": { "type": "string" }, "transferredAt": { "type": "string" }, "archivedAt": { "type": "string" }, "activatedAt": { "type": "string" }, "activationReason": { "type": "string" }, "privateMode": { "type": "boolean" }, "geoBlocking": { "type": "string" }, "smsEnabled": { "type": "boolean" }, "chatSmsEnabled": { "type": "boolean" }, "chatHandoffEnabled": { "type": "boolean" }, "blockedCountries": { "type": "array" }, "screenshot": { "type": "object" }, "icon": { "type": "object" }, "created": { "type": "string" }, "modified": { "type": "string" }, "subscriptionId": { "type": "string" }, "planId": { "type": "string" }, "planStatus": { "type": "string" }, "planLimits": { "type": "object" }, "subscriptionStatus": { "type": "string" }, "currentPeriodEnd": { "type": "string" }, "stampVersion": { "type": "string" } }, "additionalProperties": true } ``` ## Set site timezone {#set-site-timezone} Update a Site using set timezone - HTTP: `PATCH /sites/{id}/timezone` Required permissions: `site:update.set-timezone`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | Yes | The Site id to update | | `timezone` | string | Yes | IANA timezone the site's local-hour schedules run in (e.g. America/Chicago). | ### Input schema ```json { "type": "object", "properties": { "id": { "type": "string", "description": "The Site id to update" }, "timezone": { "type": "string", "description": "IANA timezone the site's local-hour schedules run in (e.g. America/Chicago).", "pattern": "^[A-Za-z_]+(?:/[A-Za-z0-9_+\\-]+)*$", "maxLength": 64 } }, "required": [ "id", "timezone" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteKey": { "type": "string" }, "name": { "type": "string" }, "primaryDomain": { "type": [ "string", "null" ] }, "onboardingDomain": { "type": "string" }, "status": { "type": "string" }, "activeConfigVersion": { "type": "string" }, "coreVersion": { "type": "string" }, "hostingMode": { "type": "string" }, "reviewPolicy": { "type": "string" }, "timezone": { "type": "string" }, "setupJobId": { "type": "string" }, "launchLockAt": { "type": "string" }, "transferLock": { "type": "string" }, "transferredAt": { "type": "string" }, "archivedAt": { "type": "string" }, "activatedAt": { "type": "string" }, "activationReason": { "type": "string" }, "privateMode": { "type": "boolean" }, "geoBlocking": { "type": "string" }, "smsEnabled": { "type": "boolean" }, "chatSmsEnabled": { "type": "boolean" }, "chatHandoffEnabled": { "type": "boolean" }, "blockedCountries": { "type": "array" }, "screenshot": { "type": "object" }, "icon": { "type": "object" }, "created": { "type": "string" }, "modified": { "type": "string" }, "subscriptionId": { "type": "string" }, "planId": { "type": "string" }, "planStatus": { "type": "string" }, "planLimits": { "type": "object" }, "subscriptionStatus": { "type": "string" }, "currentPeriodEnd": { "type": "string" }, "stampVersion": { "type": "string" } }, "additionalProperties": true } ``` ## Set SMS enabled {#set-sms-enabled} Turn texting the site's assistant on or off (smsEnabled). On resumes the site's paused number or buys a new one; off pauses the number without releasing it. Turning it on needs a paid site plan (refused with PAYMENT_REQUIRED) and room in the plan (LIMIT_EXCEEDED). Any failure leaves the setting unchanged. After turning it on, list_inbound_addresses shows the number. - HTTP: `PATCH /sites/{id}/sms` - MCP: `set_sms_enabled` Required permissions: `site:update.set-sms-enabled`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | Yes | The Site id to update | | `smsEnabled` | boolean | Yes | Whether contacts can text this site's assistant. Enabling provisions (or resumes) the site's phone number; disabling pauses it. | ### Input schema ```json { "type": "object", "properties": { "id": { "type": "string", "description": "The Site id to update" }, "smsEnabled": { "type": "boolean", "description": "Whether contacts can text this site's assistant. Enabling provisions (or resumes) the site's phone number; disabling pauses it." } }, "required": [ "id", "smsEnabled" ], "additionalProperties": false } ``` ### Result schema ```json { "type": "object", "properties": { "id": { "type": "string" }, "siteKey": { "type": "string" }, "name": { "type": "string" }, "primaryDomain": { "type": [ "string", "null" ] }, "onboardingDomain": { "type": "string" }, "status": { "type": "string" }, "activeConfigVersion": { "type": "string" }, "coreVersion": { "type": "string" }, "hostingMode": { "type": "string" }, "reviewPolicy": { "type": "string" }, "timezone": { "type": "string" }, "setupJobId": { "type": "string" }, "launchLockAt": { "type": "string" }, "transferLock": { "type": "string" }, "transferredAt": { "type": "string" }, "archivedAt": { "type": "string" }, "activatedAt": { "type": "string" }, "activationReason": { "type": "string" }, "privateMode": { "type": "boolean" }, "geoBlocking": { "type": "string" }, "smsEnabled": { "type": "boolean" }, "chatSmsEnabled": { "type": "boolean" }, "chatHandoffEnabled": { "type": "boolean" }, "blockedCountries": { "type": "array" }, "screenshot": { "type": "object" }, "icon": { "type": "object" }, "created": { "type": "string" }, "modified": { "type": "string" }, "subscriptionId": { "type": "string" }, "planId": { "type": "string" }, "planStatus": { "type": "string" }, "planLimits": { "type": "object" }, "subscriptionStatus": { "type": "string" }, "currentPeriodEnd": { "type": "string" }, "stampVersion": { "type": "string" } }, "additionalProperties": true } ``` ## Set task notifications {#set-task-notifications} Enable or disable ONE contact's notification route for ONE task, per channel (email or sms). The destination is always the address on the contact's row — a caller can never supply an address. Disabling turns off every route that contact holds on that channel for the task, and thread participation can never silently re-enable it; only an explicit enable can. Enabling refuses with the blocker named when it would be a dead switch: NO_EMAIL_ON_RECORD / NO_PHONE_ON_RECORD (address missing on the contact), NOTIFICATIONS_DISABLED (the contact's global receivesNotifications is off), CONTACT_DISABLED, SMS_PAUSED (site texting turned off), SMS_NOT_PROVISIONED (site has no text number). A platform user may target any contact; an authorized site contact on the agent surface may target only their own routes; anyone else is refused. - HTTP: `PATCH /sites/{siteId}/tasks/{taskId}/notifications` - MCP: `set_task_notifications` Required permissions: `invoke.sitestar:set-task-notifications`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `taskId` | string | Yes | The task's id exactly as returned by the task list. | | `contactId` | string | Yes | The contact's id exactly as returned by the contact list (26 uppercase characters). | | `channel` | string | Yes | Allowed: "email", "sms". | | `enabled` | boolean | Yes | true subscribes the contact's on-record address for this channel; false disables every route they hold on it for this task. | ### Input schema ```json { "type": "object", "required": [ "siteId", "taskId", "contactId", "channel", "enabled" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "taskId": { "type": "string", "minLength": 1, "maxLength": 64, "description": "The task's id exactly as returned by the task list." }, "contactId": { "type": "string", "minLength": 1, "pattern": "^[0-9A-F]{26}$", "description": "The contact's id exactly as returned by the contact list (26 uppercase characters)." }, "channel": { "type": "string", "enum": [ "email", "sms" ] }, "enabled": { "type": "boolean", "description": "true subscribes the contact's on-record address for this channel; false disables every route they hold on it for this task." } } } ``` ### Result schema ```json { "type": "object", "required": [ "taskId", "contactId", "channel", "enabled", "changed", "routes" ], "properties": { "taskId": { "type": "string" }, "contactId": { "type": "string" }, "channel": { "type": "string", "enum": [ "email", "sms" ] }, "enabled": { "type": "boolean" }, "destination": { "type": "string", "description": "The address the route now points at; present only when enabling." }, "changed": { "type": "boolean", "description": "False when the call was a no-op — the routes were already in the requested state." }, "routes": { "type": "array", "description": "The task's full route list after the change, same shape as get-task-notifications.", "items": { "type": "object", "required": [ "subscriptionId", "channel", "destination", "status", "origin" ], "properties": { "subscriptionId": { "type": "string" }, "channel": { "type": "string", "enum": [ "email", "sms", "webhook" ] }, "destination": { "type": "string" }, "status": { "type": "string", "enum": [ "active", "disabled" ] }, "origin": { "type": "string", "enum": [ "request", "participation", "explicit" ] }, "contactId": { "type": "string" } } } } } } ``` ## Set task status {#set-task-status} Transition a task to a new product status. Repeating the current status is idempotent and does not advance transition identity. - HTTP: `PATCH /sites/{siteId}/tasks/{id}/status` - MCP: `set_task_status` Required permissions: `invoke.sitestar:transition-task`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `id` | string | Yes | | | `status` | string | Yes | Allowed: "requested", "working", "done", "live", "failed", "canceled". | ### Input schema ```json { "type": "object", "required": [ "siteId", "id", "status" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "id": { "type": "string", "minLength": 1 }, "status": { "type": "string", "enum": [ "requested", "working", "done", "live", "failed", "canceled" ] } } } ``` ### Result schema ```json { "type": "object", "required": [ "id", "siteId", "status", "statusChangedAt" ], "properties": { "id": { "type": "string" }, "siteId": { "type": "string" }, "status": { "type": "string" }, "statusChangedAt": { "type": "string" } } } ``` ## Set visitor chat mode {#set-visitor-chat-mode} Take a visitor conversation over from the website's automated agent (agentMode=paused: the agent stops replying and a person answers via send_visitor_message) or hand it back (agentMode=auto). Visitors keep being able to write either way; paused only changes who answers. - HTTP: `PATCH /sites/{siteId}/visitor-conversations/{visitorConversationId}/agent-mode` - MCP: `set_visitor_chat_mode` Required permissions: `invoke.sitestar:set-visitor-conversation-agent-mode`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `visitorConversationId` | string | Yes | | | `agentMode` | string | Yes | Allowed: "auto", "paused". | ### Input schema ```json { "type": "object", "required": [ "siteId", "visitorConversationId", "agentMode" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "visitorConversationId": { "type": "string", "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$" }, "agentMode": { "type": "string", "enum": [ "auto", "paused" ] } } } ``` ### Result schema ```json { "type": "object", "required": [ "conversationId", "agentMode", "status" ], "additionalProperties": false, "properties": { "conversationId": { "type": "string" }, "agentMode": { "type": "string", "enum": [ "auto", "paused" ] }, "status": { "type": "string" } } } ``` ## Update site config {#update-site-config} Update a site's configuration. Accepts either a section import (subset of the canonical config.json; each section replaces its slot) or a flat dotted-path map (assigned at the addressed path, so an object value replaces everything under it; null deletes; max 100 paths). Never mix the two forms. Call get-site-config first to read the current values and contractId. Call describe-site-config only when you have not already read that contractId; request only the schema sections you will modify, plus the catalog when changing automations. - HTTP: `PUT /sites/{siteId}/config` - MCP: `update_site_config` Required permissions: `invoke.sitestar:update-site-config`. Role grants may satisfy these through wildcards. | Input | Type | Required | Description | | --- | --- | --- | --- | | `siteId` | string | Yes | | | `config` | object | Yes | The patch document, one of two forms never mixed in one request: a section import (any subset of the canonical config.json document, e.g. { "content": { "brand": {...} } }; each supplied section replaces its setting slot wholesale) OR a dotted-path map (a flat map of editable config.json paths, e.g. { "content.brand.voice.prohibitedTerms": [...] }; each edit is merged into the stored slot, null deletes a field, at most 100 paths per request). | ### Input schema ```json { "type": "object", "required": [ "siteId", "config" ], "additionalProperties": false, "properties": { "siteId": { "type": "string", "minLength": 1 }, "config": { "type": "object", "description": "The patch document, one of two forms never mixed in one request: a section import (any subset of the canonical config.json document, e.g. { \"content\": { \"brand\": {...} } }; each supplied section replaces its setting slot wholesale) OR a dotted-path map (a flat map of editable config.json paths, e.g. { \"content.brand.voice.prohibitedTerms\": [...] }; each edit is merged into the stored slot, null deletes a field, at most 100 paths per request)." } } } ``` ### Result schema ```json { "type": "object", "required": [ "siteId", "applied", "config" ], "properties": { "siteId": { "type": "string" }, "applied": { "type": "array", "items": { "type": "string" }, "description": "Section-import mode: the setting slots written, preceded by any site-row setting written (site.timezone). Dotted-path mode: the dotted config paths applied, in request order." }, "config": { "type": "object", "description": "The resulting configuration, pruned to the editable surface (the same view get-site-config returns, site-row settings included), plus, for a section import, the redirects and preferredCoreVersion it wrote, as stored (redirect map normalized, pin verbatim). A request that touched only site-row settings returns just those." } } } ``` --- # Errors and retries Handle HTTP status and the operation result separately. HTTP success can represent a recorded request, an unapplied decision, or a billing preview. | Status | Handling | | --- | --- | | `400` | Correct malformed input or invalid field values | | `401` / `403` | Check credentials, account context, site binding, and permissions | | `404` | Check the ID and whether it belongs to the credential's account/site | | `409` | Re-read current state; resolve a stale revision or conflicting operation | | `429` | Respect `Retry-After` when supplied; back off before retrying | | `500` / `502` / `503` / `504` | Treat completion as uncertain; inspect state before retrying writes | Preserve the response body and any request identifier when reporting a failure. Avoid logging authorization headers or customer message content. ## Idempotency Use a stable `idempotencyKey` for one logical write when the operation supports it. Task creation requires one. Message sending and change decisions accept one. Keys contain 1–64 letters, digits, underscores, or hyphens. Reuse the same key and payload after a network timeout. Generate a new key for a new customer action. Do not assume an arbitrary `Idempotency-Key` header is supported: the documented operations take the key in their input. Operations have their own replay behavior; inspect `deduplicated` and the returned resource. Site creation has an optional caller-supplied ULID, but no documented idempotency key: reconcile an uncertain create before trying again. ## Retry strategy For reads, use exponential backoff with jitter and a maximum elapsed time. For writes, first establish whether the operation completed. Retry automatically only when the operation's replay semantics make it safe. Never automatically confirm a launch charge or approve a newer change revision to resolve a conflict. ## MCP failures Transport errors, protocol errors, and tool execution errors are separate. Inspect the MCP client's error result even when the underlying HTTP request succeeds. Preserve the original operation input and retry identity when a retry is appropriate. ---