For developers and platforms
Sign and check images from your own systems.
A versioned REST API under /v1, described in OpenAPI 3.1. POST requests take idempotency keys, errors use problem+json, webhooks are signed and retried, and free test workspaces let you build before you buy.
Full API reference: [API reference URL]. Building for a newsroom CMS? Read the publisher story first.
Sign
Four calls from file to credentials
The Core API lives at https://api.originmark.tech. Authenticate with a bearer API key.
- createUpload returns a short-lived presigned URL.
- PUT the bytes to that URL with the headers it returns.
- createAsset registers the file and runs pre-flight checks. Its
idis the asset ID. - signAsset attaches claims, picks a signing provider, signs and publishes.
The creator ID comes from GET /v1/creators. The sign response includes the verifyUrl and a badgeSnippet you can drop into a page.
# 1. Ask for an upload URL (createUpload)
curl -X POST https://api.originmark.tech/v1/uploads \
-H "Authorization: Bearer $ORIGINMARK_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"fileName": "campaign_still.png",
"mediaType": "image/png",
"byteSize": 4200000
}'
# returns objectKey, url, method (PUT), headers,
# expiresAt
# 2. PUT the file bytes to the returned url,
# sending the returned headers
# 3. Register the file (createAsset)
curl -X POST https://api.originmark.tech/v1/assets \
-H "Authorization: Bearer $ORIGINMARK_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"objectKey": "<objectKey from step 1>",
"fileName": "campaign_still.png",
"mediaType": "image/png",
"byteSize": 4200000
}'
# returns id, displayId, preflight[]
# 4. Sign it (signAsset), using the id from step 3
curl -X POST \
https://api.originmark.tech/v1/assets/$ASSET_ID/sign \
-H "Authorization: Bearer $ORIGINMARK_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"claims": {
"creatorId": "<creator id>",
"organization": "Example Media",
"tool": "Example Editor 1.0",
"license": "All rights reserved",
"aiUse": "none"
},
"protection": {
"watermark": true,
"transparencyLog": true
},
"provider": "originmark"
}'
# returns assetId, sha256, manifestUrn, provider,
# issuer, watermarkPayload, logEntry, verifyUrl,
# badgeSnippet
Check
Checking needs no key
The Verification API at https://verify.originmark.tech needs no authentication and is free. It allows 30 checks a minute per IP address. Uploads can be up to 200 MB, and files are deleted after each check.
Every check returns one result with an outcome: verified, ai_generated, no_credentials, altered or revoked. See what each answer means.
The other fields are file (name, sha256), claims, history, detection (score from 0 to 100 with bandLow and bandHigh, or null), alteration (or null), technical and checkedAt.
# Check an uploaded file (verifyFile)
curl -X POST https://verify.originmark.tech/v1/verify \
-F "file=@campaign_still.png"
# Or check a public URL
curl -X POST https://verify.originmark.tech/v1/verify \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/photo.jpg"}'
# Look up a known asset ID or file hash
# (getVerification)
curl https://verify.originmark.tech/v1/verify/$REF
# Report a wrong or harmful result
# (reportVerification)
curl -X POST \
https://verify.originmark.tech/v1/verify/$REF/reports \
-H "Content-Type: application/json" \
-d '{"reason": "wrong_result", "detail": "optional note"}'
Operations
The calls you will use most
These are operation IDs and paths from the OpenAPI files. The Core API is at api.originmark.tech and the Verification API is at verify.originmark.tech. The Core API has many more operations for policies, identity, audit and workspace settings.
| Operation | Request | What it does |
|---|---|---|
| Core API | ||
| createUpload | POST /v1/uploads | Get a presigned URL to upload a file |
| createAsset | POST /v1/assets | Register an upload and run pre-flight checks |
| signAsset | POST /v1/assets/{assetId}/sign | Attach claims, choose a provider, sign and publish |
| getAsset | GET /v1/assets/{assetId} | Read an asset with its status, claims and evidence |
| listAssets | GET /v1/assets | List and filter the registry |
| getAssetManifest | GET /v1/assets/{assetId}/manifest | The active C2PA manifest as JSON |
| revokeAsset | POST /v1/assets/{assetId}/revoke | Revoke credentials with a reason |
| reinstateAsset | POST /v1/assets/{assetId}/reinstate | Undo a revocation within 24 hours |
| previewDisclosure | POST /v1/disclosures/preview | The label viewers will see for a given AI use |
| listReviews | GET /v1/reviews | Work the review queue |
| decideReview | POST /v1/reviews/{caseId}/decision | Label, accept or remove a reviewed file |
| listAuditEvents | GET /v1/audit/events | Query the audit log |
| createEvidencePack | POST /v1/evidence-packs | Build a signed evidence pack |
| createApiKey | POST /v1/api-keys | Create a key with scopes (shown once) |
| createWebhookEndpoint | POST /v1/webhook-endpoints | Subscribe an HTTPS endpoint to events |
| testWebhookEndpoint | POST /v1/webhook-endpoints/{endpointId}/test | Send a signed test delivery |
| Verification API | ||
| verifyFile | POST /v1/verify | Check an uploaded file or a public URL |
| getVerification | GET /v1/verify/{ref} | Result for a known asset ID or file hash |
| reportVerification | POST /v1/verify/{ref}/reports | Report a wrong or harmful result |
Conventions
Keys, retries and errors work the same way everywhere
API keys with scopes
Keys look like vm_live_… or vm_test_…. The full secret is shown once when you create it, so store it in a secrets manager. The workspace comes from the key, never from the request body. The scopes are assets:sign, assets:read, assets:revoke, verify:read, review:write, policies:write, identity:write, audit:read and admin.
Idempotency keys
Send an Idempotency-Key header on POST requests. For 24 hours, a repeat with the same key and body replays the stored response and sets Idempotent-Replayed: true. The same key with a different body is rejected with 422, and a repeat while the first call is still running returns 409. Retried signing requests are never billed twice.
Errors as problem+json
Errors use RFC 9457 application/problem+json with type, title, status and detail. The type is a URL under errors.originmark.app. Validation errors add a list of the fields at fault.
Rate limits
The Core API limits calls per workspace each minute and returns a 429 with Retry-After. The public check allows 30 checks a minute per IP address and also answers 429 when you go over.
Strict, versioned shapes
Everything sits under /v1. Response schemas are strict and timestamps are RFC 3339 UTC, so a client generated from the OpenAPI file stays accurate.
Paging and long jobs
Lists return newest first with a cursor. Exports, discards and evidence packs return 202 with a reference you can poll or download later.
Webhooks
Hear about it when it happens
Create an endpoint with createWebhookEndpoint (name, an HTTPS URL on a public host, and the events you want). Events include asset.signed and asset.revoked, and you can match a group such as asset.*.
- The signing secret (
whsec_…) is shown once, when you create the endpoint. - Each delivery is JSON with
id,type,createdAt,workspaceIdanddata. Theidstays the same across retries, so use it to deduplicate. - Any 2xx response counts as delivered. A failed delivery is retried with growing delays.
- The test button sends a signed
webhook.testand shows the HTTP status and latency.
Webhooks come with Starter and up.
Each request carries a OriginMark-Signature header like t=1730000000,v1=…. The v1 value is an HMAC-SHA256 of t, a dot and the raw body, keyed with your endpoint secret. Reject a timestamp more than five minutes old.
// rawBody: the request body exactly as received
import { createHmac, timingSafeEqual } from 'node:crypto';
export function isValidSignature(rawBody, header, secret) {
const parts = Object.fromEntries(
header.split(',').map((p) => p.split('=')),
);
const age = Math.abs(Date.now() / 1000 - Number(parts.t));
if (!(age <= 300)) return false;
const expected = createHmac('sha256', secret)
.update(parts.t + '.' + rawBody)
.digest('hex');
const a = Buffer.from(expected);
const b = Buffer.from(parts.v1 ?? '');
return a.length === b.length && timingSafeEqual(a, b);
}
Test workspaces
Build the whole flow before you pay
The Sandbox plan is free, with 100 images a month and one API key. Test keys (vm_test_…) sign with a built-in test certificate, so no partner certificate is spent on test data.
That test certificate is not on the C2PA trust list. Signatures check out cryptographically, but third-party checkers show the signer as untrusted. In production, you choose a signing provider in the provider field: originmark, digicert, truepic or byok.
Using your own certificate and a key held in your cloud key service or hardware module is an Enterprise feature. See the plan comparison or the API and admin features.
Plan your integration with us.
Tell us about your upload flow, your volume and the events you need. We will help you map them to the API.