Skip to Content
iAdvizeDocs

Get a page's starter order

Returns every starter question eligible on the page's address, written by hand or AI-generated, switched on or off, in the order a shopper surface selects them for the page's own type and language. Each question says whether shoppers see it on this page and, when they do not, why. The questions shown are the ones the storefront serves on that address, type and language. At most 100 questions, with the count of the others. Read-only.

GET
/api/v1/sites/{siteId}/pages/{pageId}/starter-questions

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.

pageId*string

The page id (prefixed spg_).

Response Body

The page's starter order.

application/json
  1. response
data*
Example Request
curl -X GET 'https://example.com/api/v1/sites/string/pages/string/starter-questions'
Example Response
{  "data": {    "pageId": "string",    "pageType": "string",    "pageTypeGuessed": true,    "language": "string",    "languageFromPage": true,    "eligible": 0,    "shown": 0,    "leftOut": 0,    "questions": [      {        "id": "string",        "position": 0,        "enabled": true,        "targeting": {          "mode": "all_pages",          "pageTypes": [            "string"          ],          "urlPatterns": [            "string"          ]        },        "texts": {          "property1": {            "label": "string",            "message": "string"          },          "property2": {            "label": "string",            "message": "string"          }        },        "source": "manual",        "sourcePageId": "string",        "generatedAt": "2019-08-24T14:15:22Z",        "createdAt": "2019-08-24T14:15:22Z",        "updatedAt": "2019-08-24T14:15:22Z",        "state": {          "value": "live",          "reason": "string",          "missingLanguages": [            "string"          ]        },        "performance": {          "windowDays": 0,          "impressions": 0,          "clicks": 0,          "clickRate": 0,          "verdict": "never_shown",          "reason": "string"        },        "rank": 0,        "shown": true,        "reason": "switched_off"      }    ]  }}