Saltar al contenido principal

Evidence

Sealed receipts and their artifacts.

GET /v1/messages/{trackId}/evidence​

List the receipts sealed for a message

  • Authentication: API key in the Authorization: Bearer header
  • Scopes: at least one of evidence:read, messages:read
  • operationId: listMessageEvidence

Parameters​

NameInTypeRequiredDescription
trackIdpathTrackIdYesServer-generated ULID that identifies a message.
rcptqueryRecipientIdNoPosition of the recipient inside its message (r0, r1, ...).
If-None-MatchheaderstringNoETag of a previous response; a match answers 304 without a body.

Responses​

CodeDescriptionSchema
200Receipts with their digests. Kept after the purge, when status is EXPIRED.EvidenceList
304Not modified since the ETag sent in If-None-Match.—
400The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane).Problem
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
429Rate limit or quota exceeded.Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
503A dependency (storage, ledger, vault, renderer or mail service) is temporarily unavailable. Retry after the number of seconds in Retry-After when present.Problem

GET /v1/messages/{trackId}/recipients/{rcptId}/evidence/latest​

Read or download the latest cumulative receipt of a recipient

Primary evidence endpoint for a recipient. Without format, returns the JSON representation of the current head receipt (chainHeadEvidenceId), including artifact links and chain position. With ?format=asice|xml|pdf|eml, redirects (302) to a short-lived presigned URL (or answers 202 with Retry-After while the container or lazy PDF is being rendered). The latest ASiC-E container carries the cumulative root XML together with every earlier receipt XML in previous/ (and the cumulative PDF when receipts.pdf.mode is EAGER).

  • Authentication: API key in the Authorization: Bearer header
  • Scopes: at least one of evidence:read, messages:read
  • operationId: getLatestRecipientEvidence

Parameters​

NameInTypeRequiredDescription
trackIdpathTrackIdYesServer-generated ULID that identifies a message.
rcptIdpathRecipientIdYesPosition of the recipient inside its message (r0, r1, ...).
formatqueryEvidenceFormatNoWhen given, redirect (302) to a presigned download URL for this artifact format instead of returning JSON.
If-None-MatchheaderstringNoETag of a previous response; a match answers 304 without a body.

Responses​

CodeDescriptionSchema
200Metadata, links and chain position of the latest cumulative receipt.Evidence
202The requested artifact (format) is being generated or waits for its timestamp. Retry after Retry-After seconds.object
302Redirect to the requested artifact (format).—
304Not modified since the ETag sent in If-None-Match.—
400The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane).Problem
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
410Custody ended; only the digests remain.EvidenceGone
422The requested artifact format cannot be produced for this receipt.Problem
429Rate limit or quota exceeded.Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
503Storage or the renderer is temporarily unavailable; Retry-After may be present.Problem

GET /v1/messages/{trackId}/recipients/{rcptId}/evidence​

List the cumulative receipt chain of a recipient

Returns every receipt of the recipient ordered by position, including receiptKey, digests, covers, coveredSeq and latest (true on the current chain head). Downloading GET /v1/evidence/{evidenceId}/asice for an earlier superseded receipt regenerates its container on demand from the locked XML files.

  • Authentication: API key in the Authorization: Bearer header
  • Scopes: at least one of evidence:read, messages:read
  • operationId: listRecipientEvidence

Parameters​

NameInTypeRequiredDescription
trackIdpathTrackIdYesServer-generated ULID that identifies a message.
rcptIdpathRecipientIdYesPosition of the recipient inside its message (r0, r1, ...).
If-None-MatchheaderstringNoETag of a previous response; a match answers 304 without a body.

Responses​

CodeDescriptionSchema
200Ordered receipt chain for the recipient.EvidenceList
304Not modified since the ETag sent in If-None-Match.—
400The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane).Problem
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
429Rate limit or quota exceeded.Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
503A dependency (storage, ledger, vault, renderer or mail service) is temporarily unavailable. Retry after the number of seconds in Retry-After when present.Problem

GET /v1/messages/{trackId}/recipients/{rcptId}/mdn​

List the inbound MDNs recorded for a recipient

Returns the authenticated Message Disposition Notifications (RFC 8098) received for the recipient, including authentication strength (STRONG or WEAK) and disposition metadata. The raw .eml is downloaded via GET /v1/mdn/{mdnId}/eml.

  • Authentication: API key in the Authorization: Bearer header
  • Scopes: at least one of evidence:read, messages:read
  • operationId: listRecipientMdn

Parameters​

