Skip to content

API reference

Check whether the service can do its work

Other routes API

GET/ready
No key needed

Returns 200 when the database, the job queue and the validator all answer, and 503 when one of them does not. No credential is needed. Each check is up, down, or absent when this deployment runs without that part, which is not a failure. Each is given 3 seconds, and all three are asked at once. The answer never says why a part is down.

Response

A 200 answer carries these fields.

  • statusstringRequired
    One of ready, not_ready.
  • checksobjectRequired
    Show 3 child fields
    • databasestringRequired
      One of up, down, absent.
    • queuestringRequired
      One of up, down, absent.
    • validatorstringRequired
      One of up, down, absent.

Status codes

Status Meaning
200 Every part this deployment has is answering.
503 At least one part is down.
GET/ready
Example
curl https://api.certinvo.com/ready
const response = await fetch(`https://api.certinvo.com/ready`, {
})
console.log(response.status, await response.json())
import requests

response = requests.get(
    "https://api.certinvo.com/ready",
)
print(response.status_code, response.text)
200
application/json
{
  "status": "ready",
  "checks": {
    "database": "up",
    "queue": "up",
    "validator": "up"
  }
}
Success response
GET
/ready
Check whether the service can do its work
All
›AuthenticationNoneBearerAuth

This endpoint does not require authentication.

›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/ready" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close