Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Krobar AI Health API
description: '# API Krobar AI
Welcome to the Krobar AI API! A FastAPI-based service that is the backend for Krobar.ai
## Authentication
**IMPORTANT**: This API requires an API key for all endpoints except for /health. The API key must be provided in the `X-API-Key` header.
```bash
curl -H "X-API-Key: your-api-key" https://api.krobar.ai/endpoint
```'
contact:
name: API Support
email: tristan@kromatic.com
version: 1.0.0
tags:
- name: Health
description: Health check and system monitoring endpoints
paths:
/health/:
get:
tags:
- Health
summary: Health Check
description: Basic health check endpoint.
operationId: health_check_health__get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
/health/memory:
get:
tags:
- Health
summary: Memory Status
description: Get detailed memory usage information.
operationId: memory_status_health_memory_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
/health/database:
get:
tags:
- Health
summary: Database Health
description: 'Check database connectivity.
The unhealthy branch carries the live pool snapshot (`db_pool`), including
the checkout-age diagnostics that name which code paths are holding
connections. Pool exhaustion surfaces here as a bare
``QueuePool limit ... connection timed out`` string, and that string alone
cannot distinguish saturation from retention — which cost two triage passes
on krobar-back#636 before the distinction was measured from outside.
`timestamp` is ``psutil.boot_time()`` and is therefore CONSTANT for the life
of the machine; it is kept for backward compatibility. Use the additive
`checked_at` for "when was this reading taken" — an unchanging `timestamp`
across successive probes was once read as a cached health result when it
only ever meant the machine had not rebooted.'
operationId: database_health_health_database_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
/health/full:
get:
tags:
- Health
summary: Full Health Check
description: 'Comprehensive health check including all components.
The HTTP status code reflects whether this instance can serve requests,
which is not the same thing as the top-level `status` field:
- The `database` component unhealthy breaks every request path, so that
alone drives a 503 ("cannot-serve").
- Other components can degrade the top-level `status` to "degraded"
without affecting the HTTP status — the instance can still serve
requests ("expected-degraded").
The additive `can_serve` field makes this explicit for callers that want
it instead of inferring it from the HTTP status code alone.'
operationId: full_health_check_health_full_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
components:
securitySchemes:
APIKeyCookie:
type: apiKey
in: cookie
name: access_token
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key