CentralCSP
APIAPI Keys

Get an API key

Returns one key's details, without its secret.

Requires the admin role on the workspace and the api_keys plan feature.

GET
/v1/workspaces/{workspaceId}/api-keys/{apiKeyId}

Authorization

AuthorizationBearer <token>

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

In: header

Path Parameters

workspaceId*string
apiKeyId*string

Response Body

application/json

curl -X GET "https://api-next.centralcsp.com/v1/workspaces/string/api-keys/string"
{  "id": "string",  "workspaceId": "string",  "name": "CI pipeline",  "prefix": "ccsp_a1",  "createdBy": "string",  "createdByUser": {    "id": "string",    "email": "string",    "firstName": "string",    "lastName": "string",    "picture": "string"  },  "allowedIps": [    "string"  ],  "expiresAt": "2019-08-24T14:15:22Z",  "lastUsedAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}