Create Clerk session token from template

Create a session token from a JWT template for a session in a connected Clerk application.

← All Clerk endpoints · Capability overview

POST/v1/clerk/sessions/{session_id}/tokens/{template_name}

https://api.vee3.io/v1/clerk/sessions/{session_id}/tokens/{template_name}

10 tokens

Create a session token from a JWT template for a session 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_session_token_from_template
Parameters3 fields
clerk_instance_idstringOptional

Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account.

session_idstringRequired

Clerk session id (sess_...) to retrieve or modify.

template_namestringRequired

Name of the JWT template to use when generating the session token.

Response1 field
jwtstring

Signed JWT generated from the template. Treat as a secret — do not log.

HTTP errors: clerk_connection_required, clerk_connection_not_found, clerk_connection_invalid, validation_error, unauthorized, payment_required