Credit points from an x402 payment
x402_topupTop up points for the CURRENT Bearer key using x402 proof.
Inputs:
quote_id: returned by PAYMENT-REQUIRED (or /api/v1/x402/quote)
payment_signature_b64: base64(JSON) that will be passed as HTTP header PAYMENT-SIGNATURE
Side effects: credits points to the same Bearer key (no key rotation). On success returns credited_points and balance_after (shape depends on upstream).
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": {
"quote_id": "<quote_id>",
"payment_signature_b64": "<payment_signature_b64>"
},
"name": "x402_topup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote_id | Yes | Quote ID returned by PAYMENT-REQUIRED (or /x402/quote). | |
| payment_signature_b64 | Yes | Base64(JSON) for header PAYMENT-SIGNATURE. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |