API Keys Configuration
API key policies and permissions.
Returns the API Keys configuration
RSA public key for verifying API key authentication tokens
-----BEGIN PUBLIC KEY----- ... -----END PUBLIC KEY-----RSA private key preview for signing API key authentication tokens
-----BEGIN PRIVATE KEY-----MIIEvgIBAD*****Source of the keys (tenant, environment, or none)
tenantPossible values: Forbidden: You are not allowed to read API Keys configuration
API Keys configuration not found
GET /apis/v2/tenants/{tenantId}/integrations/api-keys HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"publicKey": "-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----",
"privateKey": "-----BEGIN PRIVATE KEY-----MIIEvgIBAD*****",
"keysSource": "tenant",
"_links": {
"self": {
"href": "text"
}
}
}RSA public key for verifying API key authentication tokens
-----BEGIN PUBLIC KEY----- ... -----END PUBLIC KEY-----RSA private key preview for signing API key authentication tokens
-----BEGIN PRIVATE KEY-----MIIEvgIBAD*****Returns the updated API Keys configuration
RSA public key for verifying API key authentication tokens
-----BEGIN PUBLIC KEY----- ... -----END PUBLIC KEY-----RSA private key preview for signing API key authentication tokens
-----BEGIN PRIVATE KEY-----MIIEvgIBAD*****Source of the keys (tenant, environment, or none)
tenantPossible values: Forbidden: You are not allowed to update API Keys configuration
Unprocessable Entity: Returns an ErrorDto in case of validation errors or failures.
PATCH /apis/v2/tenants/{tenantId}/integrations/api-keys HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 131
{
"publicKey": "-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----",
"privateKey": "-----BEGIN PRIVATE KEY-----MIIEvgIBAD*****"
}{
"publicKey": "-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----",
"privateKey": "-----BEGIN PRIVATE KEY-----MIIEvgIBAD*****",
"keysSource": "tenant",
"_links": {
"self": {
"href": "text"
}
}
}Returns the API Keys configuration status
Whether scenario selector should be disabled
falseCurrent source of the keys
environmentPossible values: Forbidden: You are not allowed to read API Keys configuration status
GET /apis/v2/tenants/{tenantId}/integrations/api-keys/status HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"availableScenarios": [
"create tenant keys",
"migrate to tenant keys"
],
"canChangeSource": false,
"keysSource": "environment",
"_links": {
"self": {
"href": "text"
}
}
}Scenario to execute for changing API keys source
create tenant keysPossible values: Returns the updated API Keys configuration after changing source
RSA public key for verifying API key authentication tokens
-----BEGIN PUBLIC KEY----- ... -----END PUBLIC KEY-----RSA private key preview for signing API key authentication tokens
-----BEGIN PRIVATE KEY-----MIIEvgIBAD*****Source of the keys (tenant, environment, or none)
tenantPossible values: Forbidden: You are not allowed to change API Keys source
Unprocessable Entity: Returns an ErrorDto in case of validation errors or failures.
POST /apis/v2/tenants/{tenantId}/integrations/api-keys/change-source HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"scenario": "create tenant keys"
}{
"publicKey": "-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----",
"privateKey": "-----BEGIN PRIVATE KEY-----MIIEvgIBAD*****",
"keysSource": "tenant",
"_links": {
"self": {
"href": "text"
}
}
}Last updated
Was this helpful?

