← Docs

Monitors

One test image per pipeline stage; we check them on a schedule and tell you when a stage stops preserving credentials.

A monitor is a named list of checkpoints. A checkpoint is a URL plus what you expect to be true about it.

curl -s https://api.c2pa.design/v1/monitors \
  -H "authorization: Bearer $C2PA_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "name": "product images",
    "project_id": "0199b1f2-5d0c-7e1f-a2b3-c4d5e6f7a8b9",
    "schedule": "hourly",
    "checkpoints": [
      { "name": "origin",  "url": "https://storage.example.com/raw/hero.jpg",  "expect": "present_trusted" },
      { "name": "resized", "url": "https://img.example.com/w800/hero.jpg",     "expect": "present_trusted" },
      { "name": "cdn",     "url": "https://cdn.example.com/hero.jpg",          "expect": "present_trusted" }
    ]
  }'

Stages, not images

A label is lost by a stage — a resizer, a CDN transform, a social upload — not by one image. Every image that passes through the same stage is treated the same way. One signed test image per stage covers all of them:

You produce Checkpoints you need
100 images a day one per stage, typically 3–6
1,000,000 images a day the same 3–6

Pick one image your generator signed, and add each address it is served from. A new stage (a new CDN, a new image size, a new share page) is a new checkpoint.

Sampling live output

A monitor proves each stage works. To prove what share of real output carries the label, send a sample of generated images from your own code after they are published. One call per image, 1 % is usually enough:

if (Math.random() < 0.01) {
  await fetch("https://api.c2pa.design/v1/verifications", {
    method: "POST",
    headers: {
      authorization: `Bearer ${process.env.C2PA_API_KEY}`,
      "content-type": "application/json",
      "idempotency-key": image.id,
    },
    body: JSON.stringify({
      url: image.publicUrl,
      project_id: "0199b1f2-5d0c-7e1f-a2b3-c4d5e6f7a8b9",
      metadata: { stage: "cdn", model: image.model },
    }),
  });
}

Every sampled check counts in GET /v1/coverage for that project, so keep a dedicated project for sampling: unrelated checks in the same project would change the percentage. Each call is one verification against your plan's quota. Results also arrive as verification.completed webhooks with your metadata echoed back.

Expectations

expect Passes when credential.status is
present valid_trusted or valid_untrusted
present_trusted valid_trusted
absent absent

absent is a real expectation, not a joke: it is how you assert that a redaction step removed provenance on purpose.

Schedules

manual, daily, hourly, quarter_hour — bounded by your plan's minimum interval. A schedule tighter than the plan allows is refused at creation with usage_limit_exceeded rather than silently downgraded.

Runs and regressions

POST /v1/monitors/{id}/runs        run now
GET  /v1/monitors/{id}/runs        history, keyset paginated
GET  /v1/monitors/{id}/runs/{run}  per-checkpoint results and the diff

Each checkpoint result carries previous_status and, when they differ meaningfully, a regression_kind:

Kind What changed
credential_lost A stage that used to preserve the credential no longer does
became_invalid The bytes changed after signing — usually a re-encode
lost_trust Still signed, but the signer no longer chains to the trust list
signer_changed Someone else re-signed your asset
source_type_changed The declared origin changed
fetch_failed The URL could not be fetched at all

A regression fires monitor.regression, emails the notification addresses and posts to your Slack webhook if one is configured.

Coverage

GET /v1/coverage?project_id=…&from=2026-08-01&to=2026-09-01

Daily counts of expected, present, valid and trusted, plus a total percentage. This is the number an auditor asks for, and the reason it is a series rather than a single figure is that "we were at 98 % all quarter" is a much stronger statement than "we are at 98 % today".

What a monitor will not do

It fetches public URLs with the same guards as everything else. It will not authenticate to your origin, and it will not follow a redirect into a private network. If your assets are behind auth, that is an enterprise conversation rather than a hidden flag.