Smalk Public API
Health
API health probe
GET
https://api.smalk.ai
/api/health/
Lightweight, unauthenticated health check for the Smalk public API (ad-serving + analytics tracking).
Probes the three runtime dependencies of the public API with a 1 s timeout each:
- Database — primary read path for ads + analytics
- Cache — shared cache between the API servers
- Async task broker — used to dispatch background processing
Response
The response body is plain text:
| Status | Body | Meaning |
|---|---|---|
200 | ok | All dependencies healthy |
503 | KO | At least one dependency is unreachable |
Failure details are logged server-side; the body never contains internal information. Safe to expose to public uptime monitors.
Usage
Code
Recommended check interval: 30s. Recommended client timeout: 3s.
API health probe › Responses
All dependencies healthy. Body: ok.
string