iAdvizeDocs

List a site's exclusions

Returns what the site keeps out of discovery, newest first: the addresses of pages removed after a sitemap import or shopper traffic found them, and path rules. Exclusions never apply to pages added by hand. `meta` carries the counts by kind. `limit` is 1 to 500 (100 by default).

GET
/api/v1/sites/{siteId}/pages/exclusions

Authorization

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

In: header

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.

Query Parameters

kind?string

Only exclusions of this kind.

Value in

  • "address"
  • "rule"
limit?integer

How many exclusions, 1 to 500.

Range1 <= value <= 500
Default100

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/api/v1/sites/string/pages/exclusions"
{  "data": [    {      "id": "spgx_01kvnwmagvf27rc9cze5rm9e1r",      "kind": "rule",      "value": "blogs/*",      "pagesRemoved": 60,      "createdByType": "api_key",      "createdAt": "2026-10-03T09:10:00.000Z"    },    {      "id": "spgx_01kvnwmagwf27rc9d7zef4qksf",      "kind": "address",      "value": "https://shop.example/pages/old-sale",      "pagesRemoved": 0,      "createdByType": "member",      "createdAt": "2026-10-03T09:05:00.000Z"    }  ],  "meta": {    "rules": 1,    "addresses": 1,    "total": 2  }}