Project alerts
Use these endpoints to read and enable a project's email alerts. Alerts apply to applications, PostgreSQL, MariaDB and ClickHouse databases, Valkey services and scheduled Jobs. They are off by default, except on scheduled Jobs, which are created with them on. Preview environments have no alerts. See the full behavior in Observability.
Required permissions
Reading requires read access to the project (project.read on project:<project-id>). Changing requires project.instances.update on the same project. owner has full access; assistant, member, and API Keys need the specific scope.
Read alerts
GET /v1/project/:id/alertsRequires project.read. Rate limit: 100 requests per minute (counted per source IP).
{
"status": "success",
"data": {
"enabled": false,
"cpu_threshold_percent": 80,
"memory_threshold_percent": 80,
"storage_threshold_percent": 80,
"storage_critical_threshold_percent": 95,
"cooldown_minutes": 60,
"last_alerts": {
"error": null,
"cpu": "2026-10-07T12:00:00.000Z",
"memory": null,
"storage": null
}
}
}The CPU, memory and storage thresholds and the minimum interval between emails are fixed and returned for reading only. Storage sends one email at storage_threshold_percent and another at storage_critical_threshold_percent, without repeating the same level until usage goes down; the minimum interval applies to the other kinds. last_alerts shows when each alert kind (error, cpu, memory, storage) was sent in the last hour; null when none was sent in that period.
Enable or disable alerts
PATCH /v1/project/:id/alertsRequires project.instances.update. Rate limit: 20 requests every 5 minutes (counted per source IP).
| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | Yes | true enables alerts; false disables them |
{
"enabled": true
}enabled is required and must be a boolean; otherwise the response is 400. Other fields in the body are ignored.
Both operations return 404 when the project does not exist and 422 with code PROJECT_OPERATION_NOT_SUPPORTED for scheduled Jobs.
Last updated on
Application health check
Read, enable, or disable the health check of an HTTP app through the Zenifra API, run every minute, and list failures from the last 30 days, with pagination.
Environment Variables
Read and update your project's environment variables through the Zenifra API, sending the full list each time, with naming rules and a limit of 50 variables.