SDK reference · Node SDK
prov.attest.claims.export
prov.attest.claims.export in Node SDK. Build a litigation-grade evidence bundle (enterprise).
Signature
prov.attest.claims.export(claimId: string): Promise<{ exportId: string; status: string; manifestHash: string; timestamp: { status: string }; downloadUrl: string; expiresAt: string }>Parameters
claimIdstringRequired
Request fields
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
idstringpathRequired- The claim, or case in another vertical, the asset belongs to.
Returns
Promise<{ exportId: string; status: string; manifestHash: string; timestamp: { status: string }; downloadUrl: string; expiresAt: string }> The export, with its download link.
HTTP operation
POST /v1/attest/claims/{id}/export: Export a claim's evidence
Errors
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/claims/CLM-SANDBOX-FRAUD/export`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/attest/claims/CLM-SANDBOX-FRAUD/export", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}).json()