The health endpoint provides a lightweight readiness check for the Mesa de Ayuda IA backend. It tests connectivity to each critical dependency — the PostgreSQL database and the Gemini LLM client — and aggregates the results into a singleDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/geremyjampiersalasgarcia-eng/Caso_Practico_Semillero_IA/llms.txt
Use this file to discover all available pages before exploring further.
status field. Use this endpoint for uptime monitoring, Docker health checks, Kubernetes readiness probes, or quick manual diagnostics when troubleshooting connectivity issues between services.
Method and Path
Parameters
None. The endpoint takes no query parameters, path parameters, or request body.Response
Overall health status of the service. Possible values:
"healthy"— all components passed their checks"degraded"— one or more components returned an error; the API is still running but may produce incomplete responses
API version string. Current value:
"1.0.0".A map of component names to their individual status objects. The current implementation checks two components:
Examples
Health Check Logic
The endpoint is implemented inbackend/app/api/v1/endpoints/health.py. It runs two independent checks sequentially. If either check raises an exception, overall_status is set to "degraded" and the exception message is captured in the details field of that component — the other check still runs.
200 OK regardless of status — parse the status field in the JSON body to determine whether the service is fully operational.