create_ap2_challenge
Free prerequisite for AP2-native transaction clearance or authorization. Call before clearance_x402_ap2 or authorize_x402_ap2, bind the returned challenge into the AP2 Payment Mandate proof, then pass that challenge token as ap2_authority.challenge_token. The challenge is short-lived and intended for one purchase flow.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_ap2_challenge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl_seconds | No | Challenge lifetime in seconds. Optional; must be 30-300 seconds when provided. |