Skip to content

Preserve Content Credentials

Last updated View as MarkdownAgent setup

Content Credentials (or C2PA metadata) are a type of metadata that includes the full provenance chain of a digital asset. This provides information about an image's creation, authorship, and editing flow. This data is cryptographically authenticated and can be verified using an open-source verification service.

You can preserve Content Credentials on images uploaded to and delivered from Cloudflare Images.

Enable

Content Credentials preservation is an account-wide setting that applies to every image delivered from imagedelivery.net (and any custom domains configured for your Images account).

  1. In the Cloudflare dashboard, go to the Hosted Images page.

    Go to Hosted images ↗
  2. Select the Delivery tab.

  3. Enable Preserve Content Credentials.

You can also enable it via the API by making a PATCH request to the images config endpoint:

curl --request PATCH https://api.cloudflare.com/client/v4/accounts/{account_id}/images/v1/config \
--header "Authorization: Bearer <API_TOKEN>" \
--header "Content-Type: application/json" \
--data '{"preserve_content_credentials": true}'

The behavior of this setting is determined by the metadata parameter applied to each delivered image or variant.

For example, if a variant specifies metadata=copyright (the default), then the EXIF copyright tag and all Content Credentials will be preserved in the resulting image and all other metadata will be discarded.

When Content Credentials are preserved during delivery, Cloudflare will keep any existing Content Credentials embedded in the source image and automatically append and cryptographically sign additional actions describing the transformations it applied (such as resizing or format conversion).

Was this helpful?