JWTs

Create a new JWT associated with a Consumer

Create a new JWT associated with a Consumer

post/consumers/{ConsumerIdForNestedEntities}/jwt

Path parameters

ConsumerIdForNestedEntitiesstring required

Consumer ID for nested entities

Request body

algorithm'HS256' | 'HS384' | 'HS512' | 'RS256' | 'RS384' | 'RS512' | 'ES256' | 'ES384' | 'ES512' | 'PS256' | 'PS384' | 'PS512' | 'EdDSA' nullable
created_atinteger nullable

Unix epoch when the resource was created.

idstring nullable
keystring nullable
rsa_public_keystring nullable
secretstring nullable
tagsstring[]

Example request

{
  "algorithm": "HS256",
  "id": "75695322-e8a0-4109-aed4-5416b0308d85",
  "key": "YJdmaDvVTJxtcWRCvkMikc8oELgAVNcz",
  "secret": "C50k0bcahDhLNhLKSUBSR1OMiFGzNZ7X"
}

Response

Successfully created JWT

algorithm'HS256' | 'HS384' | 'HS512' | 'RS256' | 'RS384' | 'RS512' | 'ES256' | 'ES384' | 'ES512' | 'PS256' | 'PS384' | 'PS512' | 'EdDSA' nullable
created_atinteger nullable

Unix epoch when the resource was created.

idstring nullable
keystring nullable
rsa_public_keystring nullable
secretstring nullable
tagsstring[]

Example response

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

Changes