C2PA Signing API
Adding C2PA Content Credentials to your digital assets is valuable for your brand, and in some cases required by law. However, just setting up an in-house pilot often takes months of development time. The Trufo Provenance Platform provides a suite of APIs and SDKs designed specifically for companies looking to add Content Credentials into their workflow.
One Call, Every Feature
There are hundreds of pages of C2PA specifications and dozens of approval processes needed to properly set up a Generator Product (here is a guide). With the Signing API, only a single call is needed, and it is as simple as:
from pathlib import Path
from trufo import sign_c2pa_test
from trufo.util.credentials import TrufoApiKey, load_api_key
api_key = load_api_key(TrufoApiKey.C2PA_SIGN_TEST)
media_bytes = Path("input.jpg").read_bytes()
signed_bytes = sign_c2pa_test(
api_key,
media_bytes,
actions=[
["publish", {}],
["watermark", {}],
],
assertions=[
["ai_disclosure", {}],
["cawg_identity", {"cawg_identity_id": "test"}],
],
)Note that the snippet above runs against the test environment, so you can develop and validate your workflow before going live. Use of the Python SDK is not mandatory; it sits above a REST API that you can call from any system. To our knowledge, Trufo is the only C2PA provider that is feature-complete: certificates, timestamps, C2PA and CAWG, watermarks, etc. — trusted by the IPTC and by many other reputable brands.
The onboarding process is quick: create an account on the Trufo Dashboard, set up your account MFA and invite other members to your organization, then purchase the API product and submit the Organization Validation (OV) form.
Documentation
Detailed documentation is available:
