CentralCSP
APIInventory Origins

List inventory origins

Lists the origins that serve scripts to this website's payment pages. Origins are created during reconciliation and classified first-party when they match the website's own host, third-party otherwise. Filter by classification or tag, and search origin and description with q. Origins cannot be created or deleted through the API.

Requires the viewer role on the website and the compliance plan feature.

GET
/v1/workspaces/{workspaceId}/websites/{websiteId}/compliance/origins

Authorization

AuthorizationBearer <token>

An OpenID Connect access token issued by Keycloak, acting as the signed-in user.

In: header

Path Parameters

workspaceId*string
websiteId*string

Query Parameters

cursor?string

The nextCursor of the previous page. Omit it to start from the beginning. A cursor encodes a position and is not meant to be built by hand.

limit*|

How many items to return, from 1 to 200.

Range1 <= value <= 200
Default50
q?string

Match part of the origin or its description.

Lengthlength <= 255
originType?|

Set automatically when the origin is first seen: first-party when it matches the website's own host, third-party otherwise. Correct it when a CDN you control was classified third-party.

tagIds?string

Comma-separated tag identifiers. An origin matches if any of its scripts carry any of them.

Lengthlength <= 2048

Response Body

application/json

curl -X GET "https://api-next.centralcsp.com/v1/workspaces/string/websites/string/compliance/origins?limit=50"
{  "data": [    {      "id": "string",      "workspaceId": "string",      "websiteId": "string",      "origin": "https://js.stripe.com",      "description": "string",      "originType": "first-party",      "tags": [        {          "id": "string",          "name": "string",          "color": "slate"        }      ],      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "pagination": {    "nextCursor": "string",    "hasMore": true,    "total": 0  }}