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.
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"}Create an API key POST
Creates a key for this workspace. The secret is in the key field of this response and is never shown again, so store it now.
Revoke an API key DELETE
Deletes the key. Requests using it are rejected from the next call onwards. There is no way to restore it, so issue a new key first if something depends on it.