CentralCSP
APIWebsites

Get a website

Returns one website with its ingestion endpoint, settings, usage limit, and your role on it.

Requires the viewer role on the website.

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

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

Response Body

application/json

curl -X GET "https://api-next.centralcsp.com/v1/workspaces/string/websites/string"
{  "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"}