Buy extra credits with a Link payment token
payTopupBuy extra credits with a one-time Link Shared Payment Token (spt_...) the user approved in Link for exactly the amount getTopupQuote gives; when it answers "completed" the credits are in the account ("paid": they are on their way). For agents that run Link's CLI; otherwise use createTopupLink. A token buys one top-up, and payment_token is required here. Only when the user asked for the credits and approved the payment.
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": {
"requestBody": "<requestBody>"
},
"name": "payTopup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requestBody | Yes |