Skip to main content
POST
This endpoint is paid. Read Paying for a request for the 402 handshake, or let BuyerAgent.audit() handle it.

Headers

PAYMENT-SIGNATURE
string

x402 payment payload (base64 JSON) built from the PAYMENT-REQUIRED challenge of the 402 answer. Omit on the first call to receive the price. BuyerAgent and @x402/fetch set this for you. The legacy name X-PAYMENT is also accepted.

Body

application/json

Name the subject by uaid (needs a registry on the auditor) or by URL

subject
string

uaid or listing name of the seller to audit, resolved through the registry

sellerUrl
string<uri>

Base URL of the seller; its manifest is fetched directly

auditId
string

Fresh id you generate so you can stream progress while the request is open

Pattern: ^a_[0-9a-f]{16}$
quoteId
string

Quote to pin the price to

Response

Completed audit with its attestation and, when recorded, the HCS records

auditId
string
required
subject
object
required
attestation
object
required

The verdict, written last to the audit topic by the auditor account

stages
object[]
required
topicId
string | null
required

Audit topic, null on a dry run

topicUrl
string<uri> | null
required
records
object[]
required

HCS publication results for audit_started, each stage and the attestation; empty on a dry run

recorded
boolean
required

true when the trail was written to HCS