Zaira Labs Health API
The Health API from Zaira Labs, for health.
The Health API from Zaira Labs, for health.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/zairalabs-ai:zairalabs-ai-health-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Zaira Labs Health API
version: 1.0.0
description: 'Agent-ready developer tool guide. Search, filter, and compare tools evaluated against the Zaira Standard.
**Test mode.** The API is read-only — the production endpoint is the sandbox. Append `?test=true` to any read endpoint to mark a request as a dry-run from the caller''s perspective. The response shape is identical except `meta.testMode` is set to `true`, so integrations can verify request shape and response parsing without ambiguity. There is no separate sandbox URL or test credentials because none are needed.'
contact:
name: Zaira Labs
url: https://zairalabs.ai
servers:
- url: https://zairalabs.ai/guide/api/v1
tags:
- name: Health
paths:
/health:
get:
operationId: healthCheck
x-risk-tier: read-only
summary: API health check with component-level status
description: 'Returns Worker, database, and search-index status. Two response formats by Accept header:
- `Accept: application/json` (default) — `{data, meta}` envelope. `data.status` is `ok` when every component passes, `degraded` when any component fails. `data.components` lists the per-component status.
- `Accept: application/health+json` — IETF Internet-Draft `health+json` format. `status` is `pass` or `fail`; `checks` lists per-component diagnostics with `observedValue` and `time`.
On any component failure the response status code is 503 and a `Retry-After: 30` header is set. Component names (`database`, `search_index`) describe the role, not the underlying technology.'
responses:
'200':
description: All components healthy.
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
status:
type: string
enum:
- ok
- degraded
toolCount:
type: integer
timestamp:
type: string
format: date-time
components:
type: object
properties:
database:
type: object
properties:
status:
type: string
enum:
- ok
- fail
rows:
type: integer
search_index:
type: object
properties:
status:
type: string
enum:
- ok
- fail
documents:
type: integer
meta:
$ref: '#/components/schemas/BaseMeta'
application/health+json:
schema:
type: object
required:
- status
- checks
properties:
status:
type: string
enum:
- pass
- fail
- warn
version:
type: string
checks:
type: object
additionalProperties:
type: array
items:
type: object
properties:
status:
type: string
enum:
- pass
- fail
- warn
componentType:
type: string
observedValue: {}
observedUnit:
type: string
time:
type: string
format: date-time
'429':
$ref: '#/components/responses/RateLimited'
'503':
description: 'One or more components failed. Response carries the same component breakdown plus `Retry-After: 30`.'
headers:
Retry-After:
schema:
type: integer
description: Seconds to wait before retrying.
content:
application/json:
schema:
type: object
properties:
data:
type: object
meta:
$ref: '#/components/schemas/BaseMeta'
application/health+json:
schema:
type: object
tags:
- Health
components:
responses:
RateLimited:
description: 'Rate limit exceeded. Two buckets per client IP: a global 60/min cap on all endpoints, plus a 20/min cap on expensive endpoints (/search, /compare, /tools/{slug}). Either bucket can trigger a 429. `Problem.is_retriable` is true; honor the Retry-After header.'
headers:
Retry-After:
schema:
type: integer
description: Seconds to wait before retrying
RateLimit-Limit:
schema:
type: integer
description: Maximum requests allowed per window
RateLimit-Policy:
schema:
type: string
description: Rate limit policy. On expensive endpoints includes both buckets, e.g. '60;w=60, 20;w=60'.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
schemas:
Problem:
type: object
description: Error response following RFC 9457 (Problem Details for HTTP APIs) with Zaira extensions for machine-actionable recovery.
required:
- type
- title
- status
- detail
- documentationUrl
- category
- is_retriable
- recovery
properties:
type:
type: string
format: uri
title:
type: string
status:
type: integer
detail:
type: string
documentationUrl:
type: string
format: uri
category:
type: string
enum:
- validation
- not_found
- rate_limit
- service_unavailable
- server_error
description: Abstract error family. Intentionally tech-agnostic so responses never signal the service's internal stack.
is_retriable:
type: boolean
description: True when the caller can safely retry the same request after a delay.
retry_after_seconds:
type: integer
description: Suggested delay before retrying, in seconds. Present when is_retriable is true. Mirrors the Retry-After header for rate-limit and service-unavailable responses.
recovery:
type: array
items:
type: string
description: Ordered, generic recovery steps the caller can take. Numbered/ordered by their position in the array.
errors:
type: array
description: Field-level validation issues (only present on validation errors).
items:
type: object
properties:
path:
type: string
message:
type: string
BaseMeta:
type: object
properties:
apiVersion:
type: string
testMode:
type: boolean
description: Set to `true` when the request included `?test=true`. The API is read-only and has no destructive surface, so the production endpoint is the sandbox; this flag echoes the caller's dry-run intent so integrations can verify request shape and response parsing without ambiguity. Absent on non-test requests.
x-rateLimit:
buckets:
- scope: all endpoints
limit: 60
window: 60
unit: requests per minute per IP
- scope: expensive endpoints (/search, /compare, /tools/{slug})
limit: 20
window: 60
unit: requests per minute per IP
note: Consumed in addition to the global 60/min bucket.
description: Two rate-limit buckets keyed on client IP. A global cheap bucket caps overall request rate. An expensive bucket adds a tighter cap on full-text search, side-by-side comparison, and full tool-detail reads — these touch FTS or parse complete records. Responses include RateLimit-Limit and RateLimit-Policy headers; 429 responses also carry Retry-After.