Create a quota alert

Configure an alert for when a quota reaches a threshold. Alerts are sent to all active project webhooks.

POST
/quotas/{quotaId}/alerts
AuthorizationBearer <token>

Project API key

In: header

Path Parameters

quotaId*string

Request Body

application/json

threshold*integer

Threshold percentage (1-100) at which to trigger the alert

Range1 <= value <= 100

Response Body

application/json

application/json

application/json

curl -X POST "https://api.limitry.com/v1/quotas/string/alerts" \  -H "Content-Type: application/json" \  -d '{    "threshold": 1  }'
{
  "id": "qa_abc123",
  "quotaId": "qta_xyz789",
  "threshold": 80,
  "lastTriggeredAt": null,
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T10:30:00Z"
}
{
  "error": "Invalid request"
}
{
  "error": "Invalid or missing API key"
}