API Products

Get an API product

Changed on

Returns an API product.

get/v2/api-products/{id}

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required
Example:d32d905a-ed33-46a3-a093-d8f536af9a8a

API product identifier

Response

API product

APIProduct required
id, string uuid required

The API product ID.

name, string required

The name of the API product

description, string nullable required

The description of the API product

portal_ids, string[] required

The list of portal identifiers which this API product is published to. This property is deprecated and will be removed in a future version. Use the portals property instead.

portals, APIProductPortal[] required

The list of portals which this API product is published to

version_count, number required

The number of product versions attached to this API product

created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

An ISO-8601 timestamp representation of entity update date.

labels, Labels required

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 "_".

public_labels, PublicLabels required

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 "_".

Example response

{
  "id": "b9e81174-b5bb-4638-a3c3-8afe61a0abf8",
  "name": "My Name",
  "description": "MyDescription",
  "portal_ids": [
    "25a2624c-49fc-4764-99e1-224ed819f200"
  ],
  "portals": [
    {
      "portal_id": "35a2624c-49fc-4764-99e1-224ed819f200",
      "portal_name": "Developer Portal"
    }
  ],
  "version_count": 10,
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z",
  "labels": {
    "env": "test"
  },
  "public_labels": {
    "category": "finance"
  }
}

Changes

    • warning

      added the new 401.00 enum value to the status response property for the response status

    • warning

      added the new 403.00 enum value to the status response property for the response status

    • warning

      added the new 404.00 enum value to the status response property for the response status