Attention:You’ve reached a page related to the Tyk Classic Portal. If you were searching for API documentation of the new Tyk
Developer Portal please use the latest
Postman collection page.
Future deprecation of Tyk Classic PortalThis product is no longer actively developed as it has been superseded by the new Tyk Developer Portal.
Please note that the Tyk Classic Portal now has limited support and maintenance. Please contact us at [email protected]if you have any questions.
Future deprecation of Tyk Classic PortalThis product is no longer actively developed as it has been superseded by the new Tyk Developer Portal.
Please note that the Tyk Classic Portal now has limited support and maintenance. Please contact us at [email protected]if you have any questions.
Get List of Policies
| Property | Description |
|---|---|
| Resource URL | /api/portal/policies/ |
| Method | GET |
| Type | None |
| Body | None |
| Param | None |
Sample Request
Sample Response
apiid field is different than the rest of the policy definitions! (See GitHub issue 192)
Search list of Policies
| Property | Description |
|---|---|
| Resource URL | /api/portal/policies/search |
| Method | GET |
| Type | None |
| Body | None |
| Param | None |
Sample Request
Sample Response
Similar to Policies list endpointRetrieve a single policy by ID
| Property | Description |
|---|---|
| Resource URL | /api/portal/policies/{id} |
| Method | GET |
| Type | None |
| Body | None |
| Param | None |
Sample request
Sample Response
Create Policy Definition
Creating policy definitions is slightly different to the core API, API definitions are wrapped inside anapi_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.
| Property | Description |
|---|---|
| Resource URL | /api/portal/policies/ |
| Method | POST |
| Type | None |
| Body | Advanced Policy Definition |
| Param | None |
Sample Request
Sample Response
Update Policy Definition
| Property | Description |
|---|---|
| Resource URL | /api/portal/policies/{id} |
| Method | PUT |
| Type | None |
| Body | Advanced Policy Definition |
| Param | None |
Sample Request
Sample Response
Delete Policy Definition
| Property | Description |
|---|---|
| Resource URL | /api/portal/policies/{id} |
| Method | DELETE |
| Type | None |
| Body | None |
| Param | None |
Sample Request
Sample Response
Graphql API
Presently, the Tyk Dashboard uses the GraphQL API for policies.| Method | URL | Description |
|---|---|---|
| POST | /graphql | GraphQL query endpoint |
| GET | /playground | Dashboard Graphql Playground - where you could see docs and run queries |