API Version

Get an API Version

Changed on

Fetches the version (OpenAPI or AsyncAPI) of an API.

get/v3/apis/{apiId}/versions/{versionId}

Request

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

Path parameters

apiId, string uuid required
Example:9f5061ce-78f6-4452-9108-ad7c02821fd5

The UUID API identifier

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

The API version identifier

Response

API version (OpenAPI or AsyncAPI)

object required
id, string uuid required

The API version identifier.

version, string required

The version of the api.

spec, object nullable
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.

Example response

{
  "id": "7710d5c4-d902-410b-992f-18b814155b53",
  "version": "1.0.0",
  "spec": {
    "content": "{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Example API\",\"version\":\"1.0.0\"},\"paths\":{\"/example\":{\"get\":{\"summary\":\"Example endpoint\",\"responses\":{\"200\":{\"description\":\"Successful response\"}}}}}}",
    "type": "oas3"
  },
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

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