# Status and the OpenAPI document

Check the API is up and which release it runs, and fetch the OpenAPI document it serves. This page is generated from the OpenAPI document of release `main-6976024`, the one the API serves, so it lists only what the API has.

How to authenticate, where errors are explained, and the other resources are in the [API reference](https://flyanote.com/docs/api).

## Operations

* [Liveness, with the deployed version and commit](https://flyanote.com/docs/api/status#get-health): `GET /health`
* [Reads the pipeline probe row through the database, RLS, and tenant context](https://flyanote.com/docs/api/status#get-ping): `GET /v1/ping`
* [This OpenAPI document, as the running release serves it](https://flyanote.com/docs/api/status#get-open-api): `GET /openapi`

## Liveness, with the deployed version and commit

`GET /health`

No API key needed.

### Answers

* **200**: The API is up
* **500**:  
  * Internal error ([internal](https://flyanote.com/docs/errors#internal))

### What a 200 answers

| Field              | What it is |
| ------------------ | ---------- |
| status (required)  | ok.        |
| version (required) | text.      |
| sha (required)     | text.      |
| region (required)  | text.      |

## Reads the pipeline probe row through the database, RLS, and tenant context

`GET /v1/ping`

Each API instance reuses its last answer for 15 seconds: a success from when it arrived, a failure from when its probe began.

No API key needed.

### Answers

* **200**: The database path works
* **500**:  
  * Internal error ([internal](https://flyanote.com/docs/errors#internal))
* **503**:  
  * Database unavailable ([database\_unavailable](https://flyanote.com/docs/errors#database-unavailable))

### What a 200 answers

| Field           | What it is |
| --------------- | ---------- |
| note (required) | text.      |

## This OpenAPI document, as the running release serves it

`GET /openapi`

Built from the routes this deployment mounts, so it describes exactly what the API answers here: `info.version` names the release, `servers` this deployment's address, and an operation that isn't live here yet isn't listed. The web app's own operations are left out. Cacheable for five minutes, readable from any origin, and gzipped for a client that accepts it.

No API key needed.

### Answers

* **200**: The OpenAPI 3.1 document
* **500**:  
  * Internal error ([internal](https://flyanote.com/docs/errors#internal))

### What a 200 answers

| Field                   | What it is |
| ----------------------- | ---------- |
| openapi (required)      | text.      |
| info (required)         | an object. |
| info.title (required)   | text.      |
| info.version (required) | text.      |
