---
title: "Readiness (database)"
method: GET
path: "/api/health/ready"
tags: ["System"]
---

# Readiness (database)

`GET /api/health/ready`

## Request

- Base URL: `https://api.prereason.com`
- URL: `https://api.prereason.com/api/health/ready`
- Auth: none required

Whether the database answered a read just now. 200 when it did, 503 when it
did not or took longer than three seconds, so an uptime monitor can read the
answer from the status code alone. A result is reused for up to ten seconds,
and checked_at says when it was taken. No authentication required.

## Response `200`

The database answered

- object
  - `status` 'ok'
  - `database` 'ok'
  - `latency_ms` integer
  - `checked_at` string, date-time

## Other responses

- `503`: The database did not answer in time, or this instance is not reading it

## Changes

- **2026-09-26** `431b42037192`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/prereason/apis/prereason-api/changes/api/health/ready/get.md)

---

[API](https://skmtc.dev/prereason/apis/prereason-api.md) - [All operations](https://skmtc.dev/prereason/apis/prereason-api/llms.txt) - [OpenAPI document](https://skmtc.dev/prereason/apis/prereason-api/revisions/fe5bacbc7887?raw)
