Purchase Hook Credits
purchase_hook_creditsRequest an x402 quote without payment, or buy credits with an explicitly authorized signed payment. Reuse purchaseId and the same payment after any timeout.
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": {
"hookId": "<hookId>",
"managementToken": "<managementToken>",
"purchaseId": "<purchaseId>"
},
"name": "purchase_hook_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hookId | Yes | Hook identifier returned by registration; preserve for all subsequent operations. | |
| payment | No | Original signed x402 payment payload authorized by the payer. Omit to request a quote without paying. Never fabricate or replace an uncertain authorization. | |
| purchaseId | Yes | Unique caller-chosen purchase identifier, for example credits-20261007-01. Save before requesting the quote and reuse unchanged with the same payment on retries. | |
| managementToken | Yes | Private management token returned by registration. Required for status, activation, revocation and credits; not the delivery token. |