refresh_token
Refresh an ID token
Exchange a refresh token for a new ID token. This is a free endpoint — no x402 payment required. Uses the standard OAuth2 grant_type=refresh_token pattern.
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": {
"grant_type": "<grant_type>",
"refresh_token": "<refresh_token>"
},
"name": "refresh_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grant_type | Yes | Must be "refresh_token" | |
| refresh_token | Yes | The refresh token received from a previous /auth or /get-card call |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | No | The user's ID (lowercase wallet address) | |
| id_token | No | New ID token — use as Bearer token for Laso Finance APIs | |
| expires_in | No | Token lifetime in seconds | |
| refresh_token | No | New refresh token — use for the next refresh |