Site icon SSL.com

SSL Provenance API

Document version: 1.1

Introduction

Focus on your core proposition. We handle C2PA and CAWG. The SSL Provenance API is fully managed REST API from SSL. It creates, signs and edits C2PA manifests (Content Credentials) for your images, video and audio in a single API call. It can also attach a CAWG identity assertion and your own custom assertions, and declare assets as AI-generated. If your assets can't leave your infrastructure, or are too large to upload, you can sign with only a hash of the asset. The API returns the signed manifest as a separate file, and the asset itself is never sent. Signing uses your SSL.com eSigner credentials. Private keys stay secure in SSL's HSMs, and every signature is timestamped by SSL's conformant C2PA Timestamp Authority.

Quick Start

Sign a JPEG and save the result:
curl -X POST https://mss.ssl.com/v1/c2pa/sign \
  -H "Authorization: Bearer <your-access-token>" \
  -H "C2PA-Certificate-Id: 983da863-ce7f-42b5-b227-c9076c7b34af" \
  -H "Content-Type: image/jpeg" \
  --data-binary @photo.jpg \
  --output signed_photo.jpg
signed_photo.jpg is your original image with a signed C2PA manifest embedded.

Base URL

https://mss.ssl.com
All endpoints are versioned under /v1/c2pa/.

Authentication

Every signing request, to either Sign Asset or Sign Asset Hash, needs two values from your SSL.com eSigner account:
Value Header Description
Access token Authorization: Bearer <access_token> Your eSigner API access token. It authorizes the API to use your signing credential on your behalf.
Credential ID C2PA-Certificate-Id: <credential_id> The ID of the eSigner credential (certificate and key) used to sign the C2PA claim.
The signing algorithm comes from the credential's key. Supported algorithms are ES256, ES384, ES512 (ECDSA) and PS256, PS384, PS512 (RSA-PSS).

Registering an application for an eSigner access token

Access tokens are issued to an application you register with SSL.com's eSigner CSC API. Registering takes about 15 minutes:
  1. Sign in. Go to login.ssl.com and sign in with your SSL.com account.
  2. Open Manage Applications. Select the Manage Applications menu by clicking the persona icon on the upper right.
  3. Create the application. Click Create Application.
  4. Fill in the form, then click Submit Details:
    • Application Name: a unique name for your application.
    • Redirect URIs: applications that integrate with eSigner on the web need a valid redirect URI back to your server. This URI will not be used for the Provenance API but it is required. Feel free to add anything you'd like.
    • Confidential: check this box if your application runs on a server and can store the secret securely. Leave it unchecked for client-side applications, such as native mobile or browser apps.
    • Scopes: enter service.
  5. Save your credentials. You now have an Application ID and an Application Secret. Use them to request access tokens from the eSigner CSC API.
For screenshots and more detail, see Register an Application with eSigner's CSC API.
Keep your Application Secret private. Never embed it in client-side code or commit it to source control.

What the API Adds to Your Asset

This section describes Sign Asset, where you upload the asset. For hash-only signing, see what the hash-only manifest records. Each successful sign request adds one new, signed manifest to the asset. That manifest contains: All of these are recorded as created assertions, which means the signer takes responsibility for them.

Assets that already have Content Credentials

If the uploaded asset already carries a C2PA manifest, the API keeps its existing provenance. The new manifest is added to the existing manifest store, and the previous manifest is linked in as the parent ingredient. The asset's full history stays intact and verifiable. Existing signatures are checked against the official C2PA Trust List, so validators can report whether the earlier signer was trusted.

Supported Content Types

Pass one of the following MIME types to /v1/c2pa/sign. Use the request's Content-Type header for a raw body, or the asset part's Content-Type for a multipart request. For /v1/c2pa/sign-hash, pass it as asset.format in the JSON body.
Category Content-Type Format
Images image/jpeg JPEG
image/png PNG
image/gif GIF
image/tiff TIFF
image/webp WebP
image/avif AVIF
image/heic HEIC
image/heif HEIF
image/jxl JPEG XL (see notes)
image/svg+xml SVG
image/dng DNG
image/x-adobe-dng Adobe DNG
Video video/mp4 MP4
video/quicktime QuickTime (MOV)
video/x-m4v M4V
video/avi AVI
video/msvideo AVI (MS)
video/x-msvideo AVI (x-ms)
Audio audio/mpeg MP3
audio/mp4 M4A
audio/flac FLAC
audio/wav WAV
audio/wave WAV
audio/x-wav WAV
audio/vnd.wave WAV
Parameters on the MIME type, such as ; charset=utf-8, are ignored.

