Download OpenAPI specification:Download
The API for Kong Konnect API Products.
An API Product packages together associated APIs and their operations, backed by thorough documentation, with the objective of making API consumption straightforward for developers.
| name required | string [ 1 .. 100 ] characters The name of the API product. |
| description | string or null Default: null The description of the API product. |
object (Labels) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". | |
object (PublicLabels) <= 50 properties Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store PUBLIC metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". | |
| portal_ids | Array of strings <uuid> >= 0 items unique The list of portal identifiers which this API product should be published to |
{- "name": "API Product"
}{- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "name": "API Product",
- "description": "Text describing the API product",
- "portal_ids": [ ],
- "portals": [ ],
- "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z",
- "version_count": 10,
- "labels": {
- "env": "test"
}, - "public_labels": {
- "label": "value"
}
}Returns a collection of API products.
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
object (APIProductFilterParameters) Filters API Products in the response. | |
| sort | string (SortQuery) Example: sort=name desc Sorts a collection of API products. Supported sort attributes are:
|
| labels | string Example: labels=key:value,keyExists Filters requested resource by associated labels. |
| public_labels | string Example: public_labels=key:value,keyExists Filters requested resource by associated public labels. |
{- "data": [
- {
- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "name": "API Product",
- "description": "Text describing the API product",
- "portal_ids": [ ],
- "portals": [ ],
- "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z",
- "version_count": 10,
- "labels": {
- "env": "test"
}, - "public_labels": {
- "label": "value"
}
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 1,
- "total": 10
}
}
}Returns an API product.
| id required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a API product identifier |
{- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "name": "API Product",
- "description": "Text describing the API product",
- "portal_ids": [ ],
- "portals": [ ],
- "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z",
- "version_count": 10,
- "labels": {
- "env": "test"
}, - "public_labels": {
- "label": "value"
}
}Updates an API product.
| id required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a API product identifier |
| name | string [ 1 .. 100 ] characters The name for the API product. |
| description | string or null The description of the API product. |
object or null (LabelsUpdate) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Labels are intended to store INTERNAL metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". | |
object (PublicLabelsUpdate) <= 50 properties Public labels store information about an entity that can be used for filtering a list of objects. Public labels are intended to store PUBLIC metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". | |
| portal_ids | Array of strings <uuid> >= 0 items unique The list of portal identifiers which this API product should be published to |
{- "name": "API Product with Update Name",
- "description": "Updated text describing the API product"
}{- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "name": "API Product",
- "description": "Text describing the API product",
- "portal_ids": [ ],
- "portals": [ ],
- "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z",
- "version_count": 10,
- "labels": {
- "env": "test"
}, - "public_labels": {
- "label": "value"
}
}Removes an individual API product.
| id required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a API product identifier |
{- "status": 401,
- "title": "Unauthorized",
- "instance": "kong:trace:8347343766220159418",
- "detail": "Unauthorized"
}Creates a document for an API product.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API product identifier |
| parent_document_id | string or null <uuid> Default: null parent document id |
| slug required | string <= 80 characters ^[\w-]+$ document slug. must be unique accross documents belonging to an api product |
| status required | string (PublishStatus) Enum: "published" "unpublished" |
| title required | string non-empty document title |
| content | string Can be markdown string content or base64 encoded string |
| metadata | object Default: {} metadata of the document |
{- "slug": "api-product-document",
- "status": "published",
- "title": "API Product Document",
- "content": "IyBBUEkgUHJvZHVjdCBEb2N1bWVudCBIZWFkZXIKQVBJIHByb2R1Y3QgZG9jdW1lbnQgY29udGVudA=="
}{- "id": "de5c9818-be5c-42e6-b514-e3d4bc30ddeb",
- "parent_document_id": null,
- "title": "API Product Document",
- "slug": "api-product-document",
- "status": "published",
- "content": "# API Product Document Header",
- "ast": [
- {
- "children": [
- {
- "text": "API Product Document Header",
- "type": "text"
}
], - "level": 1,
- "type": "heading"
}, - {
- "children": [
- {
- "children": [
- {
- "text": "API product document content",
- "type": "text"
}
], - "type": "paragraph"
}
]
}
], - "metadata": { },
- "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z"
}Returns a collection of all documents for an API product.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API product identifier |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
{- "data": [
- {
- "id": "de5c9818-be5c-42e6-b514-e3d4bc30ddeb",
- "parent_document_id": null,
- "slug": "api-product-document",
- "status": "published",
- "title": "API Product Document",
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 1,
- "total": 10
}
}
}Returns a document for the API product.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API product identifier |
| id required | string <uuid> Example: de5c9818-be5c-42e6-b514-e3d4bc30ddeb The document identifier related to the API product |
{- "id": "de5c9818-be5c-42e6-b514-e3d4bc30ddeb",
- "parent_document_id": null,
- "title": "API Product Document",
- "slug": "api-product-document",
- "status": "published",
- "content": "# API Product Document Header",
- "ast": [
- {
- "children": [
- {
- "text": "API Product Document Header",
- "type": "text"
}
], - "level": 1,
- "type": "heading"
}, - {
- "children": [
- {
- "children": [
- {
- "text": "API product document content",
- "type": "text"
}
], - "type": "paragraph"
}
]
}
], - "metadata": { },
- "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z"
}Updates a document for an API product.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API product identifier |
| id required | string <uuid> Example: de5c9818-be5c-42e6-b514-e3d4bc30ddeb The document identifier related to the API product |
| parent_document_id | string or null <uuid> Parent document Id. If this value is explicitly set to null, the document will be put as a top level document at the bottom of the tree. |
| slug | string <= 80 characters ^[\w-]+$ document slug. must be unique accross documents belonging to an api product |
| status | string (PublishStatus) Enum: "published" "unpublished" |
| title | string non-empty document title |
| content | string Can be markdown string content or base64 encoded string |
| metadata | object |
{- "parent_document_id": "dd4e1b98-3629-4dd3-acc0-759a726ffee2",
- "slug": "api-product-document",
- "status": "published",
- "title": "API Product Document",
- "metadata": {
- "author": "Jane Doe"
}
}{- "id": "de5c9818-be5c-42e6-b514-e3d4bc30ddeb",
- "parent_document_id": null,
- "title": "API Product Document",
- "slug": "api-product-document",
- "status": "published",
- "content": "# API Product Document Header",
- "ast": [
- {
- "children": [
- {
- "text": "API Product Document Header",
- "type": "text"
}
], - "level": 1,
- "type": "heading"
}, - {
- "children": [
- {
- "children": [
- {
- "text": "API product document content",
- "type": "text"
}
], - "type": "paragraph"
}
]
}
], - "metadata": { },
- "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z"
}Removes a document from an API product.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API product identifier |
| id required | string <uuid> Example: de5c9818-be5c-42e6-b514-e3d4bc30ddeb The document identifier related to the API product |
{- "status": 401,
- "title": "Unauthorized",
- "instance": "kong:trace:8347343766220159418",
- "detail": "Unauthorized"
}Creates a version of an API product.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API Product ID |
| name required | string non-empty The version name of the API product version. |
| publish_status | string Deprecated Default: "unpublished" Enum: "unpublished" "published" The publish status of the API product version. Applies publish status to all related portal product versions. This field is deprecated: Use PortalProductVersion.publish_status instead. |
| deprecated | boolean Deprecated Default: false Indicates if the version of the API product is deprecated. Applies deprecation or removes deprecation from all related portal product versions. This field is deprecated: Use PortalProductVersion.deprecated instead. |
object (Labels) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". | |
(GatewayServicePayload (object or null)) or (LegacyGatewayServicePayload (object or null)) |
{- "name": "v1"
}{- "id": "9f5061ce-78f6-4452-9108-ad7c02821fd5",
- "name": "v1",
- "gateway_service": {
- "runtime_group_id": "e4d9ebb1-26b4-426a-b00e-cb67044f3baf",
- "control_plane_id": "e4d9ebb1-26b4-426a-b00e-cb67044f3baf",
- "id": "09b4786a-3e48-4631-8f6b-62d1d8e1a7f3"
}, - "publish_status": "unpublished",
- "deprecated": false,
- "labels": {
- "env": "test"
}, - "portals": [
- {
- "portal_id": "35a2624c-49fc-4764-99e1-224ed819f200",
- "portal_name": "Developer Portal",
- "portal_product_version_id": "35a2624c-49fc-4764-99e1-224ed819f200",
- "publish_status": "published",
- "deprecated": false,
- "application_registration_enabled": true,
- "auto_approve_registration": false,
- "auth_strategies": [
- {
- "id": "9f5061ce-78f6-4452-9108-ad7c02821fd5",
- "name": "Key Auth"
}
]
}
], - "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z"
}Returns a collection of all versions for an API product.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API Product ID |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
object (APIProductVersionFilterParameters) Filters API Product Versions in the response. | |
| sort | string (SortQuery) Example: sort=name desc Sorts a collection of API products versions. Supported sort attributes are:
|
{- "data": [
- {
- "id": "9f5061ce-78f6-4452-9108-ad7c02821fd5",
- "name": "v1",
- "gateway_service": {
- "runtime_group_id": "e4d9ebb1-26b4-426a-b00e-cb67044f3baf",
- "control_plane_id": "e4d9ebb1-26b4-426a-b00e-cb67044f3baf",
- "id": "09b4786a-3e48-4631-8f6b-62d1d8e1a7f3"
}, - "publish_status": "unpublished",
- "deprecated": false,
- "labels": {
- "env": "test"
}, - "portals": [
- {
- "portal_id": "35a2624c-49fc-4764-99e1-224ed819f200",
- "portal_name": "Developer Portal",
- "portal_product_version_id": "35a2624c-49fc-4764-99e1-224ed819f200",
- "publish_status": "published",
- "deprecated": false,
- "application_registration_enabled": true,
- "auto_approve_registration": false,
- "auth_strategies": [
- {
- "id": "35a2624c-49fc-4764-99e1-224ed819f200",
- "name": "OIDC"
}
]
}
], - "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z"
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 1,
- "total": 10
}
}
}Returns a version of an API product.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API product identifier |
| id required | string <uuid> Example: 9f5061ce-78f6-4452-9108-ad7c02821fd5 The API product version identifier |
{- "id": "9f5061ce-78f6-4452-9108-ad7c02821fd5",
- "name": "v1",
- "gateway_service": {
- "runtime_group_id": "e4d9ebb1-26b4-426a-b00e-cb67044f3baf",
- "control_plane_id": "e4d9ebb1-26b4-426a-b00e-cb67044f3baf",
- "id": "09b4786a-3e48-4631-8f6b-62d1d8e1a7f3"
}, - "publish_status": "unpublished",
- "deprecated": false,
- "labels": {
- "env": "test"
}, - "portals": [
- {
- "portal_id": "35a2624c-49fc-4764-99e1-224ed819f200",
- "portal_name": "Developer Portal",
- "portal_product_version_id": "35a2624c-49fc-4764-99e1-224ed819f200",
- "publish_status": "published",
- "deprecated": false,
- "application_registration_enabled": true,
- "auto_approve_registration": false,
- "auth_strategies": [
- {
- "id": "9f5061ce-78f6-4452-9108-ad7c02821fd5",
- "name": "Key Auth"
}
]
}
], - "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z"
}Updates an API product version.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API product identifier |
| id required | string <uuid> Example: 9f5061ce-78f6-4452-9108-ad7c02821fd5 The API product version identifier |
| name | string non-empty The version name of the API product version. |
| publish_status | string Deprecated Enum: "unpublished" "published" The publish status of the API product version. Applies publish status to all related portal product versions. This field is deprecated: Use PortalProductVersion.publish_status instead. |
| deprecated | boolean Deprecated Indicates if the version of the API product is deprecated. Applies deprecation or removes deprecation from all related portal product versions. This field is deprecated: Use PortalProductVersion.deprecated instead. |
| notify | boolean When set to
then consumers of the now deprecated verion of the API product will be notified. |
(GatewayServicePayload (object or null)) or (LegacyGatewayServicePayload (object or null)) | |
object or null (LabelsUpdate) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Labels are intended to store INTERNAL metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "gateway_service": {
- "control_plane_id": "e4d9ebb1-26b4-426a-b00e-cb67044f3baf",
- "id": "09b4786a-3e48-4631-8f6b-62d1d8e1a7f3"
}
}{- "id": "9f5061ce-78f6-4452-9108-ad7c02821fd5",
- "name": "v1",
- "gateway_service": {
- "runtime_group_id": "e4d9ebb1-26b4-426a-b00e-cb67044f3baf",
- "control_plane_id": "e4d9ebb1-26b4-426a-b00e-cb67044f3baf",
- "id": "09b4786a-3e48-4631-8f6b-62d1d8e1a7f3"
}, - "publish_status": "unpublished",
- "deprecated": false,
- "labels": {
- "env": "test"
}, - "portals": [
- {
- "portal_id": "35a2624c-49fc-4764-99e1-224ed819f200",
- "portal_name": "Developer Portal",
- "portal_product_version_id": "35a2624c-49fc-4764-99e1-224ed819f200",
- "publish_status": "published",
- "deprecated": false,
- "application_registration_enabled": true,
- "auto_approve_registration": false,
- "auth_strategies": [
- {
- "id": "9f5061ce-78f6-4452-9108-ad7c02821fd5",
- "name": "Key Auth"
}
]
}
], - "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z"
}Removes an API product version.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API product identifier |
| id required | string <uuid> Example: 9f5061ce-78f6-4452-9108-ad7c02821fd5 The API product version identifier |
{- "status": 401,
- "title": "Unauthorized",
- "instance": "kong:trace:8347343766220159418",
- "detail": "Unauthorized"
}Creates a specification for a version of an API product. Note: You can only have one specification for a product version.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API product identifier |
| apiProductVersionId required | string <uuid> Example: 9f5061ce-78f6-4452-9108-ad7c02821fd5 The API product version identifier |
| name required | string [ 1 .. 255 ] characters ^.+(?:\.yaml|\.yml|\.json)$ The name of the API product version specification |
| content required | string <byte> non-empty The base64 encoded contents of the API product version specification |
{- "name": "oas.yaml",
- "content": "TXkgWUFNTCBvciBKU09OIGZvcm1hdHRlZCBPQVMgY29udGVudA=="
}{- "id": "7710d5c4-d902-410b-992f-18b814155b53",
- "name": "oas.yaml",
- "content": "My YAML or JSON formatted OAS content",
- "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z"
}Returns a list of specification for the version of an API product. Note: You can only have one specification for a product version.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API product identifier |
| apiProductVersionId required | string <uuid> Example: 9f5061ce-78f6-4452-9108-ad7c02821fd5 The API product version identifier |
{- "data": [
- {
- "id": "7710d5c4-d902-410b-992f-18b814155b53",
- "name": "oas.yaml",
- "content": "My YAML or JSON formatted OAS content",
- "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z"
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 1,
- "total": 1
}
}
}Returns a specification for the version of an API product.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API product identifier |
| apiProductVersionId required | string <uuid> Example: 9f5061ce-78f6-4452-9108-ad7c02821fd5 The API product version identifier |
| specificationId required | string <uuid> Example: 742ff9f1-fb89-4aeb-a599-f0e278c7aeaa The API product version specification identifier |
{- "id": "7710d5c4-d902-410b-992f-18b814155b53",
- "name": "oas.yaml",
- "content": "My YAML or JSON formatted OAS content",
- "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z"
}Updates a specification from an API product version.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API product identifier |
| apiProductVersionId required | string <uuid> Example: 9f5061ce-78f6-4452-9108-ad7c02821fd5 The API product version identifier |
| specificationId required | string <uuid> Example: 742ff9f1-fb89-4aeb-a599-f0e278c7aeaa The API product version specification identifier |
| name | string [ 1 .. 255 ] characters ^.+(?:\.yaml|\.yml|\.json)$ The name of the API product version specification |
| content | string <byte> non-empty The base64 encoded contents of the API product version specification |
{- "content": "TXkgWUFNTCBvciBKU09OIGZvcm1hdHRlZCBPQVMgY29udGVudA=="
}{- "id": "7710d5c4-d902-410b-992f-18b814155b53",
- "name": "oas.yaml",
- "content": "My YAML or JSON formatted OAS content",
- "created_at": "2023-01-01T00:00:00.000Z",
- "updated_at": "2023-01-01T00:00:00.000Z"
}Removes a specification from a verion of an API product.
| apiProductId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The API product identifier |
| apiProductVersionId required | string <uuid> Example: 9f5061ce-78f6-4452-9108-ad7c02821fd5 The API product version identifier |
| specificationId required | string <uuid> Example: 742ff9f1-fb89-4aeb-a599-f0e278c7aeaa The API product version specification identifier |
{- "status": 401,
- "title": "Unauthorized",
- "instance": "kong:trace:8347343766220159418",
- "detail": "Unauthorized"
}