POST
/
v1
/
alerts
curl --request POST \
  --url https://api.getmaxim.ai/v1/alerts \
  --header 'Content-Type: application/json' \
  --header 'x-maxim-api-key: <api-key>' \
  --data '{
  "workspaceId": "<string>",
  "entityId": "<string>",
  "type": "WORKFLOW",
  "enabled": true,
  "config": {
    "metric": "<string>",
    "minimumThreshold": 2,
    "duration": 123,
    "operator": "<string>",
    "value": "<string>",
    "renotifyTTL": -1
  },
  "notificationChannelIds": [
    "<string>"
  ]
}'
{
  "id": "<string>",
  "workspaceId": "<string>",
  "entityId": "<string>",
  "type": "<string>",
  "enabled": true,
  "config": {
    "metric": "<string>",
    "minimumThreshold": 2,
    "duration": 123,
    "operator": "<string>",
    "value": "<string>",
    "renotifyTTL": -1
  },
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "notificationChannels": [
    {
      "notificationChannel": {
        "id": "<string>",
        "type": "SLACK",
        "name": "<string>",
        "config": {}
      }
    }
  ]
}

Authorizations

x-maxim-api-key
string
header
required

API key for authentication

Body

application/json

Response

201
application/json

Alert created successfully

The response is of type object.