Platform
Status, health, and this API as OpenAPI and as markdown.
Which build answers
/api/v1/statusThe name, version and commit of the build that answered, and which deployment it is (production, lab, preview or development). Open to anyone.
Open to anyone. No key needed.
Required and optional fields, allowed values and errors, as the page shows them.
Examples
curl "https://liviamatch.com/api/v1/status"Responses
The build.
{
"data": {
"name": "livia-match",
"version": "0.2.0",
"commit": "67cd93e4c1f0a8b2d9e5731a60b4c8d2f1e9a735",
"deployment": "production"
}
}Fields (5)
| Field | Type | Description |
|---|---|---|
data | object | |
data.name | string | |
data.version | string | |
data.commit | string | null | |
data.deployment | string |
Errors
Any call of this kind can also answer500 internal
Health
/api/v1/healthWhether this deployment is healthy: ok is true when the database schema matches the build. A deployment is live only when commit is the one you shipped and ok is true. This is the one endpoint that answers a bare object, not the { data } envelope, because monitors expect ok at the top level. Never cached.
Open to anyone. No key needed.
Required and optional fields, allowed values and errors, as the page shows them.
Examples
curl "https://liviamatch.com/api/v1/health"Responses
Healthy.
{
"ok": true,
"version": "0.2.0",
"commit": "67cd93e4c1f0a8b2d9e5731a60b4c8d2f1e9a735",
"migrations": {
"applied": 93,
"expected": 93
},
"problem": null
}Fields (7)
| Field | Type | Description |
|---|---|---|
ok | boolean | True when this build's database schema is current. |
version | string | |
commit | string | null | The full commit SHA the deployment was built from. |
migrations | object | |
migrations.applied | integer | null | |
migrations.expected | integer | |
problem | string | null | Why ok is false, in words; null when it is true. |
Not healthy: the database is unreachable, unconfigured, or behind this build.
{
"ok": false,
"version": "0.2.0",
"commit": "67cd93e4c1f0a8b2d9e5731a60b4c8d2f1e9a735",
"migrations": {
"applied": 92,
"expected": 93
},
"problem": "schema is behind this build: applied 92, expected 93"
}Fields (7)
| Field | Type | Description |
|---|---|---|
ok | boolean | True when this build's database schema is current. |
version | string | |
commit | string | null | The full commit SHA the deployment was built from. |
migrations | object | |
migrations.applied | integer | null | |
migrations.expected | integer | |
problem | string | null | Why ok is false, in words; null when it is true. |
Errors
Any call of this kind can also answer500 internal
The OpenAPI document
/api/v1/openapi.jsonThis API as an OpenAPI 3.1 document, generated from the same reference these docs are, so it cannot disagree with them. Feed it to a client generator, Postman or an API gateway. Open to anyone and cacheable for an hour.
Open to anyone. No key needed.
Required and optional fields, allowed values and errors, as the page shows them.
Examples
curl "https://liviamatch.com/api/v1/openapi.json"Responses
The OpenAPI 3.1 document.
HeadersX-Request-Id
Fields (5)
| Field | Type | Description |
|---|---|---|
openapi | string | |
info | object | |
info.title | string | |
info.version | string | |
paths | object |
Errors
Any call of this kind can also answer500 internal
The docs as markdown for AI
/api/v1/docs.mdThe whole API as markdown for an AI model: every endpoint, field, allowed value and error code these pages show, written from the same reference, with notes on using it safely. Each endpoint's Copy for AI button copies its own part. Open to anyone and cacheable for an hour.
Open to anyone. No key needed.
Required and optional fields, allowed values and errors, as the page shows them.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
endpoint | Query | string | Optional | One endpoint's id, the anchor of its section in these docs, to answer only its part. Absent, the whole API. |
Examples
curl "https://liviamatch.com/api/v1/docs.md?endpoint=start-search"Responses
The markdown.
HeadersX-Request-Id
# Start a search
`POST /api/v1/search`
Saves a search from a full request and queues its first run.Errors
| Status | Code | When |
|---|---|---|
| 404 | not-found | The docs list no endpoint with that id. |
Any call of this kind can also answer500 internal