Skip to main content
Legacy: Tyk Classic PortalYou’re viewing documentation for the Tyk Classic Portal, which is no longer actively maintained.If you’re looking for the latest API documentation for the new Tyk Developer Portal, please refer to the Postman collection or visit the Tyk Developer Portal section.The Classic Portal is in maintenance mode and will be deprecated soon. For questions or support, contact us at support@tyk.io.

Get List of Policies

Sample Request

Sample Response

Notice that the apiid field is different than the rest of the policy definitions! (See GitHub issue 192)

Search list of Policies

Sample Request

Sample Response

Similar to Policies list endpoint

Retrieve a single policy by ID

Sample request

Sample Response

Create Policy Definition

Creating policy definitions is slightly different to the core API, API definitions are wrapped inside an api_definition field and event handlers, such as webhooks are not embedded in the main api_defintion object (though they can be), webhooks are instead appended as references into the hook_references field, the API will embed the correct webhook data into the event handler interface.

Sample Request

Sample Response

Update Policy Definition

Sample Request

Sample Response

Delete Policy Definition

Sample Request

Sample Response

Graphql API

Presently, the Tyk Dashboard uses the GraphQL API for policies.