Tyk Gateway API v5 LTS

Number of APIs: 51

The Tyk Gateway API is the primary means for integrating your application with the Tyk API Gateway system. This API is very small, and has no granular permissions system. It is intended to be used purely for internal automation and integration.

Warning: Under no circumstances should outside parties be granted access to this API.

The Tyk Gateway API is capable of:

  • Managing session objects (key generation)
  • Managing and listing policies
  • Managing and listing API Definitions (only when not using the Dashboard)
  • Hot reloads / reloading a cluster configuration
  • OAuth client creation (only when not using the Dashboard)

In order to use the Gateway API, you'll need to set the secret parameter in your tyk.conf file.

The shared secret you set should then be sent along as a header with each Gateway API Request in order for it to be successful:

x-tyk-authorization: <your-secret>

The Tyk Gateway API is subsumed by the Tyk Dashboard API in Pro installations.

  1. tyk-oauth-revoke_all - revoke all client's tokens POST {{baseUrl}}/tyk/oauth/revoke_all

  2. tyk-oauth-refresh-{keyName} - Invalidate OAuth refresh token DELETE {{baseUrl}}/tyk/oauth/refresh/:keyName?api_id=<string>

  3. tyk-apis-oas-{apiID}-export - download Api OAS Public GET {{baseUrl}}/tyk/apis/oas/:apiID/export?mode=<string>

  4. tyk-cache-{apiID} - Invalidate cache DELETE {{baseUrl}}/tyk/cache/:apiID

  5. tyk-apis-oas-{apiID}-versions - list OAS Api Versions GET {{baseUrl}}/tyk/apis/oas/:apiID/versions?searchText=<string>&accessType=internal

  6. tyk-apis-oas-{apiID} - Patch a single OAS API by ID PATCH {{baseUrl}}/tyk/apis/oas/:apiID?upstreamURL=<string>&listenPath=<string>&customDomain=<string>&validateRequest=true&allowList=true&mockResponse=true&authentication=true

  7. tyk-apis-oas-{apiID} - delete OAS Api DELETE {{baseUrl}}/tyk/apis/oas/:apiID

  8. tyk-keys-{keyID} - Get a Key GET {{baseUrl}}/tyk/keys/:keyID?hashed=<boolean>

  9. tyk-apis-oas-export - download Apis OAS Public GET {{baseUrl}}/tyk/apis/oas/export?mode=<string>

  10. tyk-apis-oas-import - import OAS POST {{baseUrl}}/tyk/apis/oas/import?upstreamURL=<string>&listenPath=<string>&customDomain=<string>&apiID=<string>&allowList=true&mockResponse=true&validateRequest=true&authentication=true