Endpoints

Health Check

GET /v1/c2pa/health
Returns the service status. No authentication required. Response
Status Content-Type Body
200 OK application/json {"status":"ok"}
Example
curl https://mss.ssl.com/v1/c2pa/health

Sign Asset

POST /v1/c2pa/sign
Signs the asset and returns it with a C2PA manifest embedded. This endpoint accepts two request formats, chosen by the request's Content-Type:
Format Request Content-Type Use it when
Raw body The asset's own MIME type, e.g. image/jpeg You only need standard signing, with or without a CAWG identity assertion.
Multipart form multipart/form-data You also want to embed custom assertions or declare an AI-generated asset.
Both formats support every feature except custom assertions and AI-generated declarations, which require multipart. Request Headers
Header Required Description
Authorization Yes Bearer <access_token>: your eSigner access token
C2PA-Certificate-Id Yes eSigner credential ID used to sign the C2PA claim, if you use the SSL Provenance API certificate the credential ID is: 983da863-ce7f-42b5-b227-c9076c7b34af
Content-Type Yes Raw body: the asset's MIME type (see Supported Content Types). Multipart: multipart/form-data; boundary=..., which most HTTP clients set for you.
CAWG-Certificate-Id No eSigner credential ID used to sign a CAWG identity assertion. If present, the identity assertion is added. Can be the same as C2PA-Certificate-Id.
CAWG-Role No One or more named actor roles, such as cawg.creator, for the identity assertion. Requires CAWG-Certificate-Id. To send several roles, repeat the header, separate values with commas, or both.

Option A: Raw body

The request body is the asset's bytes, up to 200 MB. The Content-Type header gives the asset's MIME type.

Option B: Multipart form-data

The request body is multipart/form-data with these parts, up to 200 MB in total:
Part Required Part Content-Type Description
asset Yes The asset's MIME type, e.g. image/jpeg The asset's bytes. This part's Content-Type decides how the asset is signed, so it must be set. curl's -F "asset=@photo.jpg" infers it from the file extension. Many other clients don't, so set it yourself, for example -F "asset=@photo.jpg;type=image/jpeg".
manifest_options No application/json A JSON document that customizes the manifest. See Custom Assertions and AI Disclosure.
manifest_options schema (every field is optional):
{
  "custom_assertions": [
    { "label": "com.example.my-assertion", "data": { "any": "json object" } }
  ],
  "ai_disclosure": {
    "softwareAgent": {
      "name": "Acme Image Generator",
      "version": "3.1",
      "com.ssl.modelIdentifier": "acme-imagegen-3.1-xl"
    },
    "description": "Generated by Acme Image Generator",
    "when": "2026-10-01T10:00:00Z"
  }
}
Field Type Description
custom_assertions array Up to 16 custom assertions to embed. To add one assertion, send a one-element array.
custom_assertions[].label string Required. A unique label in reverse-domain notation. See label rules.
custom_assertions[].data object Required. Any JSON object, up to 8 KB when serialized. It is embedded exactly as sent.
ai_disclosure object Declares the asset as AI-generated. See AI Disclosure.
ai_disclosure.softwareAgent object Required. The AI tool that generated the asset.
ai_disclosure.softwareAgent.name string Required. Name of the AI tool or model.
ai_disclosure.softwareAgent.version string Optional. Version of the AI tool or model.
ai_disclosure.softwareAgent.<namespaced key> string Optional. Your own extra details, such as com.ssl.modelIdentifier. See softwareAgent extension keys.
ai_disclosure.description string Optional. Describes how the asset was generated. Defaults to Generated by <name>.
ai_disclosure.when string Optional. When the asset was generated, as an RFC 3339 timestamp such as 2026-10-01T10:00:00Z. Defaults to the time of the request.
Response
Status Condition Content-Type Body
200 OK Success Same as the asset's Content-Type The signed asset with the C2PA manifest embedded
4xx / 5xx Error application/json {"error":"<description>"}. See Errors.

Examples

Sign a JPEG image with the SSL Provenance API Claim signing certificate:
curl -X POST https://mss.ssl.com/v1/c2pa/sign \
  -H "Authorization: Bearer <your-access-token>" \
  -H "C2PA-Certificate-Id: 983da863-ce7f-42b5-b227-c9076c7b34af" \
  -H "Content-Type: image/jpeg" \
  --data-binary @photo.jpg \
  --output signed_photo.jpg
