Check that the API is up
On this page
GET
/healthzget_health| Risk | read |
| Authentication | none (public) |
| Scopes | none |
| Idempotency | natural: repeating the call gives the same result |
| Dry run | not applicable |
| Success status | 200 |
| Response type | application/json |
What it does#
- Use when: A monitor or a script needs to know the API answers.
- Do not use when: you need account details (call get_current_access).
- Side effects: None.
- Reversible: Not applicable, nothing changes.
- Required scope: none (public).
- Idempotency: safe to repeat.
- Typical next step: call get_current_access with a key to check the credential.
Request#
Path parameters#
None.
Query parameters#
None.
Response#
| Field | Type | Required | Description |
|---|---|---|---|
ok | exactly true | yes | |
service | exactly "seemly-api" | yes | |
environment | string | yes |
Examples#
healthy#
Request:
curl 'https://api.seemly.com/healthz'const response = await fetch("https://api.seemly.com/healthz");
const result = await response.json();
console.log(response.status, result);import os
import requests
response = requests.get("https://api.seemly.com/healthz")
print(response.status_code, response.json())Response: 200:
{
"ok": true,
"service": "seemly-api",
"environment": "production"
}Errors#
| Status | Codes |
|---|---|
| 503 | service_unavailable |
Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.