SDK reference · Node SDK
prov.attest.media.verifyC2pa
prov.attest.media.verifyC2pa in Node SDK. Validate an inbound C2PA manifest (COSE signature + claim) as an ADVISORY signal, never merged into the attestation risk score.
Signature
prov.attest.media.verifyC2pa(params: { manifestBase64: string }): Promise<{ c2paPresent: boolean; c2paValid: boolean; signerSubject: string | null; claimGenerator: string | null; assertions: string[]; reason: string | null; advisoryFactor: string; }>Parameters
params{ manifestBase64: string }Required
Request fields
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
manifest_base64stringRequired- Base64 COSE-Sign1 C2PA manifest.
Returns
Promise<{ c2paPresent: boolean; c2paValid: boolean; signerSubject: string | null; claimGenerator: string | null; assertions: string[]; reason: string | null; advisoryFactor: string; }> The manifest check. It's advisory.
HTTP operation
POST /v1/attest/media/verify_c2pa: Check a C2PA manifest
Errors
- authentication_required
- insufficient_scope
- invalid_json
- parameter_invalid
- parameter_missing
- rate_limit_exceeded
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/media/verify_c2pa`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ "manifest_base64": "hFgnogEmGCGCWQFOMIIBSjCB8KADAgECAhQ" }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/attest/media/verify_c2pa", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
"manifest_base64": "hFgnogEmGCGCWQFOMIIBSjCB8KADAgECAhQ"
}).json()