← Docs

Assets

The asset inventory: list, filter, export as CSV, register assets from your own pipeline, and keep a repo in sync with the agent skill.

An asset is one file, identified by its SHA-256 within your organisation. The same bytes at two URLs are one asset with two locations. Assets enter the inventory from four places:

Source How
crawl a verified domain
skill the agent skill, track.mjs --push
track your own call to POST /v1/assets, for example after each generation
upload the dashboard

Only hashes and verification results are stored. Bytes never leave your machine on the skill and API paths, and the crawler verifies in memory.

List and filter

curl -s "https://api.c2pa.design/v1/assets?status=absent&limit=50" \
  -H "authorization: Bearer $C2PA_API_KEY"

Filters: project_id, domain_id, status (a credential.status value), source_category, signer. Pagination is keyset: pass next_cursor back as cursor.

Each item carries status, signer_name, generator, source_category, digital_source_type, first_seen, last_seen, tracked (false when the plan's asset limit was reached: listed, not re-checked) and public_match.

GET /v1/assets/{id} adds locations (every URL or path, with its own status, HTTP status and next check) and events, the timeline:

kind When
added first seen
changed new bytes at the same location
lost a location is served without the credential it had; detail names the location that still has it ("kept at …")
regained the credential is back
removed the location disappeared from the site
stripped_copy_seen a file without a credential, checked by anyone, matched this asset

asset.lost and asset.stripped_copy_seen are also webhook events.

Public matching

curl -s -X PATCH https://api.c2pa.design/v1/assets/0199b1f5-6a1b-7c2d-8e3f-4a5b6c7d8e9f \
  -H "authorization: Bearer $C2PA_API_KEY" \
  -H "content-type: application/json" \
  -d '{"public_match":true}'

With public_match on, the public verifier tells someone checking a stripped copy that it matches an asset first seen on a date, signed by a signer. Your organisation and URLs are never shown. It is a perceptual match, reported as such, never as proof of origin.

Export

curl -s https://api.c2pa.design/v1/assets/export \
  -H "authorization: Bearer $C2PA_API_KEY" -o assets.csv

One row per location: location, source, sha256, credential_status, signer, generator, source_category, four_cs_score, first_seen, last_checked, http_status, removed.

Register from your pipeline

Check the file yourself (the c2pa-check CLI or POST /v1/verifications) and send the result with where the asset lives. Idempotent per location and hash, up to 500 items per call.

curl -s https://api.c2pa.design/v1/assets \
  -H "authorization: Bearer $C2PA_API_KEY" \
  -H "content-type: application/json" \
  -d '{"items":[{"location":"https://cdn.example.com/gen/42.png","source":"track","result":{ … }}]}'

POST /v1/assets/sync takes up to 5,000 hashes and returns the ones the inventory does not have yet, so a client only sends what is new.

Track a repo with the agent skill

Install the skill once (see Connect an AI agent), then ask your agent to "track my assets", or run it yourself from the repo root:

node <skill>/scripts/track.mjs

It checks every media file offline with the CLI and writes .c2pa/assets.lock.json (path → sha256, status, signer). Later runs print only what changed, and exit 1 when a file lost a valid credential, which makes it a CI gate.

To send the repo to the inventory, add --push with an API key:

C2PA_API_KEY=… node <skill>/scripts/track.mjs --push
C2PA_API_KEY=… node <skill>/scripts/track.mjs --push --project 0199b1f2-5d0c-7e1f-a2b3-c4d5e6f7a8b9

It calls POST /v1/assets/sync with the hashes and then POST /v1/assets for the unknown ones only: hashes and reports, never the files. Run it again after every batch of new art.