System overview
How the two unauthenticated-or-lightweight system endpoints fit into deploying and monitoring an integration.
The System endpoints answer one question each: is the API up? and does my key work? Neither changes anything, and neither needs a scope.
| Endpoint | Needs a key | Use it for |
|---|---|---|
GET /health | No | Uptime monitoring of the API itself. |
GET /ping | Yes, any scope | Checking a freshly deployed key, and your own credentials monitor. |
The flow#
- — Once, when you deploy a new key —
- Your server → Localoy API: GET /ping Bearer key
- Localoy API → Your server: 200 principal, environment, scopes
- Note: Check the environment and scopes are the ones you meant
- — Continuously, from your monitor —
- Your monitor → Localoy API: GET /health no key
- Localoy API → Localoy API: Check database and cache
- Localoy API → Your monitor: 200 ok, or 503 unavailable
- Verify the key when you deploy it.
GET /pinganswers200with the key'sprincipal(PARTNERorTECHNOLOGY_PROVIDER), itsenvironment(SANDBOXorPRODUCTION) and itsscopes. A wrong environment or a missing scope shows up here, before it fails a real write. - Monitor the API with
/health. It checks Localoy's database and cache and needs no key.200means every service is healthy;503means at least one is not, and the body lists each one. - Monitor your credentials with
/ping. A401means the key was revoked or mistyped.
Rules to remember#
/healthis not recorded in your request log, but it still counts toward the per-IP rate limit./pingis recorded like any other call and counts toward the per-key limit.- Both are safe to repeat as often as the rate limit allows.
Next: Health check and Verify a key.