Sign an MP4 video:
curl -X POST https://mss.ssl.com/v1/c2pa/sign \
  -H "Authorization: Bearer <your-access-token>" \
  -H "C2PA-Certificate-Id: 983da863-ce7f-42b5-b227-c9076c7b34af" \
  -H "Content-Type: video/mp4" \
  --data-binary @video.mp4 \
  --output signed_video.mp4
Sign a JPEG XL image:
curl -X POST https://mss.ssl.com/v1/c2pa/sign \
  -H "Authorization: Bearer <your-access-token>" \
  -H "C2PA-Certificate-Id: 983da863-ce7f-42b5-b227-c9076c7b34af" \
  -H "Content-Type: image/jxl" \
  --data-binary @image.jxl \
  --output signed_image.jxl
Sign a JPEG and add a CAWG identity assertion that names the creator:
curl -X POST https://mss.ssl.com/v1/c2pa/sign \
  -H "Authorization: Bearer <your-access-token>" \
  -H "C2PA-Certificate-Id: 983da863-ce7f-42b5-b227-c9076c7b34af" \
  -H "CAWG-Certificate-Id: <your-identity-credential-id>" \
  -H "CAWG-Role: cawg.creator" \
  -H "Content-Type: image/jpeg" \
  --data-binary @photo.jpg \
  --output signed_photo.jpg
Sign a JPEG and embed a custom assertion (multipart):
curl -X POST https://mss.ssl.com/v1/c2pa/sign \
  -H "Authorization: Bearer <your-access-token>" \
  -H "C2PA-Certificate-Id: 983da863-ce7f-42b5-b227-c9076c7b34af" \
  -F "asset=@photo.jpg;type=image/jpeg" \
  -F 'manifest_options={"custom_assertions":[{"label":"com.example.tracking","data":{"internal_id":"ACME-2026-004421"}}]};type=application/json' \
  --output signed_photo.jpg
Sign an AI-generated PNG and name the AI tool that created it (multipart):
curl -X POST https://mss.ssl.com/v1/c2pa/sign \
  -H "Authorization: Bearer <your-access-token>" \
  -H "C2PA-Certificate-Id: 983da863-ce7f-42b5-b227-c9076c7b34af" \
  -F "asset=@generated.png;type=image/png" \
  -F 'manifest_options={"ai_disclosure":{"softwareAgent":{"name":"Acme Image Generator","version":"3.1","com.ssl.modelIdentifier":"acme-imagegen-3.1-xl"},"description":"Generated by Acme Image Generator"}};type=application/json' \
  --output signed_generated.png
Combine all of them: a CAWG identity with two roles, plus two custom assertions:
curl -X POST https://mss.ssl.com/v1/c2pa/sign \
  -H "Authorization: Bearer <your-access-token>" \
  -H "C2PA-Certificate-Id: 983da863-ce7f-42b5-b227-c9076c7b34af" \
  -H "CAWG-Certificate-Id: <your-identity-credential-id>" \
  -H "CAWG-Role: cawg.creator,cawg.editor" \
  -F "asset=@photo.jpg;type=image/jpeg" \
  -F 'manifest_options={"custom_assertions":[
        {"label":"com.example.tracking","data":{"internal_id":"ACME-2026-004421"}},
        {"label":"com.example.billing","data":{"account_ref":"AR-9001"}}
      ]};type=application/json' \
  --output signed_photo.jpg

Sign Asset Hash

