{ "error": "Only an organization with zero data retention can use this.", "detail": "Deletion certificates are served to organizations with zero data retention only.", "error_code": "ZERO_DATA_RETENTION_REQUIRED", "retryable": false, "request_id": "a1b2c3d4e5f67890abcdef1234567890"}
Deletion certificates
List Deletion Certificates
List a workflow’s deletion certificates, one per deleted document packet
Rate limit tier: general, 600 requests/min. See Rate limits.
Available to organizations with zero data retention only. Any other organization gets 403 with error_code: ZERO_DATA_RETENTION_REQUIRED.
Returns a workflow’s deletion certificates, one per deleted document packet, newest issued first. It answers after the workflow is deleted, and a workflow with no purged packet returns an empty page. Items carry no signed document; fetch one with Get Deletion Certificate. Follow next_cursor until it is null. See Pagination.
curl -X GET 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/deletion-certificates/?limit=20' \ -H 'Authorization: Bearer YOUR_API_KEY'
from anyformat.sdk import Clientclient = Client(api_key="YOUR_API_KEY")for certificate in client.iter_deletion_certificates("0686bb97-8c30-70f0-8000-97669e000eb8"): print(certificate.id, certificate.document_packet_id, certificate.status, certificate.assurance)
import { Anyformat } from "@anyformat/sdk";const af = new Anyformat({ apiKey: "YOUR_API_KEY" });for await (const certificate of af.iterDeletionCertificates("0686bb97-8c30-70f0-8000-97669e000eb8")) { console.log(certificate.id, certificate.document_packet_id, certificate.status, certificate.assurance);}
{ "error": "Only an organization with zero data retention can use this.", "detail": "Deletion certificates are served to organizations with zero data retention only.", "error_code": "ZERO_DATA_RETENTION_REQUIRED", "retryable": false, "request_id": "a1b2c3d4e5f67890abcdef1234567890"}