Health Check
Health Check API endpoint for Sweeppea. POST account/healthCheck. Complete documentation with code examples in cURL, JavaScript, and Python.
POST
account/health-check
Description
This endpoint allows you to verify that the API is healthy and your API token is valid. Use this for monitoring purposes or to check the connection status before making other API calls. This is a lightweight endpoint that requires only authentication and returns a simple success message.
Code Examples
curl -X POST "https://api-v3.sweeppea.com/account/health-check" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Response
200 OK
{
"Response": true,
"Message": "API is healthy"
}
Error Responses
401 Unauthorized
{
"Response": false,
"Message": "Invalid or Missing Bearer Token"
}
500 Internal Server Error
{
"Response": false,
"Message": "Internal Server Error"
}