Aftersearch Quote
aftersearch_quoteReturn fresh x402 PAYMENT-REQUIRED terms for one immutable job. Call this when an agent holds a job_id and needs the current USDC price and payment instructions before deciding to pay; a 402 challenge is a quote, never payment. Returns the price in USDC, the pay_to address, network, and asset for that exact job; on an unknown job_id returns a structured job_not_found error. Read-only and idempotent; no side effects. For example, quoting a job_id returned by aftersearch_resolve yields its exact USDC terms for this job only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The 24-char hex job_id returned by aftersearch_resolve or aftersearch_verify_serp. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Whether the upstream HTTP status is 2xx; not settlement proof. | |
| body | No | Unmodified upstream JSON, or bounded response text. Consult that capability's live schema. | |
| error | No | ||
| charged | No | Present on local/transport failures; these do not establish an upstream charge. | |
| message | No | ||
| auto_spent | No | ||
| status_code | No | Observed upstream HTTP status, or null when no response was obtained. | |
| substituted | No | ||
| content_type | No | ||
| payment_required | No | Observed PAYMENT-REQUIRED header; a challenge does not prove payment. | |
| payment_response | No | Observed PAYMENT-RESPONSE header. Assess it together with accepted delivery. | |
| caller_supplied_authorization | No |