CentralCSP
APIWebsites

List websites

Lists the websites you can reach in this workspace. Owners and workspace admins see them all, while other members see only the ones they were granted access to, directly or through a group. Each entry carries your role on that website.

Requires membership of the workspace.

GET
/v1/workspaces/{workspaceId}/websites

Authorization

AuthorizationBearer <token>

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

In: header

Path Parameters

workspaceId*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 name or URL.

Lengthlength <= 255

Response Body

application/json

curl -X GET "https://api-next.centralcsp.com/v1/workspaces/string/websites?limit=50"
{  "data": [    {      "id": "string",      "workspaceId": "string",      "name": "Acme Shop",      "url": "https://shop.example.com",      "endpointUrl": "https://acme.reports.centralcsp.com",      "endpointEnabled": true,      "usageLimit": 0,      "settings": {        "allowedOrigins": [          "https://shop.example.com"        ],        "dropQueryAndFragments": true,        "dropReferrer": true,        "dropReportsFromExtensions": true      },      "role": "viewer",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "pagination": {    "nextCursor": "string",    "hasMore": true,    "total": 0  }}