Skip to content

Sign

llms.txtAsk agent

Signing takes three steps: create an upload, accept a job with POST /v1/sign, and poll the job. The API never accepts media bytes in a JSON request.

POST /v1/uploads declares the exact bytes you will send:

{
"byte_length": 204800,
"sha256": "<64 lowercase hex characters>",
"declared_media_type": "image/jpeg",
"mode": "single",
"filename": "photo.jpg"
}

declared_media_type must be one of image/jpeg, image/png, image/webp, image/tiff, image/avif, audio/wav, audio/mpeg, audio/mp4, or video/mp4 for the embedded lane, one of the sign-only types image/gif, image/jxl, image/svg+xml, image/x-adobe-dng, image/heic, image/heif, image/heic-sequence, image/heif-sequence, video/quicktime, video/x-msvideo or audio/flac, which are signed with both flags false, or one of the sidecar media types, among them image/x-tiff-based, image/x-riff-based, video/x-bmff-based, video/x-riff-based, audio/aac, audio/MPA and audio/x-riff-based, whose manifest is delivered beside the file. Check GET /v1/capabilities for current limits and account availability. TIFF and AVIF accept only the image scopes listed in the introduction. Use "mode": "multipart" with a parts list for large files.

MP4 (video/mp4) accepts one H.264 video track (8-bit 4:2:0) and at most one AAC-LC audio track, in a non-fragmented file with no other tracks. HEVC, 10-bit/HDR, HE-AAC and fragmented MP4 are refused with MEDIA_CODEC_UNSUPPORTED; phone recordings are often HEVC, so re-export them as H.264/AAC first.

The 201 response contains upload_id, the parent asset_id (ast_…), expires_at, and, for single-part uploads, an upload object with method (PUT), url, and headers.

PUT the file to upload.url and send exactly the returned headers. Do not send your Authorization header to this URL: it is a storage URL, not an API URL.

POST /v1/uploads/{upload_id}/complete needs an Idempotency-Key header. The API checks the stored bytes against the declared length and SHA-256. It then returns the immutable asset_object_id (aob_…). A mismatch fails with UPLOAD_CHECKSUM_MISMATCH or UPLOAD_SIZE_MISMATCH.

POST /v1/sign needs the sign:write scope and an Idempotency-Key header. Everything the job does is in the request body. Always send both watermark and fingerprint:

