← Docs

Quickstart

From nothing to a verified URL in two minutes.

1. Get a key

Sign in at app.c2pa.design, open API keys, create one. The key is shown once and never again — it is stored as a salted hash.

Keys look like c2pa_live_… or c2pa_test_…. A test key costs no quota and runs the same engine, so you can integrate before you decide on a plan.

One copyable block per language (curl, TypeScript, Go, Python) that verifies a sample by URL and by upload and handles 402 and 429: docs.c2pa.design/quickstart.

2. Verify a URL

curl -s https://api.c2pa.design/v1/verifications \
  -H "authorization: Bearer $C2PA_API_KEY" \
  -H "content-type: application/json" \
  -d '{"url":"https://c2pa.design/samples/openai-signed.png"}'
{
  "id": "0199b1f2-6c1e-7a3b-9d4e-5f6a7b8c9d0e",
  "status": "completed",
  "source": "url",
  "http": { "status": 200, "content_type": "image/jpeg" },
  "result": {
    "schema_version": "1",
    "credential": { "present": true, "valid": true, "trusted": true, "status": "valid_trusted" },
    "signer": { "organization": "OpenAI Inc.", "on_trust_list": "official" },
    "source": { "digital_source_type": "trainedAlgorithmicMedia", "category": "ai-generated" },
    "engine": { "trust_list_version": "2026-08-13-a1b2c3d4e5f6" }
  }
}

3. Read one field

result.credential.status is the only field you should branch on:

Value Meaning
absent No Content Credential. Normal for most files.
present_invalid A record exists and the bytes changed after signing.
valid_untrusted Signature intact, signer not on the trust list we used.
valid_trusted Signature intact and the signer chains to engine.trust_list_version.
error We could not look: an unsupported or unreadable file.

One sample per value, served by this site: openai-signed.png (valid_trusted), camera-capture.jpg and ai-declared.jpg (valid_untrusted), changed-after-signing.jpg (present_invalid), stripped.jpg (absent), unsupported.bmp (error).

There is never a verdict like "real" or "fake".

4. Without a key

POST /v1/url-checks does the same thing anonymously, rate-limited per IP. It is what the free URL checker calls, and it is fine for a proof of concept.

curl -s https://api.c2pa.design/v1/url-checks \
  -H "content-type: application/json" \
  -d '{"url":"https://c2pa.design/samples/openai-signed.png"}' | jq .result.credential

5. Next