Download OpenAPI specification:Download
Saturn API for cron and scheduled job monitoring with anomaly detection.
Use Bearer token authentication:
Authorization: Bearer <TOKEN>
Get tokens from the Saturn dashboard under Settings → Tokens.
Signal that a job completed successfully
| monitorId required | string Example: mon_abc123xyz Unique monitor identifier |
| durationMs | integer Job duration in milliseconds |
| output | string Job output (stdout/stderr) |
{- "durationMs": 12456,
- "output": "Backup completed\n5000 files processed"
}{- "received": true,
- "runId": "run_abc123"
}Signal that a job failed
| monitorId required | string Example: mon_abc123xyz Unique monitor identifier |
| exitCode | integer Process exit code |
| durationMs | integer Job duration in milliseconds |
| output | string Error output |
{- "exitCode": 1,
- "durationMs": 3200,
- "output": "ERROR: Database connection failed"
}{- "received": true,
- "runId": "run_abc123"
}Get all monitors for the authenticated organization
| page | integer Default: 1 |
| limit | integer <= 100 Default: 50 |
{- "monitors": [
- {
- "id": "mon_abc123",
- "name": "Daily Backup",
- "schedule": {
- "type": "interval",
- "expression": "0 3 * * *",
- "timezone": "America/New_York"
}, - "status": "OK",
- "healthScore": 95,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "page": 0,
- "limit": 0
}Get incidents for the authenticated organization
| status | string Enum: "OPEN" "ACKNOWLEDGED" "RESOLVED" |
| type | string Enum: "MISSED" "LATE" "FAIL" "ANOMALY" |
| monitorId | string |
{- "incidents": [
- {
- "id": "inc_abc123",
- "type": "MISSED",
- "severity": "LOW",
- "status": "OPEN",
- "monitorId": "mon_xyz789",
- "createdAt": "2019-08-24T14:15:22Z",
- "acknowledgedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "details": { }
}
]
}Mark an incident as acknowledged
| incidentId required | string |
| note | string |
{- "note": "Investigating database connection"
}{- "id": "inc_abc123",
- "type": "MISSED",
- "severity": "LOW",
- "status": "OPEN",
- "monitorId": "mon_xyz789",
- "createdAt": "2019-08-24T14:15:22Z",
- "acknowledgedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "details": { }
}Mark an incident as resolved
| incidentId required | string |
| note | string |
{- "note": "Fixed database credentials"
}{- "id": "inc_abc123",
- "type": "MISSED",
- "severity": "LOW",
- "status": "OPEN",
- "monitorId": "mon_xyz789",
- "createdAt": "2019-08-24T14:15:22Z",
- "acknowledgedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "details": { }
}