Skip to main content

Health & Liveness

The platform exposes a liveness / health-check endpoint for monitoring, pre-flight checks, and smoke tests.

Full schemas and try-it-out forms live in the interactive API Reference.

Authentication

All endpoints require a Bearer token:

Authorization: Bearer YOUR_API_KEY

See Getting Started → Authentication.

Response envelope

Every endpoint returns the canonical envelope: { "success": true, "data": { ... } } on success or the standard error envelope on error.

Endpoint summary

MethodPathDescriptionSync/Async
GET/healthComponent health checkSync

The health probe is not enforced by the per-minute rate limiter today — it is not classified under any configured category and only the gateway-level throttle applies. See Developer Guide → Usage quotas and rate limits.

An additional GET /test liveness probe is also available; it returns a fixed greeting payload regardless of downstream service health. Browse it on the API Reference page.


GET /health — Platform health

Reports the status of downstream services. With no category parameter, returns a simple "alive" greeting. With category=autogenerator or category=scim, reports per-component status and returns 503 if any required component is unhealthy.

Query parameters

ParameterTypeRequiredDescription
categorystring (autogenerator or scim)noComponent group to check. Omit for a generic liveness response.

Example

curl "https://api.prezent.ai/health?category=autogenerator" \
-H "Authorization: Bearer $API_KEY"

Success response (200)

{
"success": true,
"data": {
"message": "All AutoGenerator components healthy.",
"category": "autogenerator",
"services": [
{ "name": "slide-generator", "status": "ok" },
{ "name": "asset-store", "status": "ok" }
],
"timestamp": "2026-05-18T10:14:00Z"
}
}

Degraded response (503)

When any required component is unhealthy:

{
"success": false,
"data": null,
"error": {
"code": "SERVICE_UNAVAILABLE",
"message": "One or more AutoGenerator components are unhealthy.",
"details": {
"services": [
{ "name": "slide-generator", "status": "degraded", "detail": "..." }
]
}
}
}

Errors

Common error codes:

  • 401INVALID_API_KEY, EXPIRED_API_KEY, UNAUTHORIZED.
  • 429RATE_LIMIT_EXCEEDED, THROTTLED.
  • 500INTERNAL_SERVER_ERROR.
  • 503SERVICE_UNAVAILABLE (component degraded).
  • 504GATEWAY_TIMEOUT.

See the full catalog in Developer Guide → Error codes.