Skip to content
Peal
Esc
↑↓navigate↵open⌘Jpreview

Check that the server can take traffic

Answers once the server can reach its database, and fails with DatabaseUnavailable while it cannot. Use it as a readiness check before sending traffic.

GET/api/ready
Responses
204

The server and its database both answer.

503

The server cannot reach its database.

_tagstringrequired
Allowed:DatabaseUnavailable
codestring
messagestring
requestIdstring
Request
curl -X GET 'https://api.example.com/api/ready' \
  -H 'Accept: application/json'
Response
The server and its database both answer.