clerk.create_jwt_template
Create a new JWT template in a connected Clerk application.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Returns the new template summary.
Cost = 10 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unique JWT template name. | |
| claims | Yes | JWT claims template as a JSON object. | |
| lifetime | No | Token lifetime in seconds (30–315360000). | |
| signing_key | No | Custom signing private key (required when custom_signing_key is true). | |
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. | |
| signing_algorithm | No | Custom signing algorithm (required when custom_signing_key is true). | |
| allowed_clock_skew | No | Allowed clock skew in seconds (0–300). | |
| custom_signing_key | No | Whether to use a custom signing key and algorithm. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jwt_template | No | Newly created Clerk JWT template summary. |