JWTs

Get a JWT associated with a Consumer

Changed on

Get a JWT associated with a Consumer using ID.

get/{workspace}/consumers/{ConsumerIdForNestedEntities}/jwt/{JWTId}

Request

  • Base URL
    http://localhost:8001
  • Auth
    API key in header Kong-Admin-Token

Path parameters

ConsumerIdForNestedEntities, string required

Consumer ID for nested entities

JWTId, string required

ID of the JWT to lookup

workspace, string required
Example:team-payments

The name of the workspace

Response

Successfully fetched JWT

JWT required
algorithm, 'ES256' | 'ES256K' | 'ES384' | 'ES512' | 'ESB256' | 'ESB320' | 'ESB384' | 'ESB512' | 'ESP256' | 'ESP384' | 'ESP512' | 'Ed25519' | 'Ed448' | 'EdDSA' | 'HS256' | 'HS384' | 'HS512' | 'PS256' | 'PS384' | 'PS512' | 'RS256' | 'RS384' | 'RS512' nullable
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
rsa_public_key, string nullable
secret, string nullable
tags, string[] nullable

A set of strings representing tags.

Example response

{
  "algorithm": "HS256",
  "consumer": {
    "id": "84a73fb8-50fc-44a7-a4d5-aa17728ee83f"
  },
  "id": "75695322-e8a0-4109-aed4-5416b0308d85",
  "key": "YJdmaDvVTJxtcWRCvkMikc8oELgAVNcz",
  "secret": "C50k0bcahDhLNhLKSUBSR1OMiFGzNZ7X"
}

Changes