API-keys
Get an API-key associated with a Consumer
Changed onGet an API-key associated with a Consumer using ID.
get/{workspace}/consumers/{ConsumerIdForNestedEntities}/key-auth/{KeyAuthId}
Request
- Base URLhttp://localhost:8001
- AuthAPI key in header Kong-Admin-Token
Path parameters
ConsumerIdForNestedEntities, string required
Consumer ID for nested entities
KeyAuthId, string required
ID of the API-key to lookup
workspace, string required
Example:team-payments
The name of the workspace
Response
Successfully fetched API-key
Key Auth required
consumer, object nullable
created_at, integer nullable
Unix epoch when the resource was created.
id, string nullable
A string representing a UUID (universally unique identifier).
key, string nullable
tags, string[] nullable
A set of strings representing tags.
ttl, integer nullable
key-auth ttl in seconds
Example response
{
"consumer": {
"id": "84a73fb8-50fc-44a7-a4d5-aa17728ee83f"
},
"id": "b2f34145-0343-41a4-9602-4c69dec2f269",
"key": "IL1deIyHyQA40WpeLeA1bIUXuvTwlGjo"
}Changes
- info
endpoint added
- info