clerk.create_jwt_template
ActiveTool of Vee3
declared in 1.27.1
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.
Parameters schema
{
"type": "object",
"title": "create_clerk_jwt_templateArguments",
"required": [
"name",
"claims"
],
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Unique JWT template name."
},
"claims": {
"type": "object",
"title": "Claims",
"description": "JWT claims template as a JSON object.",
"additionalProperties": true
},
"lifetime": {
"anyOf": [
{
"type": "integer",
"maximum": 315360000,
"minimum": 30
},
{
"type": "null"
}
],
"title": "Lifetime",
"default": null,
"description": "Token lifetime in seconds (30–315360000)."
},
"signing_key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Signing Key",
"default": null,
"description": "Custom signing private key (required when custom_signing_key is true)."
},
"clerk_instance_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Clerk Instance Id",
"default": null,
"description": "Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account."
},
"signing_algorithm": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Signing Algorithm",
"default": null,
"description": "Custom signing algorithm (required when custom_signing_key is true)."
},
"allowed_clock_skew": {
"anyOf": [
{
"type": "integer",
"maximum": 300,
"minimum": 0
},
{
"type": "null"
}
],
"title": "Allowed Clock Skew",
"default": null,
"description": "Allowed clock skew in seconds (0–300)."
},
"custom_signing_key": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Custom Signing Key",
"default": null,
"description": "Whether to use a custom signing key and algorithm."
}
}
}Parent server
Vee3
https://github.com/Vee3io/Vee3
1/7 registries