Get a site's setup tasks
Returns the setup tasks of a site and whether each is done: the agent answers on the site (`agent_answers`), a widget is live (`widget_live`), the tag was seen in the last 7 days (`tag_seen`), a catalog is connected or products were imported (`catalog`), a page was read (`page_read`), the site description is filled in (`description`), and a brand color or a logo is set (`brand`). Derived at each call, so a change shows at once. `total` is the length of `tasks`: new tasks may be added later, so read the list rather than assuming seven. Read-only, open to any key of the organization.
ApiKeyAuthAuthorizationBearer <token>A WorkOS org-scoped API key, created from the dashboard's organization settings page. Identifies the tenant every read and write is scoped to. Missing, malformed, unknown, revoked, expired, or non-organization-owned keys all return 401 (no distinction, so the response can't be used to probe which keys or org ids exist).
siteId*stringThe site id (prefixed site_). A site id that isn't yours is a 404, same as any other cross-tenant id.
The site's setup tasks.
application/json- response
data*curl -X GET 'https://example.com/api/v1/sites/string/setup'{ "data": { "siteId": "site_01kvnwmagvf27rc9cze5rm9e1r", "tasks": [ { "id": "agent_answers", "done": true }, { "id": "widget_live", "done": false }, { "id": "tag_seen", "done": false }, { "id": "catalog", "done": true }, { "id": "page_read", "done": true }, { "id": "description", "done": true }, { "id": "brand", "done": false } ], "done": 4, "total": 7 }}Switch a site's hosted page on or off
Publishes or takes down the site's hosted page (the AI Storefront), with the rules of the dashboard. Switching on needs a default agent that is live. Taking the page down keeps the site's key, so the same link works again once switched back on. Attributed to the API key in the audit log.
List a site's agents
Returns every agent on this site (soft-deleted agents excluded), newest first, each with the id and number of its current version (`championVersionId`, `championVersion`).