Skip to main content
POST
/
v2
/
memory
/
alerts
/
config
/
get
Get Alert Config
curl --request POST \
  --url https://api.velt.dev/v2/memory/alerts/config/get \
  --header 'Content-Type: application/json' \
  --header 'x-velt-api-key: <x-velt-api-key>' \
  --header 'x-velt-auth-token: <x-velt-auth-token>' \
  --data '{
  "data": {}
}'
{
  "result": {
    "enabled": true,
    "maxAlertsPerWeek": 5,
    "enabledAlertTypes": ["approval-rate-drift"],
    "severityThreshold": "medium"
  }
}
Use this API to read the workspace’s alert generation settings.

Endpoint

POST https://api.velt.dev/v2/memory/alerts/config/get

Headers

x-velt-api-key
string
required
Your API key.
x-velt-auth-token
string
required

Body

Params

data
object
required
No fields required. Send an empty object.

Example Requests

Get the alert config

{
  "data": {}
}

Response

The config reports whether alerts are enabled, the weekly cap, the enabled alert types, and the minimum severity that generates an alert.

Success Response

{
  "result": {
    "enabled": true,
    "maxAlertsPerWeek": 5,
    "enabledAlertTypes": ["approval-rate-drift"],
    "severityThreshold": "medium"
  }
}

Failure Response

{
  "error": {
    "message": "ERROR_MESSAGE",
    "status": "INVALID_ARGUMENT"
  }
}
{
  "result": {
    "enabled": true,
    "maxAlertsPerWeek": 5,
    "enabledAlertTypes": ["approval-rate-drift"],
    "severityThreshold": "medium"
  }
}