POST
/
v1
/
alerts
/
create
Create an alert
curl --request POST \
  --url https://api.metronome.com/v1/alerts/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "alert_type": "spend_threshold_reached",
  "credit_type_id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
  "name": "$100 spend threshold reached",
  "threshold": 10000,
  "customer_id": "4db51251-61de-4bfe-b9ce-495e244f3491",
  "credit_grant_type_filters": [
    "enterprise"
  ]
}'
{
  "data": {
    "id": "58fb0650-e54a-4d17-93cb-ba8e56c32c65"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The details of the alert to create

The body is of type object.

Response

200 - application/json

Success

The response is of type object.