Error code for programmatic handling. The error-code vocabulary is open: error.code is wire-typed string (not a closed enum), the standard codes published in enums/error-code.json are documentary, and senders MAY emit codes outside that set (platform-specific codes, or codes introduced in a later AdCP version). Receivers MUST decode unknown codes — treat the response as well-formed, read error.recovery for the recovery classification, and fall back to transient when recovery is absent. See error-handling.mdx#forward-compatible-decoding-normative for the full forward-compat contract — this rule is what lets future maintenance lines ship new codes additively.
Human-readable error message
Optionalbuyer_Optional buyer-actionable classification of the failure. Use this when the enclosing error code or message is too coarse or contains producer-internal context that must not cross the buyer trust boundary. code reuses the comprehensive standard vocabulary and recovery classifications published in enums/error-code.json, including policy, governance, account, commercial, inventory, and creative failures. The wire field remains open for forward compatibility. message MUST be safe to show to the buyer and MUST NOT contain vendor identifiers, ad-server type names, internal object names, internal IDs, stack traces, or other producer-private implementation details. When present, the enclosing error.recovery MUST classify the buyer-actionable reason. If both the enclosing code and buyer reason are registered, their standard recovery classifications MUST agree with each other and with error.recovery; sellers MUST choose the closest compatible enclosing code rather than retain a conflicting upstream transport wrapper. One buyer_reason classifies one error object. If a rejection contains independently actionable failures from different classes, sellers MUST emit separate error objects or omit buyer_reason rather than select a misleading single class.
Machine-readable buyer-actionable reason from the standard enums/error-code.json vocabulary or a producer-specific extension. Extensions MUST follow the standard X_{VENDOR}_{CODE} naming rule. The wire field is open for forward compatibility. Receivers MUST accept unknown values and use the enclosing error.recovery plus this object's message as the fallback.
Buyer-safe explanation of the actionable failure. MUST NOT expose vendor identifiers, ad-server type names, internal object names, internal IDs, stack traces, or other producer-private implementation details.
OptionalfieldField path associated with the error in JSONPath-lite format (e.g., 'packages[0].targeting'). When issues[] is also present, sellers MUST set this to issues[0].pointer translated from RFC 6901 to JSONPath-lite (e.g., '/packages/0/targeting' → 'packages[0].targeting') so pre-3.1 consumers reading field only get deterministic behavior. Will be deprecated in a future major version in favor of issues[].pointer.
OptionalsuggestionSuggested fix for the error. A suggestion, and the recovery a correctable error's code documents, SHOULD name only operations and fields the agent declares it accepts or the schema requires it to accept, so a buyer agent can follow a correctable refusal without risking a second refusal. A recovery that depends on a declared capability names the capability, for example an assignment_operations replace only where creative.assignment_operations lists replace.
Optionalretry_Seconds to wait before retrying the operation. AdCP 3.2 producers MUST emit an integer from 1 through 3600. The 3.x schema continues to accept finite fractional values for backward compatibility with earlier producers; consumers receiving one MUST round up to the next whole second before clamping so the retry is never scheduled earlier than intended. Non-finite values are treated as absent.
OptionalissuesStructured list of validation failures. Primary use is VALIDATION_ERROR, where multi-field rejections are common and field (singular) cannot carry the full pointer map. MAY appear on other error codes that reject multiple fields at once. When issues is present, sellers MUST also populate field from issues[0] for backward compatibility with pre-3.1 consumers that read field only — translating the RFC 6901 pointer format to the JSONPath-lite format field uses (e.g., /packages/0/targeting → packages[0].targeting). MUST (not SHOULD) so consumers reading field get deterministic behavior across sellers — the cost is one line of dual-write per seller; the cost of SHOULD is a long tail of seller-A-vs-seller-B inconsistency. Future major versions will deprecate field in favor of issues[].pointer.
RFC 6901 JSON Pointer to the offending field in the request payload (e.g., '/packages/0/targeting/geo_countries/2'). Format chosen to match Ajv's native validation output (instancePath); standardized and unambiguous on keys containing / or ~. NOTE: this differs from the legacy top-level field which uses JSONPath-lite (packages[0].targeting.geo_countries[2]). When sellers populate field from issues[0].pointer for backward compatibility (see field description), they MUST translate the format — /packages/0/x → packages[0].x. Future major versions will deprecate field in favor of issues[].pointer.
Human-readable description of why this specific field was rejected.
Schema keyword that rejected the payload, drawn from the JSON Schema vocabulary (e.g., 'required', 'type', 'format', 'enum', 'pattern', 'minimum', 'maxLength'). Matches the keyword names emitted by JSON Schema validators (Ajv, jsonschema, etc.) so agents can pattern-match on rejection class without parsing message text. Implementers SHOULD use the validator's native keyword name; do not invent custom values here.
OptionalschemaPath?: stringOptional. JSON Schema tree path of the rejecting keyword (e.g. '#/properties/packages/items/oneOf/1'). 3.1+ consumers SHOULD prefer schema_id; schemaPath is retained for 3.0.x compatibility (renamed to schema_path in a future major). See error-handling.mdx for the validator-internals production-emit rules.
Optionalschema_id?: stringOptional. $id of the rejecting (sub-)schema (e.g. /schemas/3.1.0/core/activation-key.json). MUST resolve to a $id published in the spec at the version the seller advertises via get_adcp_capabilities — either a deep sub-schema (the typical case) or the response-root $id (the bundled-tree fallback for tools served from bundles built before #3868). Sellers MUST NOT emit when the rejection occurred against a private extension, server-only sub-schema, or pre-release element — the public-spec replay rationale only holds when the rejecting element is reachable from the public bundle. Sellers populating schemaPath SHOULD also populate schema_id when they have it so 3.1+ readers don't get strictly less than 3.0.x readers. See error-handling.mdx for resolution guidance and the bundled-tree caveat.
Optionaldiscriminator?: { property_name: string; value: string | number | boolean | null }[]Optional. Const-discriminator property/value pair(s) identifying the variant the validator selected from values present in the payload. Sellers MUST populate only when (a) the rejecting schema is a const-discriminated oneOf / anyOf and (b) the discriminator property is present in the payload — emission on partial-match inference would fingerprint the seller's validator implementation. MUST omit when zero variants survive. Compound discriminators (e.g. (type, value_type)) produce multiple entries ordered by declaration in the rejecting schema's properties block. Same private-extensions / version-skew carve-out as schema_id. See error-handling.mdx.
OptionaldetailsAdditional task-specific error details. Sellers MAY mirror issues[] here as details.issues for backward compatibility with pre-3.1 consumers reading from details; new consumers SHOULD prefer the top-level issues field.
Canonical rejection-set shape (3.1+). When the error reports a rejected value against a closed set of accepted values (e.g., enum mismatch, unsupported pricing option, invalid signal id), sellers SHOULD use the canonical key accepted_values: <array> under details rather than seller-specific variants observed in the wild (available, allowed, accepted_values at the error root, etc.). The canonical shape:
{
"code": "INVALID_PRICING_OPTION",
"message": "Pricing option not found: po_prism_abandoner_cpm",
"field": "pricing_option_id",
"details": {
"rejected_value": "po_prism_abandoner_cpm",
"accepted_values": ["po_prism_cart_cpm", "po_prism_view_cpm"]
}
}
rejected_value (optional): the offending value the buyer supplied, echoed for buyer-side diagnostic clarity (especially when the offending field is nested or transformed before validation).accepted_values (optional): the closed set the seller would have accepted at this field on this call. Sellers MUST NOT enumerate the full ecosystem-wide accepted set if it differs from what's accepted for this caller in this context (account, brand, scope) — leaking ecosystem-wide accepted sets to a per-caller rejection turns the error into an enumeration oracle.This is SHOULD-level guidance, not MUST: details remains additionalProperties: true and pre-3.1 sellers using available / allowed / accepted_values at the error root remain conformant. The canonical shape lets buyer-side diagnostic tooling (SDK runner hints, dashboards, error classifiers) reliably surface the accepted-set without per-seller pattern matching. SDKs SHOULD accept any of the legacy variants and normalize on read; the canonical shape is what new sellers and 3.1+ adopters should emit going forward.
OptionalrecoveryAgent recovery classification. transient: retry after delay (rate limit, service unavailable, timeout). correctable: fix the request and resend (invalid field, budget too low, creative rejected). terminal: requires human action (account suspended, payment required, account not found). AdCP 3.2 producers MUST populate recovery on every error; 3.1 producers SHOULD populate it. The shared 3.x schema intentionally does not add recovery to required so retained and live errors from earlier 3.x producers remain decodable. When buyer_reason is present, recovery is required and MUST classify that buyer-actionable reason. If the enclosing code and buyer reason are both registered, their standard recovery classifications MUST agree with each other and with this field. A receiver that does not recognize error.code (a newer code, or a platform-specific code) MUST still be able to classify the error from recovery. When a legacy error omits recovery, receivers use the registered classification for a known code and fall back to transient for an unknown code, subject to the bounded retry budget. The enumMetadata.recovery block in enums/error-code.json is the documentary mirror for known top-level and buyer-reason codes; error.recovery on the wire is authoritative when present.
Optionalmutation_Whether the failed request changed seller state. Optional; meaningful only on an error that terminates a state-changing request (an envelope adcp_error, a task-level errors[] entry that fails the request, or the terminal error of an async task that ends in failed). Pure reads never carry it, and it MUST NOT be set on warnings or used to describe individual items of a partially successful response. Values: not_applied: the seller has pre-commit evidence that no local or downstream write was attempted or committed. 'Pre-commit evidence' means the failure was raised before the request's idempotency claim row was inserted and before any write was issued, or was a typed AdCP rejection returned by validation that runs strictly before the first write is issued. A timeout, cancellation, connection error, or exception raised from within or after a write (including an in-flight database write or the claim insert itself), or caught by a handler-level catch-all or framework wrapper, is NOT pre-commit evidence. unknown: the seller cannot rule out that some or all of the requested change committed, and has fenced the idempotency claim so a same-key resend cannot run the mutation again. On a compound request (several packages, creatives, or items), unknown covers the whole request envelope; per-item outcomes are out of scope. applied: the seller holds durable evidence that the requested change committed and the error reports a later failure, as with COMMITTED_RESOURCE_PURGED. Absent: the seller makes no claim; buyers apply the absent-field guidance in Request Safety → Idempotency. The wire type is open: receivers MUST treat an unrecognized, empty, or non-string value as unknown, never as a reason to discard the error. The field is independent of code and recovery. See error-handling.mdx#mutation-outcome for the seller and buyer obligations, which bind sellers declaring AdCP 3.3 or later.
OptionalsourceWho emitted this error entry. producer (default when absent): emitted by the response's authoring agent (the seller for get_products, the creative agent for build_creative, etc.). sdk: augmented by a consuming SDK that detected a non-fatal advisory condition on consumption (e.g., FORMAT_PROJECTION_FAILED when the buyer SDK couldn't project a v1 format to a canonical, or FORMAT_DECLARATION_DIVERGENT when the SDK detected a producer bug on read). SDK-augmented entries SHOULD also set sdk_id so downstream consumers can identify which intermediate processor inserted the entry.
Multi-hop propagation (normative). AdCP is a federated agent network — responses commonly traverse multiple SDKs (e.g., sales agent → interchange → DSP → buyer). When an SDK augments errors[] with a consumption-detected entry, the augmented response carries the entry forward to subsequent hops. Each hop that detects the same condition independently SHOULD deduplicate by (code, field) rather than re-emit; the existing entry's sdk_id identifies which earlier processor saw it first. Producer entries (those without source: "sdk") are authoritative for what the response's authoring agent self-detected; SDK entries are observations made on top.
Replay/audit safety. Persisted or replayed responses carry source and sdk_id so the audit trail can distinguish seller-emitted entries from SDK-augmented ones. Without source, a downstream consumer can't tell whether a code came from the seller or an intermediate SDK, which corrupts attribution.
Optionalsdk_Optional identifier for the SDK that augmented this error entry. Format: <sdk_package_name>@<version> (e.g., @adcontextprotocol/adcp@7.3.0, adcontextprotocol-adcp-python@1.2.0). MUST be set when source: "sdk"; MUST be absent when source: "producer" or absent. Lets downstream consumers identify which intermediate processor inserted the entry, useful for debugging cross-SDK divergence (e.g., one SDK detects a projection failure that another SDK's registry version doesn't).
Transport-envelope error signal for fatal task failures. Per the two-layer model in
error-handling.mdx#envelope-vs-payload-errors-the-two-layer-model, a fatal task failure SHOULD populate both this envelope-level field AND the payload'serrors[]array — the envelope carries a typed, extractable error so MCP/A2A clients can dispatch without re-parsing the payload, while the payload's structurederrors[]remains the canonical normative shape. Non-fatal warnings populate ONLYpayload.errors[]withseverity: warning— the envelope MUST NOT carryadcp_errorfor non-failures.