v11

latestOpenAPI 3.1.0Apache 2.0raw.githubusercontent.com2026-07-065662751.8 MB
JWTs

Create a new JWT associated with a Consumer

Create a new JWT associated with a Consumer

post/{workspace}/consumers/{ConsumerIdForNestedEntities}/jwt

Path parameters

ConsumerIdForNestedEntitiesstring required

Consumer ID for nested entities

workspacestring required
Example:team-payments

The name of the workspace

Request body

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
created_atinteger nullable

Unix epoch when the resource was created.

idstring nullable

A string representing a UUID (universally unique identifier).

keystring nullable
rsa_public_keystring nullable
secretstring nullable
tagsstring[] nullable

A set of strings representing tags.

Example request

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

Response

Successfully created JWT

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
created_atinteger nullable

Unix epoch when the resource was created.

idstring nullable

A string representing a UUID (universally unique identifier).

keystring nullable
rsa_public_keystring nullable
secretstring nullable
tagsstring[] 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"
}