List inventory scripts
Lists every script seen on this website's payment pages, with its review status, justification, current hash, origin, and tags. This is the inventory PCI DSS 6.4.3 asks you to keep. Scripts appear here through reconciliation and are never created through the API. Filter by status, origin, or tags, use requiresAction to show only what still needs a decision, and search to match part of a script URL.
Requires the viewer role on the website and the compliance plan feature.
An OpenID Connect access token issued by Keycloak, acting as the signed-in user.
In: header
Path Parameters
Query Parameters
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.
How many items to return, from 1 to 200.
1 <= value <= 20050unreviewed means nobody has looked at it yet. justified means it is authorized at its current hash. needs_review means it was justified but its contents have since changed. unauthorized means it was judged not to belong on a payment page.
true returns only scripts still waiting for a decision, which is the review queue.
Match part of the script URL.
length <= 255Only scripts served by this origin.
length <= 36Comma-separated tag identifiers. A script matches if it carries any of them.
length <= 2048Also return scripts that have left the PCI scope. Off by default, so the list describes the live inventory.
Response Body
application/json
curl -X GET "https://api-next.centralcsp.com/v1/workspaces/string/websites/string/compliance/scripts?limit=50"{ "data": [ { "id": "string", "websiteId": "string", "subresourceUrl": "https://js.stripe.com/v3/", "status": "unreviewed", "justification": "string", "originId": "string", "origin": "https://js.stripe.com", "tags": [ { "id": "string", "name": "string", "color": "slate" } ], "justifiedHash": "string", "currentHash": "string", "ruleId": "string", "justifiedBy": "string", "justifiedByUser": { "id": "string", "email": "string", "firstName": "string", "lastName": "string", "picture": "string" }, "justifiedAt": "2019-08-24T14:15:22Z", "unauthorizedReason": "string", "unauthorizedBy": "string", "unauthorizedByUser": { "id": "string", "email": "string", "firstName": "string", "lastName": "string", "picture": "string" }, "unauthorizedAt": "2019-08-24T14:15:22Z", "retiredAt": "2019-08-24T14:15:22Z", "firstSeen": "2019-08-24T14:15:22Z", "lastSeen": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "pagination": { "nextCursor": "string", "hasMore": true, "total": 0 }}Export the script inventory GET
Streams the whole inventory as CSV, with the same filters as the list endpoint and no pagination. Suitable as evidence for an assessor.
List a script's history GET
Returns the full history of one script, newest first: when it was first seen, every time its contents changed, and every decision made about it, with who made...