POST /v1/c2pa/sign-hash
Signs a C2PA manifest from a hash of your asset, without the asset itself. You compute the hash on your side and send it as JSON. The API returns the signed manifest as a separate sidecar file (application/c2pa). Use it when: How it differs from Sign Asset:
Sign Asset Sign Asset Hash
You send The asset A hash of the asset, as JSON
You receive The asset with the manifest embedded A sidecar manifest file (.c2pa), which you can embed yourself for JPEG and PNG
Your asset file Replaced by the signed copy Unchanged
Existing Content Credentials Kept and extended Not seen by the API, so not carried forward
Thumbnail Added where possible Not added
CAWG identity assertion Supported Supported
Custom assertions, AI disclosure Supported (multipart) Supported
Keep the sidecar with the asset. The manifest is not inside the asset file, so deliver or store the two together, for example photo.jpg and photo.c2pa. The manifest only validates against the exact bytes you hashed. If the asset changes afterwards, validation fails. For JPEG and PNG, you can instead embed the manifest in the asset yourself.
Request Headers
Header Required Description
Authorization Yes Bearer <access_token>: your eSigner access token
C2PA-Certificate-Id Yes eSigner credential ID used to sign the C2PA claim. For the SSL Provenance API certificate, the credential ID is 983da863-ce7f-42b5-b227-c9076c7b34af
Content-Type Yes application/json
CAWG-Certificate-Id No eSigner credential ID used to sign a CAWG identity assertion. If present, the identity assertion is added to the sidecar manifest. Can be the same as C2PA-Certificate-Id. Works with every hash type.
CAWG-Role No One or more named actor roles, such as cawg.creator, for the identity assertion. Requires CAWG-Certificate-Id. To send several roles, repeat the header, separate values with commas, or both.
Request Body A JSON document, up to 4 MB:
{
  "asset": {
    "format": "image/jpeg",
    "title": "photo.jpg",
    "digital_source_type": "digitalCapture"
  },
  "hash": {
    "type": "data",
    "alg": "sha256",
    "value": "<base64 digest>"
  },
  "manifest_options": {
    "custom_assertions": [
      { "label": "com.example.tracking", "data": { "internal_id": "ACME-2026-004421" } }
    ]
  }
}
Field Required Description
asset.format Yes MIME type of the asset you hashed. See Supported Content Types. It decides which hash.type you can use.
asset.title No A human-readable title for the asset, usually its file name. Defaults to the value of asset.format.
asset.digital_source_type Yes, unless you send ai_disclosure How the asset was made. See Digital source type.
hash.type No How the asset was hashed: data (default), box or bmff. See Choosing a hash type.
hash.alg Yes Hash algorithm: sha256, sha384 or sha512.
hash.value For data and bmff The digest, base64-encoded.
manifest_options No Custom assertions and AI disclosure, with the same schema and limits as the manifest_options part of Sign Asset.
All digests are standard base64 (not hex, and not URL-safe base64). The decoded length must match the algorithm: 32 bytes for sha256, 48 for sha384 and 64 for sha512. Unknown fields are rejected at every level, so a misspelled field name returns 400 Bad Request instead of being silently ignored. Response
Status Condition Content-Type Body
200 OK Success application/c2pa The signed sidecar manifest
4xx / 5xx Error application/json {"error":"<description>"}. See Errors.
The request is fully validated before anything is signed, so a rejected request never uses a signing operation.

Choosing a hash type

C2PA defines different ways to bind a manifest to an asset. Which one you can use depends on the asset's format:
hash.type Formats What you hash
data (default) JPEG, PNG, GIF, TIFF, WebP, JPEG XL, SVG, DNG, AVI, MP3, FLAC, WAV The whole file
bmff MP4, MOV, M4V, M4A, HEIC, HEIF, AVIF The file, following the C2PA rules for ISO BMFF files
box JPEG, PNG, GIF, JPEG XL Each segment of the file separately
A hash.type that doesn't fit asset.format returns 422 Unprocessable Entity.

Data hash

Hash the whole file and base64-encode the digest:
openssl dgst -sha256 -binary photo.jpg | base64
Field Required Description
hash.value Yes Digest of the asset's bytes.
hash.exclusions No Byte ranges that were skipped while hashing, as {"start": <offset>, "length": <bytes>}. Up to 32 ranges, in ascending order, not overlapping, each with a length above 0. Leave it out when you hashed the whole file, which is the normal case.

BMFF hash

For MP4, MOV, M4V, M4A, HEIC, HEIF and AVIF. A plain hash of the file does not work here: the digest must follow the C2PA hashing rules for ISO BMFF files, which leave certain boxes out. Compute it with a C2PA SDK, for example c2pa-rs (BmffHash::new, set_default_exclusions, then gen_hash_from_stream).
"hash": { "type": "bmff", "alg": "sha256", "value": "<base64 digest>" }
Field Required Description
hash.value Yes Digest of the file computed with the C2PA BMFF hashing rules, with the exclusions boxes left out.
hash.exclusions No The boxes that were left out while hashing, as C2PA exclusion entries (up to 64): {"xpath": "/moov/...", "length"?: n, "data"?: [{"offset": n, "value": "<base64>"}], "subset"?: [{"offset": n, "length": n}], "version"?: n, "flags"?: "<base64 of 3 bytes>", "exact"?: bool}. If you leave it out, the C2PA SDK defaults are used: C2PA /uuid boxes, plus /ftyp, /mfra, /free and /skip. Your digest must have been computed with exactly the exclusions you declare.
hash.merkle No For large or fragmented files: C2PA Merkle tree entries (up to 64), one per mdat box: {"uniqueId", "localId", "count", "alg"?, "initHash"?, "hashes": ["<base64>", ...], "fixedBlockSize"? | "variableBlockSizes"?}. When you use it, exclusions must also exclude the mdat payload ({"xpath": "/mdat", "subset": [{"offset": 16, "length": 0}]}), which the Merkle tree covers instead.

