Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Kong Keys API

A key object holds a representation of asymmetric keys in various formats. When Kong Gateway or a Kong plugin requires a specific public or private key to perform certain operations, it can use this entity.

Kong Keys API is one of 139 APIs that Kong publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 1 JSON Schema definition.

Tagged areas include Keys. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, a GitHub repository, an API reference, authentication docs, and 1 JSON Schema.

This API exposes 14 operations across 6 paths, and defines 6 schemas. It is described by OpenAPI 3.1.0, at version 3.14.0.

Requests are made against a single base URL, {protocol}://{hostname}:{port}{path}.

14 operations 6 paths 6 schemas 3 DELETE5 GET3 POST3 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
3.14.0
Base URL
https://konghq.com/
Authentication
API Key
Contact
License
Resource Areas
1

Authentication & Security 1

Kong Keys API declares 1 security scheme for authenticating requests. An API key is passed in the header as Kong-Admin-Token (adminToken). By default, every request must be authenticated.

Paths & Operations 14

Across 6 paths, the API surfaces 14 operations — 3 DELETE, 5 GET, 3 POST, 3 PUT. Each is listed below with its method, path, parameters, and response codes.

Keys 14

A key object holds a representation of asymmetric keys in various formats. When Kong Gateway or a Kong plugin requires a specific public or private key to perform certain operatio…

POST
/{workspace}/keys
Create a new Key
create-key 1 param body → 201401
DELETE
/{workspace}/keys/{KeyIdOrName}
Delete a Key
delete-key 3 params → 204401
GET
/{workspace}/keys/{KeyIdOrName}
Get a Key
get-key 2 params → 200401404
PUT
/{workspace}/keys/{KeyIdOrName}
Upsert a Key
upsert-key 2 params body → 200401
GET
/v2/control-planes/{controlPlaneId}/core-entities/key-sets/{KeySetId}/keys
List all Keys associated with a KeySet
list-key-with-key-set 5 params → 200
POST
/v2/control-planes/{controlPlaneId}/core-entities/key-sets/{KeySetId}/keys
Create a new Key associated with a KeySet
create-key-with-key-set 2 params body → 201
DELETE
/v2/control-planes/{controlPlaneId}/core-entities/key-sets/{KeySetId}/keys/{KeyId}
Delete a a Key associated with a KeySet
delete-key-with-key-set 3 params → 204
GET
/v2/control-planes/{controlPlaneId}/core-entities/key-sets/{KeySetId}/keys/{KeyId}
Get a Key associated with a KeySet
get-key-with-key-set 3 params → 200404
PUT
/v2/control-planes/{controlPlaneId}/core-entities/key-sets/{KeySetId}/keys/{KeyId}
Upsert a Key associated with a KeySet
upsert-key-with-key-set 3 params body → 200
GET
/v2/control-planes/{controlPlaneId}/core-entities/keys
List all Keys
list-key 4 params → 200401
POST
/v2/control-planes/{controlPlaneId}/core-entities/keys
Create a new Key
create-key 1 param body → 201401
DELETE
/v2/control-planes/{controlPlaneId}/core-entities/keys/{KeyId}
Delete a Key
delete-key 3 params → 204401
GET
/v2/control-planes/{controlPlaneId}/core-entities/keys/{KeyId}
Get a Key
get-key 2 params → 200401404
PUT
/v2/control-planes/{controlPlaneId}/core-entities/keys/{KeyId}
Upsert a Key
upsert-key 2 params body → 200401

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are Key (10 properties), KeyWithoutParents (10 properties), Key_2 (10 properties), GatewayUnauthorizedError (2 properties). Each schema is shown below with its type and property counts.

PaginationOffsetResponse
string
Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page
GatewayUnauthorizedError
object
2 properties 2 required
Key_2
object
A Key object holds a representation of asymmetric keys in various formats. When Kong or a Kong plugin requires a specific public or private key to perform cert…
10 properties 1 required
PaginationNextResponse
string
URI to the next page (may be null)
KeyWithoutParents
object
A Key object holds a representation of asymmetric keys in various formats. When Kong or a Kong plugin requires a specific public or private key to perform cert…
10 properties 1 required
Key
object
A Key object holds a representation of asymmetric keys in various formats. When Kong or a Kong plugin requires a specific public or private key to perform cert…
10 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

kong-keys-api-openapi.yml Raw ↑

Other APIs Kong publishes across the network.

Kong Gateway
Kong AI Gateway
Kong Agent Gateway
Kong MCP Registry
Kong Context Mesh
Kong Mesh
Kong Insomnia
Kong ACLs API
Kong Add-Ons API
Kong API API
Kong API Attributes API
Kong API Documentation API