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

Check that the server is up

Answers as soon as the server is up, whatever the state of its database. Use it as a liveness or container health check.

GET/api/health
Responses
204

The server is up.

Request
curl -X GET 'https://api.example.com/api/health'
Response
The server is up.

Was this page helpful?