Create a top-up link
factreason_create_topup_linkCreate a Stripe Checkout URL for adding prepaid credit to the calling Bearer API key. This creates an external checkout session but does not charge a card. You CANNOT COMPLETE THE PAYMENT YOURSELF, so return the URL to a human, and credit is applied only after they complete payment. Use after HTTP 402 or when balance is low; the tool itself is not metered.
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": {
"amountUsd": "<amountUsd>"
},
"name": "factreason_create_topup_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | Your FactReason API key, from factreason_create_key. Pass it here when your MCP client cannot set the Authorization: Bearer header on this connection; if the header is set, omit this. Never pass a key that belongs to someone else. | |
| amountUsd | Yes | Credit amount in USD; common blocks are 10, 50, and 200 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| created | No | ||
| amountUsd | No | ||
| balanceUrl | No | ||
| checkoutUrl | No | ||
| createKeyUrl | No | ||
| instructions | No |