Terminal window
curl -sS -X POST "$OP_API_BASE_URL/v1/sign" \
-H "Authorization: Bearer $OP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d "{\"asset_id\": \"$ASSET_ID\", \"watermark\": false, \"fingerprint\": false}"

The 202 response is a job snapshot with job_id (job_…), state, and watermark and fingerprint echoing what the job does.

Field Type What it does
asset_id string, required The ast_… asset whose upload you completed.
watermark boolean true embeds an invisible watermark before signing. See Choose a mode.
fingerprint boolean true also keeps server-side fingerprints, so a copy whose manifest was removed can be matched. See Choose a mode.
watermark_algorithm string Which watermark to embed. Needs watermark: true. See Choose a watermark.
watermark_strength subtle, balanced, robust How hard the watermark may be embedded. Needs watermark: true. See Choose a watermark strength.
fingerprint_algorithms array of strings Which fingerprints to keep. Needs fingerprint: true. See Choose fingerprints.
ai_declaration object Declares that a generative model produced the file. Combines with any watermark and fingerprint choice. See Declare AI generation.
creator_id string An enrolled creator (crid_…) to attribute. The manifest carries an opaque reference, never the name or email address.
identity object {"credential_id": "idc_…"} adds a CAWG identity assertion. Not available yet; see CAWG identity.
template_id string A saved workflow template (wft_…) that fills in the fields this request omits.
mode standard, express express waits for the result; see Express. Omit it, or send standard, for the asynchronous job.
recipe_id string Advanced: an exact recipe instead of the flags. Needed only for a sidecar format.

An omitted flag means false. A request with neither flag, no recipe_id and no template_id is refused, except for an older API key that carries legacy key defaults.

POST /v1/sign/batch takes up to 100 of the same request bodies as {"items": [...]} and needs the same sign:write scope. Each item is admitted exactly as its own POST /v1/sign would be, with the same quota and errors. One item’s refusal does not affect the others, so a 202 answer can still contain refused items.

  • The response lists one result per item, in request order: index, status (202 or the error status), job for an admitted item and error for a refused one.
  • Item i is admitted under the idempotency key <Idempotency-Key>.b<i>. Replaying the same batch returns the same jobs. The batch key can be at most 196 characters, which leaves room for that suffix.
  • A key with a per-minute rate limit spends one request per item, all or nothing. If the limit cannot cover the whole batch, the batch gets 429 with Retry-After and no item is admitted. A batch larger than the key’s burst allowance can never fit, so it gets 422 with the largest allowed size in field_details.items. At 60 requests per minute that size is 11.

Every request writes and signs a C2PA manifest. The two flags add the optional recovery signals:

watermark fingerprint Mode What the job does
false false Sign Writes and signs the C2PA manifest. No watermark and no fingerprint.
true false Sign + watermark Embeds an invisible watermark, then the manifest. No fingerprint.
true true Sign + watermark + fingerprint A watermark, server-side recovery fingerprints, then the manifest.
false true Sign + fingerprint The manifest plus server-side recovery fingerprints. No watermark.
{ "asset_id": "ast_…", "watermark": true, "fingerprint": true }

What a mode without fingerprints gives up: nothing is kept that could find your published original from a copy whose manifest was removed, except the watermark in “Sign + watermark”. An image signed with “Sign” carries no ISCC soft binding in its manifest; an image watermarked with a registered watermark (PixelSeal, VideoSeal image mode or a registered TrustMark variant) keeps that watermark’s soft binding.

By format:

  • Embedded formats take any of the four modes, except that a watermark is offered only where GET /v1/capabilities lists one for the media type.
  • Structural formats (HEIC, GIF, QuickTime and the rest of the sign-only types) take only “Sign”: both flags false. They refuse watermark: true and fingerprint: true.
  • Sidecar formats have no flag form. Send the recipe_id for their family instead; it is listed on Recipes (advanced), and the manifest is delivered beside the file.

The flags are the plain form of a recipe, and each job reports the recipe_id it ran. Integrations that already send recipe_id keep working unchanged.

ai_declaration states that a generative model produced the file. It combines with every mode above and with creator_id, in one call, so one signed file carries the declaration, the watermark, its soft bindings and the creator together.

{
"asset_id": "ast_…",
"watermark": true,
"fingerprint": true,
"creator_id": "crid_…",
"ai_declaration": {
"digital_source_type": "trainedAlgorithmicMedia",
"software_agent_name": "Studio Nova Imagine",
"software_agent_version": "2.0",
"models": [{ "name": "nova-diffusion", "version": "3.1" }],
"human_oversight_level": "human-in-the-loop"
}
}
Field Required Values
digital_source_type yes trainedAlgorithmicMedia, compositeWithTrainedAlgorithmicMedia or compositeSynthetic.
software_agent_name yes The generating software, up to 128 characters.
software_agent_version no Up to 64 characters.
models no Up to 8 models, each name and optional version.
human_oversight_level no human-in-the-loop, human-on-the-loop or human-out-of-the-loop. Needs models.

What the manifest records depends on whether the file already carries Content Credentials:

  • No Content Credentials (most generated files): the first action is c2pa.created with the digital source type you state and your software agent. A watermark follows as c2pa.watermarked.bound when the manifest also carries the watermark’s registered soft binding (PixelSeal is com.originalpictures.pixelseal.1, list id 68), otherwise c2pa.watermarked.unbound. The soft bindings follow in order (ISCC first, then the watermark), then c2pa.ai-disclosure when you name models, then the creator reference.
  • Content Credentials already present (for example a model provider’s own signed output): the file is opened as the parent ingredient, which keeps the provider’s signed manifest and its digital source type. Your declaration adds c2pa.ai-disclosure when you name models. The parent must itself declare generative media; a parent that declares a capture or states no source type is refused with GENERATOR_INGREDIENT_INVALID, because the declaration could not be stated truthfully on top of it.

Both shapes follow the C2PA 2.4 rules for actions: a created action carries a digital source type, an opened action does not, and the watermark action is non-editorial so it needs none.

A stripped copy (the manifest removed) is recovered by its watermark or fingerprint to this signed file, so the verification names its creator.

Until 2026-11-17 an AI declaration required watermark: false and was refused with AI_DECLARATION_REQUIRES_SIGN_ONLY otherwise. That code is now returned only for the watermark-only recipe (rcp_system_watermark_only), which writes no manifest to carry a declaration.

The API checks a request in this order, and the first refusal wins: the request schema, then template_id, then the flags and the AI declaration, then identity, then creator_id, then admission (quota, media and the key’s restrictions). Branch on code and, when present, detail_code; never on message.

Request Status code detail_code
ai_declaration with recipe_id: "rcp_system_watermark_only" 422 JOB_RECIPE_INVALID AI_DECLARATION_REQUIRES_SIGN_ONLY
identity while no identity credential is enrolled 409 IDENTITY_CREDENTIAL_NOT_ENROLLED
template_id unknown, deleted or another account’s 404 WORKFLOW_TEMPLATE_NOT_FOUND
watermark_algorithm or watermark_strength without watermark: true 422 JOB_POLICY_REJECTED
A watermark for a media type that has none (audio/mp4) 422 JOB_POLICY_REJECTED (on watermark)
fingerprint_algorithms without fingerprint: true 422 JOB_POLICY_REJECTED
A fingerprint the media type does not offer 422 FINGERPRINT_ALGORITHM_UNSUPPORTED
human_oversight_level without models 422 JOB_POLICY_REJECTED (on ai_declaration)
A flag that contradicts an explicit recipe_id 422 JOB_POLICY_REJECTED
A request an older key’s legacy defaults do not allow 403 API_KEY_PROFILE_FORBIDS

field_details names the field each refusal is about. The full list of codes is on Reason codes.

For JPEG, PNG, WebP, TIFF and AVIF images, "mode": "express" with watermark and fingerprint both true runs “Sign + watermark + fingerprint” on the express lane: the same watermark, fingerprints and C2PA manifest, with the job’s steps run back to back instead of queued one by one. The request waits for the result:

  • 200: the job finished within the wait. The body is the job resource plus download, the same short-lived delivery POST /v1/assets/{asset_id}/download mints. download.url is a bearer URL; keep it out of logs.
  • 202: the job had not finished yet. The body is the usual job snapshot; poll it or wait for the webhook, exactly as for any job.

Express is not a refusal: any other combination or media type runs on the ordinary pipeline and answers 202. Webhooks are delivered either way, and the job, receipt, verification and Library entry are the same as for any Sign job.

A request with watermark: true accepts an optional watermark_algorithm:

  • Omit it and the job uses the default for the asset’s media type, listed in the table below. A later change of default never changes a job that already exists.
  • Name the recommended algorithm to opt in to the one that ranks best in our watermark benchmark. Where it is already the default, naming it runs the same algorithm as omitting the field.
  • Any other value must be one of the algorithms listed for that media type in GET /v1/capabilities, under media[].watermark_algorithms. A request without a watermark refuses the field.
{
"asset_id": "ast_…",
"watermark": true,
"watermark_algorithm": "pixelseal"
}

The defaults are summarised below. Every algorithm, which media types take it, its C2PA soft-binding status and its strength levels are on Watermarks. The table is generated from the capability snapshot the API is built with; a deployment can enable fewer, so GET /v1/capabilities stays the authority at run time.

Modality Default (field omitted) Recommended Selectable
audio audioseal-mm02-4 audioseal-mm02-4 audioseal, audioseal-mm02-4
image pixelseal pixelseal pixelseal, trustmark-b, trustmark-c, trustmark-p, trustmark-q, videoseal-image
video pixelseal-video pixelseal-video pixelseal-video, videoseal

Sign-only and sidecar media carry no watermark.

Each watermark algorithm is qualified at one strength or a short ladder of strengths. By default a job embeds at the lowest rung and climbs only when the watermark would not be detected in the output. watermark_strength narrows that ladder for one request:

  • subtle embeds at the lowest qualified strength only. If the watermark would not be detected there, the job fails rather than embedding more strongly.
  • balanced is the default: exactly what omitting the field does.
  • robust allows the full qualified ladder, up to the strongest rung.

No level ever uses a strength outside the algorithm’s qualified ladder. For every algorithm today the default already allows the full ladder, so balanced and robust run the same rungs; they differ only for an algorithm whose default is capped below its qualified maximum. For a single-strength algorithm all three levels are the same.

{
"asset_id": "ast_…",
"watermark": true,
"watermark_strength": "subtle"
}

GET /v1/capabilities lists the exact strengths each level allows for each algorithm, under media[].watermark_algorithms[].strength_levels. The level applies to the algorithm the job runs: the one you name, or the media type’s default. A job keeps the strengths it was admitted with. A request without a watermark refuses the field with HTTP 422; a media type without a watermark (for example audio/mp4) refuses it with JOB_POLICY_REJECTED.

A request with fingerprint: true computes perceptual fingerprints of the published bytes. They are kept on our servers so verification can find your published original from a copy whose manifest was removed. The optional fingerprint_algorithms list chooses which:

  • Omit it and the job computes the default set for the asset’s media type, listed below. A later change of default never changes a job that already exists.
  • A list replaces the default set. Name each fingerprint once, at least one, and only those GET /v1/capabilities lists for that media type under media[].fingerprint_algorithms. A refusal is HTTP 422 with FINGERPRINT_ALGORITHM_UNSUPPORTED.
  • ISCC Image-Code is always added for images, because it is the soft binding the manifest carries. No other fingerprint enters the manifest or any public response.
  • A set that differs from the default adds a fingerprint line to the job’s price, on the watermark schedule; see Retention and pricing.
  • Without fingerprint: true (“Sign” and “Sign + watermark”) no fingerprint is computed and the field is refused.
{
"asset_id": "ast_…",
"watermark": true,
"fingerprint": true,
"fingerprint_algorithms": ["dinov2", "pdq"]
}

The defaults are summarised below. Every fingerprint, which media types keep it and what each survives are on Fingerprints. The table is generated from the same capability snapshot as the watermark table; GET /v1/capabilities stays the authority at run time.

Modality Default (field omitted) Always added Selectable
audio chromaprint none chromaprint, audfprint, iscc-audio
image iscc-image, dinov2 iscc-image iscc-image, dinov2, pdq, dinov2-lsh256
video tmk-pdqf none tmk-pdqf, vpdq

Poll GET /v1/jobs/{job_id} until state is terminal: completed, failed, rejected, canceled, or expired. Non-terminal states are accepted, queued, running, and cancel_requested. Wait at least 2 seconds between polls, backing off for longer jobs.

A completed job has a result with asset_id, publication_id, receipt_id, and verification_id. That last value is ready verification evidence (vfy_…), not a job ID. A failed job carries an error_code from the reason codes.

To stop a job, send a cancellation request with POST /v1/jobs/{job_id}/cancel. It never publishes partial output.