Skip to Content
iAdvizeDocs

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.

GET
/api/v1/sites/{siteId}/setup

Authorization

ApiKeyAuth
headerAuthorizationBearer <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).

Path Parameters

siteId*string

The site id (prefixed site_). A site id that isn't yours is a 404, same as any other cross-tenant id.

Response Body

The site's setup tasks.

application/json
  1. response
data*
Example Request
curl -X GET 'https://example.com/api/v1/sites/string/setup'
Example Response
{  "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  }}