Skip to content

Settings and API keys

Generated from openapi.json (API version 0.54.3). 20 endpoints. See the API overview for the base URL and how to sign requests.

GET /settings/webhook

Needs write:settings.

Get details about the webhook endpoint (e.g. the API url and an API key)

Responses

  • 200 Successful Response: WebhookSettings

GET /settings/smtp

Needs write:settings.

Get SMTP settings

Responses

  • 200 Successful Response: object

POST /settings/smtp

Needs write:settings.

Install or update SMTP settings

Body (application/json, required): SMTPSettings

Field Type Required Description
host string yes
port integer yes
from_email string yes
username string or null no
password string (password) or null no
secure boolean no
to_email string or null no

Responses

  • 200 Successful Response: object

DELETE /settings/smtp

Needs delete:settings.

Delete SMTP settings

Responses

  • 200 Successful Response: object

POST /settings/smtp/test

Needs write:settings.

Test SMTP settings

Body (application/json, required): SMTPSettings

Field Type Required Description
host string yes
port integer yes
from_email string yes
username string or null no
password string (password) or null no
secure boolean no
to_email string or null no

Responses

  • 200 Successful Response: object

POST /settings/apikey

Needs write:settings.

Create API key

Responses

  • 200 Successful Response: object

PUT /settings/apikey

Needs write:settings.

Update API key secret

Responses

  • 200 Successful Response: object

GET /settings/apikeys

Needs read:settings.

Get API keys

Responses

  • 200 Successful Response: object

DELETE /settings/apikey/{keyId}

Needs write:settings.

Delete API key

Path parameters

Name Type Required Description
keyId string yes

Responses

  • 200 Successful Response: object

GET /settings/sso

Needs read:settings.

Responses

  • 200 Successful Response: object

GET /settings/tenant/configuration

Needs read:settings.

Responses

  • 200 Successful Response: object

GET /settings/ai

Needs read:settings.

The AI service this tenant uses; the API key is never returned

Responses

  • 200 Successful Response: AISettingsOut

PUT /settings/ai

Needs write:settings.

Choose the AI service, its model and key, and what else is masked

Body (application/json, required): AISettingsIn

Field Type Required Description
provider one of openai, azure_openai, openai_compatible yes
model string yes
base_url string or null no
api_version string or null no
api_key string (password) or null no
mask_ip_addresses boolean no
allow_http boolean no

Responses

  • 200 Successful Response: AISettingsOut

DELETE /settings/ai

Needs write:settings.

Go back to the server’s AI: the tenant’s settings and key are removed

Responses

  • 200 Successful Response: AISettingsOut

POST /settings/ai/test

Needs write:settings.

Send one tiny request to the AI service: the settings entered (not yet saved), or without a body the service in use now

Body (application/json): AISettingsIn or null

Responses

  • 200 Successful Response: TestOut

GET /settings/alert-grouping

Needs read:settings.

How alerts from different tools are grouped into incidents, and the defaults

Responses

  • 200 Successful Response: GroupingSettingsOut

PUT /settings/alert-grouping

Needs write:settings.

Change the field mapping and the grouping options

Body (application/json, required): object

Responses

  • 200 Successful Response: GroupingSettingsOut

POST /settings/alert-grouping/preview

Needs read:alert and read:settings.

The canonical dimensions of the newest alert of each tool, read with the given field lists (nothing is saved)

Body (application/json): object

Responses

  • 200 Successful Response: array of PreviewRow

GET /settings/reanalysis

Needs read:settings.

Whether incidents are analysed again as they grow, the cooldown and the daily cap

Responses

  • 200 Successful Response: ReanalysisSettingsOut

PUT /settings/reanalysis

Needs write:settings.

Turn re-analyses on or off, and change the cooldown and the daily cap

Body (application/json, required): object

Responses

  • 200 Successful Response: ReanalysisSettingsOut