JWT Templates

Create a JWT template

Create a new JWT template

post/jwt_templates

Request

  • Base URL: https://api.clerk.com/v1
  • URL: https://api.clerk.com/v1/jwt_templates
  • Auth: HTTP bearer

Request body

namestring required

JWT template name

claimsobject required

JWT template claims in JSON format

lifetimeinteger nullable

JWT lifetime

allowed_clock_skewinteger nullable

JWT allowed clock skew

custom_signing_keyboolean

Whether a custom signing key/algorithm is also provided for this template

signing_algorithmstring nullable

The custom signing algorithm to use when minting JWTs. Required if custom_signing_key is true.

signing_keystring nullable

The custom signing private key to use when minting JWTs. Required if custom_signing_key is true.

Response

Success

object'jwt_template' required
idstring required
namestring required
claimsobject required
lifetimeinteger required
allowed_clock_skewinteger required
custom_signing_keyboolean required
signing_algorithmstring required
created_atinteger required

Unix timestamp of creation.

updated_atinteger required

Unix timestamp of last update.

Changes

No recorded changes to this operation across all 49 revisions of this API.