{ "object": "jwt_template", "content": "{\"urn:myapp:full_name\": \"{{user.first_name}} {{user.last_name}}\", \"urn:myapp:email\": \"{{user.email}}\"}", "created_at": "2026-01-15T12:00:00.000Z", "updated_at": "2026-01-15T12:00:00.000Z" }
jwt_templateGet the JWT template for the current environment.
curl "https://api.workos.com/user_management/jwt_template" \ --header "Authorization: Bearer sk_example_123456789"
GET/user_management /jwt_templateReturns Update the JWT template for the current environment.
curl --request PUT \ --url "https://api.workos.com/user_management/jwt_template" \ --header "Authorization: Bearer sk_example_123456789" \ --header "Content-Type: application/json" \ -d @- <<'BODY' { "content": "{\"urn:myapp:full_name\": \"{{user.first_name}} {{user.last_name}}\", \"urn:myapp:email\": \"{{user.email}}\"}" } BODY
PUT/user_management /jwt_templateReturns