Setting options Beta
The allowed values for every setting, and the defaults a new monitor gets. Use it to build a form, or to check a value before you send it.
Needs an X-API-Key header whose owner has access to uptime monitoring in the app. The call counts once against your daily quota. See Monitoring API: getting started for authentication, rate limits and errors.
Request
Response
- {
- "types": [
- { "value": "http", "label": "Website", "needsHost": false, "needsPort": false,
- "defaultPort": null, "tlsPort": null, "encryption": false },
- { "value": "tcp", "label": "TCP port", "needsHost": true, "needsPort": true, … },
- { "value": "smtp", "label": "Mail server (SMTP)", "needsHost": true, "needsPort": false,
- "defaultPort": 25, "tlsPort": 465, "encryption": true }, …
- ],
- "dnsRecordTypes": ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA"],
- "encryptions": ["none", "tls", "starttls"],
- "pingAvailable": true,
- "intervals": [1, 5, 15, 30, 60],
- "regionMinInterval": 15,
- "regions": [
- { "code": "default", "label": "Default", "available": true, … },
- { "code": "na", "label": "North America", "detail": "Checked from the United States", "available": true },
- { "code": "eu", "label": "Europe", "detail": "Checked from Europe", "available": true },
- { "code": "apac", "label": "Asia Pacific", "detail": "Unavailable on your plan", "available": false },
- { "code": "latam", "label": "Latin America", "detail": "Unavailable on your plan", "available": false }
- ],
- "timeouts": [5, 10, 15, 20, 30],
- "alertAfter": [0, 1, 2, 3, 5, 10, 15, 30, 60],
- "resendEvery": [0, 5, 10, 15, 30, 60, 120, 360, 1440],
- "sslDownDays": [0, 1, 3, 7, 14, 30],
- "importance": ["high", "low"],
- "defaults": {
- "name": "", "url": "", "intervalMinutes": 15, "regions": ["default"], "tags": [],
- "timeoutSeconds": 30, "shouldContain": "", "shouldNotContain": "", "postData": "",
- "requestHeaders": [], "authUsername": "", "hasAuthPassword": false,
- "verifyCertificate": true, "sslDownDays": 0, "importance": "high", "recipients": [],
- "alertAfterMinutes": 0, "resendEveryMinutes": 0, "notifyBackUp": true, "alertMessage": ""
- },
- "usage": { "used": 20, "dailyLimit": 100, "tier": "free" }
- }
types lists every check type: needsHost means it takes a bare host rather than a URL, needsPort that you must send a port, defaultPort and tlsPort the standard ports, and encryption whether the type takes an encryption setting. pingAvailable is false when this checking server has no ICMP, so a ping check would report that rather than an outage.
Only choose a region whose available is true. defaults.recipients is empty here, but a monitor created through the API alerts the key's owner unless you send recipients.
Errors
| Status | When |
|---|---|
401 | The API key is missing or invalid. |
403 | The key's owner doesn't have access to uptime monitoring, or the key isn't linked to a workspace. |
405 | The endpoint doesn't accept that method. |
429 | A rate limit or your daily quota was hit. Read Retry-After, in seconds. |
500 | Something went wrong on our side. Try again. |
503 | The API is temporarily unavailable. Try again shortly. |
Errors are JSON: { "error": "message" }. See Monitoring API errors.
Related
- Monitor settings: what each setting does
- Create a monitor: use them in a new monitor