Box hash

For JPEG, PNG, GIF and JPEG XL. Instead of one digest for the file, you send one digest per structural segment: JPEG marker segments, PNG chunks, GIF blocks or JPEG XL boxes.
"hash": {
  "type": "box",
  "alg": "sha256",
  "boxes": [
    { "names": ["PNGh"], "hash": "TEtqO+ExSrhhOL70MU3eAi5gCWDYaJosj4YxgC0g2rY=" },
    { "names": ["IHDR"], "hash": "sCqw6AIeXDpa9P3r6puYKuzYPvv1W24f66k4nlG98IA=" },
    { "names": ["C2PA"] },
    { "names": ["IDAT"], "hash": "NzMpyCheggQS3At1ly+mWmH01sbN/VK6z9oQQVdwTLk=" },
    { "names": ["IEND"], "hash": "gZ5y7wBQZ2uGFgtvvQs5tH+7E6jhDmnCmcvhrYSNI98=" }
  ]
}
Field Required Description
hash.boxes Yes The asset's segments in file order. Up to 16,384 names in total.
hash.boxes[].names Yes The segment names this entry covers. One name per entry is typical. Several consecutive segments can share one entry.
hash.boxes[].hash Yes, unless excluded Digest of the bytes of the named segments.
hash.boxes[].alg No Hash algorithm for this entry, if different from hash.alg.
hash.boxes[].excluded No true marks a segment that is not hashed. It needs no hash.
The list must match how C2PA splits the format, and must contain a {"names": ["C2PA"]} entry, with no hash, at the position where an embedded manifest would go: after APP0 in JPEG, after IHDR in PNG, and after the logical screen descriptor in GIF. A C2PA SDK produces this list for you, for example c2pa-rs (Builder::update_hash_from_stream with builder.prefer_box_hash enabled).

Digital source type

