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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl_seconds | No | Challenge lifetime in seconds. Optional; must be 30-300 seconds when provided. |