clerk.create_sign_in_token
Create a sign-in token for a user in a connected Clerk application. The token can be used once to sign the user in without credentials (magic-link style).
Sensitive — the returned token is a high-privilege secret that grants sign-in access; do not log or expose it.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Cost = 15 tokens.
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": "clerk.create_sign_in_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | Clerk user id (user_...) to retrieve or modify. | |
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. | |
| expires_in_seconds | No | Token lifetime in seconds (minimum 1). Defaults to 2592000 (30 days). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sign_in_token | No | Created Clerk sign-in token object from the Backend API. |