Create Clerk JWT template
Create a new JWT template in a connected Clerk application.
← All Clerk endpoints · Capability overview
/v1/clerk/jwt-templateshttps://api.vee3.io/v1/clerk/jwt-templates
Create a new JWT template in a connected Clerk application.
Authorization
Send your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
MCP
The same capability is available as an MCP tool on Vee3 hosted MCP.
Tool name
clerk.create_jwt_templateParameters8 fields
clerk_instance_idstringOptionalClerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account.
namestringRequiredUnique JWT template name.
claimsobjectRequiredJWT claims template as a JSON object.
lifetimeintegerOptionalToken lifetime in seconds (30–315360000).
min 30, max 315360000
allowed_clock_skewintegerOptionalAllowed clock skew in seconds (0–300).
min 0, max 300
custom_signing_keybooleanOptionalWhether to use a custom signing key and algorithm.
signing_algorithmstringOptionalCustom signing algorithm (required when custom_signing_key is true).
signing_keystringOptionalCustom signing private key (required when custom_signing_key is true).
Response12 fields
jwt_templateobject11 fieldsNewly created Clerk JWT template summary.
jwt_templateobjectidstringClerk JWT template id (jtmp_...).
namestringUnique template name used when minting tokens from this template.
claimsobject2 fieldsJWT claims template as a JSON object (may include Clerk shortcodes).
claimsobjectaudstringAudience claim when set in the template.
rolestringRole claim when set in the template.
lifetimeintegerToken lifetime in seconds (exp claim offset from issuance time).
allowed_clock_skewintegerAllowed clock skew in seconds for the nbf claim.
created_atintegerUnix timestamp in milliseconds when the template was created.
updated_atintegerUnix timestamp in milliseconds when the template was last updated.
signing_algorithmstringCustom signing algorithm when custom_signing_key is enabled.
custom_signing_keybooleanWhether this template uses a custom signing key and algorithm.
HTTP errors: clerk_connection_required, clerk_connection_not_found, clerk_connection_invalid, validation_error, unauthorized, payment_required