Because the API never sees the asset, you declare how it was made. Set asset.digital_source_type to one of the IPTC digital source type codes below, or to its full URI (http://cv.iptc.org/newscodes/digitalsourcetype/<code>). Codes are case-sensitive.
Code Typical use
digitalCapture A photo, video or audio recording captured by a camera or recorder
computationalCapture A capture combined from several frames or sensors, as many phone cameras do
digitalCreation Created by a person using software, such as an illustration
humanEdits Edited by a person using non-generative tools
screenCapture A screenshot or screen recording
composite, compositeCapture, compositeSynthetic, compositeWithTrainedAlgorithmicMedia Composed from several elements
trainedAlgorithmicMedia, algorithmicMedia, algorithmicallyEnhanced Created or enhanced by an algorithm or AI model
negativeFilm, positiveFilm, print Digitized from an analog original
dataDrivenMedia, virtualRecording Generated from data, or recorded in a virtual environment
See the IPTC vocabulary for the full definition of each code. For an AI-generated asset, we recommend sending ai_disclosure in manifest_options instead, so the manifest also names the AI tool. In that case, leave asset.digital_source_type out: the two can't be combined, and the source type is set to trainedAlgorithmicMedia for you.

What the hash-only manifest records

The signed sidecar manifest contains: There is no parent ingredient and no thumbnail, because the API has no access to the asset.
Assets that already have Content Credentials. The API can't see whether your asset already carries a manifest, so the new manifest starts a new provenance history and doesn't link to an earlier one. To keep and extend existing Content Credentials, upload the asset to Sign Asset instead.
You are responsible for the hash and the declaration. The API signs the values you send. It can't check that the hash matches your asset, or that the digital source type is accurate. A wrong hash produces a manifest that fails validation.

Embedding the manifest in the asset

The API always returns a sidecar. If you would rather ship a single file with the Content Credentials inside it, you can embed the returned manifest in the asset yourself. The API doesn't do this step, because it never has the asset. Whether this works depends on the hash type you signed with:
Hash type Can the manifest be embedded afterwards?
box (JPEG, PNG) Yes. The C2PA entry in your box list reserves the manifest's position, and the manifest itself is not part of the hash.
data over the whole file No. Embedding the manifest changes the bytes the hash covers, so validation fails with a hash mismatch. Keep it as a sidecar.
bmff (MP4-family) Not supported. Keep it as a sidecar.
To embed a manifest signed with a box hash:
  1. Sign the asset with hash.type: "box", as described in Box hash.
  2. Wrap the returned manifest for the asset's format. The response is a raw C2PA manifest store. A JPEG carries it in APP11 segments, and a PNG in a caBX chunk. A C2PA SDK does the wrapping for you, for example c2pa-rs Builder::composed_manifest(manifest_bytes, "image/jpeg").
  3. Insert the wrapped bytes into the asset at the position of the C2PA entry in your box list: after APP0 in a JPEG, after IHDR in a PNG. Leave every other byte of the asset unchanged.
  4. Validate the result before you publish it, for example with c2patool signed_photo.jpg.
If the manifest is inserted anywhere else, or any other part of the file changes, validation fails.

Examples

Sign a JPEG by its hash, with the SSL Provenance API Claim signing certificate:
HASH=$(openssl dgst -sha256 -binary photo.jpg | base64)

curl -X POST https://mss.ssl.com/v1/c2pa/sign-hash \
  -H "Authorization: Bearer <your-access-token>" \
  -H "C2PA-Certificate-Id: 983da863-ce7f-42b5-b227-c9076c7b34af" \
  -H "Content-Type: application/json" \
  -d "{\"asset\":{\"format\":\"image/jpeg\",\"title\":\"photo.jpg\",\"digital_source_type\":\"digitalCapture\"},\"hash\":{\"alg\":\"sha256\",\"value\":\"$HASH\"}}" \
  --output photo.c2pa
photo.c2pa is the signed manifest. photo.jpg is unchanged. Sign an AI-generated PNG by its hash and name the AI tool that created it:
HASH=$(openssl dgst -sha256 -binary generated.png | base64)

curl -X POST https://mss.ssl.com/v1/c2pa/sign-hash \
  -H "Authorization: Bearer <your-access-token>" \
  -H "C2PA-Certificate-Id: 983da863-ce7f-42b5-b227-c9076c7b34af" \
  -H "Content-Type: application/json" \
  -d "{\"asset\":{\"format\":\"image/png\",\"title\":\"generated.png\"},\"hash\":{\"alg\":\"sha256\",\"value\":\"$HASH\"},\"manifest_options\":{\"ai_disclosure\":{\"softwareAgent\":{\"name\":\"Acme Image Generator\",\"version\":\"3.1\"}}}}" \
  --output generated.c2pa
Sign a JPEG by its hash and add a CAWG identity assertion that names the creator:
HASH=$(openssl dgst -sha256 -binary photo.jpg | base64)

curl -X POST https://mss.ssl.com/v1/c2pa/sign-hash \
  -H "Authorization: Bearer <your-access-token>" \
  -H "C2PA-Certificate-Id: 983da863-ce7f-42b5-b227-c9076c7b34af" \
  -H "CAWG-Certificate-Id: <your-identity-credential-id>" \
  -H "CAWG-Role: cawg.creator" \
  -H "Content-Type: application/json" \
  -d "{\"asset\":{\"format\":\"image/jpeg\",\"title\":\"photo.jpg\",\"digital_source_type\":\"digitalCapture\"},\"hash\":{\"alg\":\"sha256\",\"value\":\"$HASH\"}}" \
  --output photo.c2pa
Sign an MP4 video by its BMFF hash, computed with a C2PA SDK:
curl -X POST https://mss.ssl.com/v1/c2pa/sign-hash \
  -H "Authorization: Bearer <your-access-token>" \
  -H "C2PA-Certificate-Id: 983da863-ce7f-42b5-b227-c9076c7b34af" \
  -H "Content-Type: application/json" \
  -d '{"asset":{"format":"video/mp4","title":"video.mp4","digital_source_type":"digitalCapture"},"hash":{"type":"bmff","alg":"sha256","value":"<base64 BMFF digest>"}}' \
  --output video.c2pa

CAWG Identity Assertions

A CAWG identity assertion (cawg.identity) lets a named actor, such as the photographer or author, sign a statement that binds their identity to the asset. This is separate from the C2PA claim signature, which identifies the organization or tool that produced the manifest. To add one, you first need to add your own CAWG certificate, contact us to purchase and provision one. Then, send the CAWG-Certificate-Id header with the eSigner credential for your CAWG certificate.

Named actor roles

Use the CAWG-Role header to describe the actor's role, for example cawg.creator or cawg.editor. To send more than one role, you can: Role values are embedded exactly as sent. Roles defined by the CAWG specification and your own custom role identifiers are both accepted. CAWG-Role requires CAWG-Certificate-Id. Without it, the request returns 400 Bad Request.

Custom Assertions

Custom assertions let you embed your own structured data in the signed manifest, such as an internal asset ID, a workflow reference or licensing metadata. Each one is a JSON object under a label you choose. It is covered by the manifest signature, so any change to it is detected. On Sign Asset, custom assertions require the multipart request format, sent in the manifest_options part. On Sign Asset Hash, send them in the manifest_options field of the JSON body. The rules below apply to both.
Custom assertions are not confidential. Like every C2PA assertion, they are signed, so changes can be detected, but they are not encrypted. Anyone who reads the manifest can read them. If a value must stay private, encrypt it before you send it.

Label rules

Every custom_assertions entry needs a label that: If an entry breaks any of these rules, the request returns 400 Bad Request with a message that names the rule.

Constraints

Constraint Limit
Custom assertions per request 16
Size of each entry's data (serialized JSON) 8 KB
Type of data JSON object (not an array, string or number)

AI Disclosure

If your asset was generated by an AI tool, you can declare it as AI-generated and name the tool that produced it. Content Credentials viewers, such as the Content Credentials Validator, then show the asset as AI-generated, together with the tool's name. This works for assets you generated in your own pipeline, and for AI-generated assets you received from elsewhere without Content Credentials. To declare an asset as AI-generated, send ai_disclosure in the manifest_options part of a multipart request, or in the manifest_options field of a Sign Asset Hash request:
{
  "ai_disclosure": {
    "softwareAgent": {
      "name": "Acme Image Generator",
      "version": "3.1",
      "com.ssl.modelIdentifier": "acme-imagegen-3.1-xl"
    },
    "description": "Generated by Acme Image Generator"
  }
}
Field Required Description
softwareAgent Yes The AI tool that generated the asset. It is embedded in the manifest exactly as sent.
softwareAgent.name Yes Name of the AI tool or model.
softwareAgent.version No Version of the AI tool or model.
softwareAgent.<namespaced key> No Extra details about the tool, such as com.ssl.modelIdentifier for a model identifier. See softwareAgent extension keys.
description No Describes how the asset was generated. If you leave it out, Generated by <name> is used.
when No When the asset was generated, as an RFC 3339 timestamp such as 2026-10-01T10:00:00Z or 2026-10-01T12:00:00+02:00. It is stored in UTC. If you leave it out, the time of the request is used.
Only softwareAgent.name is required. Each string can be up to 65,535 bytes (the C2PA limit), and none can be empty when sent. Optional fields you leave out are simply left out of the manifest. Unknown fields are rejected, so a misspelled field name returns 400 Bad Request instead of being silently ignored.

softwareAgent extension keys

Besides name and version, softwareAgent can carry up to 16 extra keys with more details about the tool, such as com.ssl.modelIdentifier for a model identifier or com.example.checkpoint for your own data. Each extra key: Keys that aren't namespaced, such as modelIdentifier, are rejected with 400 Bad Request.

What the manifest records

Instead of the usual c2pa.opened action and parent ingredient, the manifest records the asset's creation using the standard C2PA 2.2 creation declaration:
{
  "actions": [
    {
      "action": "c2pa.created",
      "when": "2026-10-01T10:00:00Z",
      "digitalSourceType": "http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia",
      "softwareAgent": {
        "name": "Acme Image Generator",
        "version": "3.1",
        "com.ssl.modelIdentifier": "acme-imagegen-3.1-xl"
      },
      "description": "Generated by Acme Image Generator"
    }
  ],
  "allActionsIncluded": true
}
You can combine ai_disclosure with custom assertions and a CAWG identity assertion.

Declaring an asset that already has Content Credentials

An AI disclosure can only start a provenance history; it can't be added after an existing one. If the uploaded asset already carries a C2PA manifest, a request with ai_disclosure returns 422 Unprocessable Entity. To sign such an asset, send it without ai_disclosure. Its existing provenance, which may already record that it is AI-generated, is kept and extended. This check only applies to Sign Asset. With hash-only signing, the API can't see the asset, so make sure it has no Content Credentials before you declare it.

You are responsible for the declaration

The AI disclosure is a claim made by the signer. The SSL Provenance API embeds and signs the values you send, but it doesn't check how the asset was actually produced. This matters most for assets you received from a third party: you did not witness their generation. You are responsible for the accuracy of the ai_disclosure values you supply.

Format-Specific Behavior

JPEG XL

A JPEG XL file can be a bare codestream or an ISOBMFF container. A C2PA manifest can only be embedded in the container form, so the API handles each one like this: The signed output is always a JPEG XL container, and standard JPEG XL decoders read it.

M4A audio

audio/mp4 (M4A) files are handled as MP4 containers. The response keeps the audio/mp4 content type.

Errors

All errors return a JSON body:
{ "error": "<human-readable description>" }
Status Cause Example message
400 Bad Request C2PA-Certificate-Id is missing or empty credential ID not present in request
400 Bad Request CAWG-Role sent without CAWG-Certificate-Id CAWG-Role requires CAWG-Certificate-Id: cawg.creator
400 Bad Request Multipart: the asset part has no Content-Type asset part must declare a Content-Type
400 Bad Request Multipart: manifest_options is not valid JSON, has more than 16 entries, has an entry with a missing or invalid label, has a data value that isn't an object or is over 8 KB, or repeats a label Invalid manifest_options: <reason>
400 Bad Request Multipart: ai_disclosure is missing softwareAgent or softwareAgent.name; has an empty, non-string or over-65,535-byte value; has a softwareAgent key that isn't namespaced or is reserved, or more than 16 extension keys; has a when that isn't an RFC 3339 timestamp; or has an unknown field Invalid manifest_options: <reason>
400 Bad Request Multipart: the multipart body is malformed or over the size limit multipart error: <reason>
413 Payload Too Large The raw body is over 200 MB
415 Unsupported Media Type The asset's MIME type is not supported Unsupported media type: image/bmp
422 Unprocessable Entity Multipart: ai_disclosure was sent for an asset that already has Content Credentials (see AI Disclosure) AI disclosure not supported: <reason>
500 Internal Server Error The credential couldn't be loaded: the access token is invalid or expired, or the credential ID is wrong or not available to this token No credential info: <reason>
500 Internal Server Error Signing, timestamping or manifest generation failed, for example because the asset is corrupt or doesn't match its declared type <reason>

Sign Asset Hash errors

The C2PA-Certificate-Id, 415 and 500 errors above also apply to Sign Asset Hash, where 415 refers to asset.format. manifest_options errors return the same Invalid manifest_options: <reason> message. These errors are specific to the endpoint:
Status Cause Example message
400 Bad Request The body is not valid JSON, is over 4 MB, is missing a required field, has an unknown field, or is not sent as application/json Invalid hash signing request: <reason>
400 Bad Request hash.type is unknown; a field doesn't belong to the chosen hash type; or a title, algorithm, digest, exclusion, box entry or Merkle entry is invalid Invalid hash signing request: <reason>
400 Bad Request asset.digital_source_type is missing without ai_disclosure, is sent together with ai_disclosure, or is not an accepted code Invalid hash signing request: <reason>
422 Unprocessable Entity hash.type doesn't fit asset.format: data or box for an MP4-family format, bmff for any other format, or box for a format without box hashing (see Choosing a hash type) Hash-only signing not supported: <reason>
400 Bad Request CAWG-Role sent without CAWG-Certificate-Id CAWG-Role requires CAWG-Certificate-Id: cawg.creator
Troubleshooting tips

Limits

Item Limit
Request size (raw body or whole multipart body) 200 MB
Custom assertions per request 16
Custom assertion data size 8 KB each
Custom assertion label length 256 characters
Each ai_disclosure string value 65,535 bytes
softwareAgent extension keys 16
Sign Asset Hash request body 4 MB
Data hash exclusion ranges 32
Box hash segment names 16,384
BMFF hash exclusions 64
BMFF hash Merkle entries 64

Verifying a Signed Asset

You can inspect and validate the Content Credentials on any signed asset with standard C2PA tools: The output shows the SSL Provenance API claim generator, the c2pa.opened action and the parent ingredient (or, for an AI-generated asset, the c2pa.created action and the AI tool's name), any CAWG identity assertion and custom assertions, and the signing certificate and timestamp.

Verifying a sidecar manifest

A manifest from Sign Asset Hash is a separate file, so the validator needs both the asset and the manifest. With c2patool:
c2patool photo.jpg --external-manifest photo.c2pa
The output shows the SSL Provenance API claim generator, the c2pa.created action with your digital source type, any custom assertions, and the signing certificate and timestamp.

Changelog

Version 1.1

New: hash-only signing. The new Sign Asset Hash endpoint, POST /v1/c2pa/sign-hash, signs a C2PA manifest from a hash of your asset, so the asset never leaves your infrastructure. It returns the signed manifest as a sidecar file (application/c2pa).
Exit mobile version