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

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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.