Every error response is JSON with an error string. Witness endpoints add a stable code when one applies. Match on the status and code. The error text is for people and may be reworded.
Status
Meaning
Retry?
400
The request is malformed or failed validation.
No. Fix the request.
401
The API key is missing, unknown, revoked, or its environment is inactive.
No. Fix the key.
404
The witness pair does not exist in the key's environment.
No.
409
The witness state transition is not allowed.
No.
413
The body is larger than 1 MB.
No. Send less.
500, 503
attest could not complete the request.
Yes, with the same eventId or the identical observation.
witness observation must be an object, pairId is malformed, stage must be assembly or delivery, or <field> must be a non-empty string of at most 255 characters for eventType, eventId, action, source, destination, outcome.
400
WITNESS_INVALID_TIMESTAMP
timestamp must be an ISO-8601 UTC string. Missing, offset (+00:00), no zone, or impossible dates.
400
WITNESS_INVALID_EVIDENCE
evidence must be a plain object, or a limit message such as evidence exceeds maximum nesting depth of 8. See Limits.
409
WITNESS_CONFLICT
conflicting duplicate witness observation. The stage already holds an observation with different content.
409
WITNESS_FINALIZED
witness pair is finalized.
500
—
Witness observation failed.
POST /v1/witness/{pairId}/finalize and GET /v1/witness/{pairId} #