Skip to content
Panel

API Reference Endpoints

Health

Check whether the API and the MCP gateway are up and ready to serve requests.

The API (https://api.mot3r.com) and the MCP gateway (https://mcp.mot3r.com) each expose the same three health endpoints. They need no key. Use /v1/health/live to see whether the service process is up, /v1/health/ready to see whether it can serve requests, and /v1/health for a combined summary that stays 200 while the service runs.

Every answer carries exactly two fields, ok and service, and the status code carries the state: 200 is healthy, 503 is not. Read the status code first. The answer is never cached (Cache-Control: no-store) and it holds no detail about the host or its dependencies, so a monitor can poll it freely.

NameTypeDescription
okbooleantrue when the service answers 2xx, false otherwise.
servicestringapi for https://api.mot3r.com, gateway for https://mcp.mot3r.com.

If the service process is not running at all, the edge answers 502 Bad Gateway without this body.

#Methods

The health endpoints accept GET and HEAD. HEAD returns the same status code and the same headers as GET and an empty body, so a monitor that sends HEAD sees the real state: 200 when the service is healthy and 503 when it is not.

Any other method, including OPTIONS and POST, is answered with 405 Method Not Allowed, an empty body and the header Allow: GET, HEAD. That answer does not report the state of the service, and it is never cached.

bash
curl -sSI https://api.mot3r.com/v1/health
text
HTTP/2 200
content-type: application/json
bash
curl -sS -i -X OPTIONS https://api.mot3r.com/v1/health
text
HTTP/2 405
allow: GET, HEAD

#Get API health

GET /v1/health

Combined summary of the API service. Answers 200 while the process is up, even when it is not ready; use /v1/health/ready for readiness.

Authentication: none.

Parameters

This endpoint takes no parameters.

Request

bash
curl -sS https://api.mot3r.com/v1/health

Response 200

JSON
{"ok":true,"service":"api"}

Error 503

JSON
{"ok":false,"service":"api"}

#Check API liveness

GET /v1/health/live

Answers 200 while the API process is up. It does not touch the database.

Authentication: none.

Parameters

This endpoint takes no parameters.

Request

bash
curl -sS https://api.mot3r.com/v1/health/live

Response 200

JSON
{"ok":true,"service":"api"}

#Check API readiness

GET /v1/health/ready

Runs the readiness checks of the API and answers 200 when every critical check passes, 503 otherwise. The result is reused for 5 seconds. The checks themselves are not public.

Authentication: none.

Parameters

This endpoint takes no parameters.

Request

bash
curl -sS https://api.mot3r.com/v1/health/ready

Response 200

JSON
{"ok":true,"service":"api"}

Error 503

JSON
{"ok":false,"service":"api"}

#Get gateway health

GET /v1/health

The same summary for the MCP gateway.

Authentication: none.

Parameters

This endpoint takes no parameters.

Request

bash
curl -sS https://mcp.mot3r.com/v1/health

Response 200

JSON
{"ok":true,"service":"gateway"}

Error 503

JSON
{"ok":false,"service":"gateway"}

#Check gateway liveness

GET /v1/health/live

Answers 200 while the gateway process is up. It does not touch the database.

Authentication: none.

Parameters

This endpoint takes no parameters.

Request

bash
curl -sS https://mcp.mot3r.com/v1/health/live

Response 200

JSON
{"ok":true,"service":"gateway"}

#Check gateway readiness

GET /v1/health/ready

Runs the readiness checks of the gateway: 200 when every critical check passes, 503 otherwise. The result is reused for 5 seconds.

Authentication: none.

Parameters

This endpoint takes no parameters.

Request

bash
curl -sS https://mcp.mot3r.com/v1/health/ready

Response 200

JSON
{"ok":true,"service":"gateway"}

Error 503

JSON
{"ok":false,"service":"gateway"}