Documentation Documentation

Health Checking

Check the Health of the Gateway

To check your Gateway is set up properly and can proxy calls use the following call:

GET /hello HTTP/1.1

This will return the following:

HTTP/1.1 200 OK

Hello Tiki

Check the Health of a Tyk Node and Upstream API

Note: As of v2.4, the health-check API has been deprecated. We no longer recommend its use.

Tyk retains health data in Redis which reflects the current state of the API, in particular, the health-check API will return:

  • upstream latency average
  • requests per second
  • throttles per second
  • quota violations per second
  • key failure events per second
Property Description
Resource URL /tyk/health
Method GET
Type None
Body None
Param api_id (required)

Sample request

GET /tyk/health/?api_id=768575647356 HTTP/1.1
Host: localhost:8080
X-Tyk-Authorization: 352d20ee67be67f6340b4c0605b044b7
Cache-Control: no-cache

Sample Response

{
  "throttle_requests_per_second": 0,
  "quota_violations_per_second": 0,
  "key_failures_per_second": 0,
  "average_upstream_latency": 0,
  "average_requests_per_second": 0
}