Issue own API key
POST
/v2/apiKey
Authorizations
bearerAuth
OAuth access token or an API key on operations declaring x-api-key-scopes. Example header - Authorization Bearer sk_<64 lowercase hex characters>.
Type
HTTP (bearer)
or
basicAuth
Type
HTTP (basic)
Request Body
application/json
JSON "name": "Backup automation", "scopes": [ "instances:read", "instances:power" ], "expiresAt": "2024-01-01T00:00:00Z"
{
}
Responses
Key issued; the secret is shown only in this response.
application/json
JSON "id": "string", "userSub": "string", "name": "string", "prefix": "sk_01234567", "scopes": [ "catalog:read" ], "createdAt": "2024-01-01T00:00:00Z", "expiresAt": "2024-01-01T00:00:00Z", "revokedAt": "2024-01-01T00:00:00Z", "lastUsedAt": "2024-01-01T00:00:00Z", "createdBySub": "string", "key": "string"
{
}