|
6 | 6 | url: https://tyk.io/contact |
7 | 7 | description: |2 |
8 | 8 | <img src="https://tyk.io/docs/img/swagger_dashboard_image.png" width="963" height="250"> |
9 | | -
|
| 9 | + |
10 | 10 | ## <a name="introduction"></a> Introduction |
11 | 11 |
|
12 | 12 | The Tyk Dashboard API offers granular, programmatic access to a centralised database of resources that your Tyk nodes can pull from. This API has a dynamic user administrative structure which means the secret key that is used to communicate with your Tyk nodes can be kept secret and access to the wider management functions can be handled on a user-by-user and organisation-by-organisation basis. |
|
39 | 39 | name: Mozilla Public License Version 2.0 |
40 | 40 | url: https://github.com/TykTechnologies/tyk/blob/master/LICENSE.md |
41 | 41 | title: Tyk Dashboard API |
42 | | - version: 5.9.0 |
| 42 | + version: 5.10.0 |
43 | 43 | servers: |
44 | 44 | - url: https://{tenant} |
45 | 45 | variables: |
@@ -175,6 +175,8 @@ tags: |
175 | 175 | name: Single Sign On |
176 | 176 | - description: System API. |
177 | 177 | name: System |
| 178 | +- description: Notifications for an organisation |
| 179 | + name: Organisation Notifications |
178 | 180 | paths: |
179 | 181 | /api/activity/keys/{keyHash}/{startDay}/{startMonth}/{startYear}/{EndDay}/{EndMonth}/{EndYear}: |
180 | 182 | get: |
@@ -1622,7 +1624,7 @@ paths: |
1622 | 1624 | operationId: proxyRequest |
1623 | 1625 | description: | |
1624 | 1626 | Forwards a request to a specified gateway endpoint. This endpoint allows you to send requests to other services through the Tyk gateway, which can be useful for testing or accessing protected resources. |
1625 | | -
|
| 1627 | + |
1626 | 1628 | The proxy will forward your request to the specified URL, including any headers and body data you provide. It then returns the response from the target service, including status code, headers, and body. |
1627 | 1629 | tags: |
1628 | 1630 | - Proxy |
@@ -3258,6 +3260,16 @@ paths: |
3258 | 3260 | schema: |
3259 | 3261 | $ref: '#/components/schemas/ApiResponse' |
3260 | 3262 | description: API not found. |
| 3263 | + "422": |
| 3264 | + content: |
| 3265 | + application/json: |
| 3266 | + example: |
| 3267 | + Message: '{apiId} is not recognised' |
| 3268 | + Meta: null |
| 3269 | + Status: Error |
| 3270 | + schema: |
| 3271 | + $ref: '#/components/schemas/ApiResponse' |
| 3272 | + description: API not recognised. |
3261 | 3273 | summary: List OAS API versions. |
3262 | 3274 | tags: |
3263 | 3275 | - OAS APIs |
@@ -4731,11 +4743,13 @@ paths: |
4731 | 4743 | enum: |
4732 | 4744 | - detailed |
4733 | 4745 | type: string |
4734 | | - - description: |- |
4735 | | - Defines the filtering strategy applied to certificate keys. |
4736 | | - This query param works only in combination with detailed mode (mode=detailed). |
4737 | | - omit – Includes all certificates; this is the default behavior. |
4738 | | - with_pk – Returns only certificates that are associated with a private key. |
| 4746 | + - description: |- |
| 4747 | + Used to apply filtering to the list of certificates returned in the response. |
| 4748 | + With this option you are able to filter by certificates that can be used when signing a request (i.e. they contain a private key), |
| 4749 | + or those used to validate a signature (i.e. they do not contain a private key, only the public key). |
| 4750 | + This query param works only in combination with detailed mode (mode=detailed). |
| 4751 | + `omit` (default) – Returns all certificates. |
| 4752 | + with_pk – Returns only certificates that include a private key. |
4739 | 4753 | without_pk – Returns only certificates that do not include a private key. |
4740 | 4754 | name: filter |
4741 | 4755 | example: omit |
@@ -7783,7 +7797,7 @@ paths: |
7783 | 7797 | - Schemas |
7784 | 7798 | /api/schemas/apidefs/streams-oas: |
7785 | 7799 | get: |
7786 | | - description: Get API definition Streams OAS schema. |
| 7800 | + description: Retrieve schema for Tyk Streams APIs, enabling developers and integrators to validate or generate stream-based API definitions programmatically. Optionally select the OAS version and pretty-print formatting. |
7787 | 7801 | operationId: getApidefStreamsOASSchema |
7788 | 7802 | parameters: |
7789 | 7803 | - description: The OAS version. |
@@ -9384,8 +9398,8 @@ paths: |
9384 | 9398 | required: false |
9385 | 9399 | schema: |
9386 | 9400 | type: integer |
9387 | | - - description: | |
9388 | | - This parameter filters audit logs based on partially matching the accessed API endpoint's URL path. It allows searching for actions performed on related resources or sections of the API by matching any portion of the URL. The match is case-sensitive and ignores additional path segments or query parameters beyond the matched portion. |
| 9401 | + - description: | |
| 9402 | + This parameter filters audit logs based on partially matching the accessed API endpoint's URL path. It allows searching for actions performed on related resources or sections of the API by matching any portion of the URL. The match is case-sensitive and ignores additional path segments or query parameters beyond the matched portion. |
9389 | 9403 | For example, if the database contains URLs like `/tib/create`, `/tib/get/1?schema=json`, `/api/schema`, and `/schema1` searching with `url=schema` would return `/api/schema` and `/schema1`. |
9390 | 9404 | example: /api/apis |
9391 | 9405 | in: query |
@@ -9573,6 +9587,60 @@ paths: |
9573 | 9587 | summary: Retrieve single audit log |
9574 | 9588 | tags: |
9575 | 9589 | - AuditLogs |
| 9590 | + /api/org/notifications: |
| 9591 | + get: |
| 9592 | + description: Retrieve all notifications that have been issued for a specific Tyk Organisation. |
| 9593 | + operationId: getAllOrganisationNotifications |
| 9594 | + parameters: |
| 9595 | + - description: Setting refresh to true will force the API to refresh the list of notifications. |
| 9596 | + example: 'true' |
| 9597 | + in: query |
| 9598 | + name: refresh |
| 9599 | + required: false |
| 9600 | + schema: |
| 9601 | + type: string |
| 9602 | + responses: |
| 9603 | + "200": |
| 9604 | + content: |
| 9605 | + application/json: |
| 9606 | + example: |
| 9607 | + - id: b52f491a-2946-408b-9330-2736db85705b |
| 9608 | + created_at: 2025-08-13T11:16:12.194968+02:00 |
| 9609 | + org_id: 683d6e6a954737af2aa8e5c2 |
| 9610 | + hash: '17090217262863020087' |
| 9611 | + kind: warning |
| 9612 | + topic: certificate.expiry |
| 9613 | + title: Certificate will expire soon |
| 9614 | + message: Certificate with ID 683d6e6a954737af2aa8e5c20d545f3211d5a53684114dc8b3ebb2503edf6fabf2e5812425be2fa108f3fb4d will expire in less than 18 days |
| 9615 | + data: |
| 9616 | + cert_id: 683d6e6a954737af2aa8e5c20d545f3211d5a53684114dc8b3ebb2503edf6fabf2e5812425be2fa108f3fb4d |
| 9617 | + expiry_date: 2025-08-31T08:41:53Z |
| 9618 | + days_remaining: 17 |
| 9619 | + schema: |
| 9620 | + type: array |
| 9621 | + items: |
| 9622 | + $ref: '#/components/schemas/OrganisationNotification' |
| 9623 | + |
| 9624 | + description: Returns a list of notifications that have been issued for the specified Tyk Organisation. |
| 9625 | + "401": |
| 9626 | + content: |
| 9627 | + application/json: |
| 9628 | + example: |
| 9629 | + Message: Not authorised |
| 9630 | + Meta: null |
| 9631 | + Status: Error |
| 9632 | + description: Unauthorized |
| 9633 | + "403": |
| 9634 | + content: |
| 9635 | + application/json: |
| 9636 | + example: |
| 9637 | + Message: 'access denied: You do not have permission to access /api/org/notifications' |
| 9638 | + Meta: null |
| 9639 | + Status: Error |
| 9640 | + description: Forbidden |
| 9641 | + summary: Retrieve notifications |
| 9642 | + tags: |
| 9643 | + - Organisation Notifications |
9576 | 9644 | components: |
9577 | 9645 | examples: |
9578 | 9646 | aggregateAnalytics: |
@@ -10978,6 +11046,16 @@ components: |
10978 | 11046 | pages: |
10979 | 11047 | type: integer |
10980 | 11048 | type: object |
| 11049 | + CertificateExpiryData: |
| 11050 | + properties: |
| 11051 | + cert_id: |
| 11052 | + type: string |
| 11053 | + expiry_date: |
| 11054 | + type: string |
| 11055 | + days_remaining: |
| 11056 | + type: integer |
| 11057 | + type: object |
| 11058 | + x-go-package: github.com/TykTechnologies/tyk-analytics/dashboard/repository/notification |
10981 | 11059 | CertificateList: |
10982 | 11060 | properties: |
10983 | 11061 | certs: |
@@ -12551,6 +12629,31 @@ components: |
12551 | 12629 | additionalProperties: |
12552 | 12630 | $ref: '#/components/schemas/ParameterRef' |
12553 | 12631 | type: object |
| 12632 | + OrganisationNotification: |
| 12633 | + properties: |
| 12634 | + id: |
| 12635 | + type: string |
| 12636 | + created_at: |
| 12637 | + type: string |
| 12638 | + org_id: |
| 12639 | + type: string |
| 12640 | + hash: |
| 12641 | + type: string |
| 12642 | + kind: |
| 12643 | + type: string |
| 12644 | + enum: [ "critical", "warning" ] |
| 12645 | + topic: |
| 12646 | + type: string |
| 12647 | + enum: [ "certificate.expiry" ] |
| 12648 | + title: |
| 12649 | + type: string |
| 12650 | + message: |
| 12651 | + type: string |
| 12652 | + data: |
| 12653 | + oneOf: |
| 12654 | + - $ref: "#/components/schemas/CertificateExpiryData" |
| 12655 | + type: object |
| 12656 | + x-go-package: github.com/TykTechnologies/tyk-analytics/dashboard/model |
12554 | 12657 | PathItem: |
12555 | 12658 | properties: |
12556 | 12659 | $ref: |
|
0 commit comments