NameInTypeRequiredDescription
trackIdpathTrackIdYesServer-generated ULID that identifies a message.
rcptIdpathRecipientIdYesPosition of the recipient inside its message (r0, r1, ...).
If-None-MatchheaderstringNoETag of a previous response; a match answers 304 without a body.

Responses​

CodeDescriptionSchema
200Inbound MDNs recorded for the recipient.MdnList
304Not modified since the ETag sent in If-None-Match.—
400The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane).Problem
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
429Rate limit or quota exceeded.Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
503A dependency (storage, ledger, vault, renderer or mail service) is temporarily unavailable. Retry after the number of seconds in Retry-After when present.Problem

GET /v1/mdn/{mdnId}/eml​

Download the raw .eml of an inbound MDN

Redirects (302) to a short-lived presigned URL for the stored .eml of an inbound Message Disposition Notification. Answers 410 after the retention period has elapsed.

  • Authentication: API key in the Authorization: Bearer header
  • Scopes: at least one of evidence:read, messages:read
  • operationId: downloadMdnEml

Parameters​

NameInTypeRequiredDescription
mdnIdpathMdnIdYesIdentifier of an inbound MDN recorded for a recipient.

Responses​

CodeDescriptionSchema
302Redirect to the raw MDN .eml.—
400The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane).Problem
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
410Custody ended; only the digests remain.EvidenceGone
429Rate limit or quota exceeded.Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
503Evidence storage is temporarily unavailable; Retry-After may be present.Problem

GET /v1/evidence/{evidenceId}/{format}​

Download one artifact of a receipt

Redirects to a short-lived presigned URL. A lazy PDF (and the ASiC-E container, which embeds it) is generated on first request: the call waits a bounded time for the render and, if it is not ready, answers 202 with Retry-After; repeat the call after that many seconds. An ASiC-E container of a receipt whose timestamp is still pending also answers 202. After the retention period the artifacts are gone but their digests are still returned in the 410 body and in GET /v1/messages/{trackId}/evidence.

  • Authentication: API key in the Authorization: Bearer header
  • Scopes: at least one of evidence:read, messages:read
  • operationId: downloadEvidence

Parameters​

NameInTypeRequiredDescription
evidenceIdpathEvidenceIdYesIdentifier of the receipt (evidenceId).
formatpathEvidenceFormatYesxml the signed evidence, pdf its human-readable rendition, eml the message as sent, asice the self-verifiable container with all of them.

Responses​

CodeDescriptionSchema
202The artifact is being generated (or waits for its timestamp). Retry after the number of seconds in Retry-After.object
302Redirect to the artifact.—
400The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane).Problem
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
410Custody ended; only the digests remain.EvidenceGone
422The artifact cannot be produced for this receipt (e.g. the container is disabled by configuration).Problem
429Rate limit or quota exceeded.Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
503Storage or the renderer is temporarily unavailable; Retry-After may be present.Problem

POST /v1/evidence/{evidenceId}/legal-hold​

Keep a receipt beyond its retention period

Places a legal hold on every artifact of the receipt. The purge skips it until the hold is released. Requires retention.legalHold.enabled: when the plan of the tenant disables it the call answers 403. Idempotent: repeating it answers 200 with the current state; a new reason replaces the recorded one.

  • Authentication: API key in the Authorization: Bearer header
  • Scopes: at least one of evidence:write
  • operationId: placeLegalHold

Parameters​

NameInTypeRequiredDescription
evidenceIdpathEvidenceIdYesIdentifier of the receipt (evidenceId).

Request body (application/json)​

FieldTypeRequiredDescription
reasonstringNoFree text recorded in the audit trail.

Responses​

CodeDescriptionSchema
200The hold is in place.Evidence
400The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane).Problem
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
410Already purged.EvidenceGone
429Rate limit or quota exceeded.Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
503The ledger or the vault is temporarily unavailable; Retry-After may be present.Problem

DELETE /v1/evidence/{evidenceId}/legal-hold​

Release the legal hold of a receipt

Clears the legal hold on every artifact of the receipt; the purge resumes at the normal expiresAt. Releasing is allowed even when retention.legalHold.enabled was switched off afterwards. Idempotent: releasing a receipt without a hold answers 200.

  • Authentication: API key in the Authorization: Bearer header
  • Scopes: at least one of evidence:write
  • operationId: releaseLegalHold

Parameters​

NameInTypeRequiredDescription
evidenceIdpathEvidenceIdYesIdentifier of the receipt (evidenceId).

Responses​

CodeDescriptionSchema
200The receipt has no legal hold.Evidence
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
410Already purged.EvidenceGone
429Rate limit or quota exceeded.Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
503The ledger or the vault is temporarily unavailable; Retry-After may be present.Problem