How to check API availability

Each API has a Health Check function. You can test each API by its /healthcheck endpoint. An HTTP Response Code of 204 indicates that the service if operating normally. Note that the response body will be empty.

Example using Auth API

Request

curl --request GET -i \
  --url https://rest.sandbox.karhoo.com/v1/auth/healthcheck

OK Response

HTTP/1.1 204 No Content
Content-Type: text/plain; charset=UTF-8
Date: Fri, 202 Dec 2019 12:51:38 GMT
Access-Control-Allow-Origin: *
Strict-Transport-Security: max-age=31536000; includeSubDomains
Referrer-Policy: strict-origin-when-cross-origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block
Via: 1.1 google
Alt-Svc: clear