generate_jwt_for_user
Generate a JWT authentication token for a user. Used for client-side SDK auth (Inbox, Preferences, etc.).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_id": "<user_id>"
},
"name": "generate_jwt_for_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scopes | No | Permission scopes for the token | |
| user_id | Yes | The user ID to scope the token to | |
| expires_in | No | Token expiry duration (e.g. "1h", "2 days") | 1h |