Early access: these pages are being written and reviewed. Facts in the header boxes come straight from the product.
Check service health
GET
/health
const url = 'https://api.pitch2sale.com/health';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.pitch2sale.com/healthUnauthenticated. Reports MongoDB and Redis connectivity and whether background workers run; answers 503 when a dependency is down.
Responses
Section titled “Responses”All dependencies connected
Media typeapplication/json
object
status
required
string
checks
required
object
key
additional properties
string
workers_enabled
required
boolean
uptime
required
number
Example
{ "status": "healthy"}Rate limit exceeded
Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{ "error": "example", "code": "example", "message": "example", "details": [ { "field": "example", "message": "example", "code": "example" } ]}A dependency is down
Media typeapplication/json
object
status
required
string
checks
required
object
key
additional properties
string
workers_enabled
required
boolean
uptime
required
number
Example
{ "status": "healthy"}