Access and usage
Send your operator-issued API key as a Bearer token from a server. Keys have explicit scopes, an activation state, optional expiry and a monthly request allowance. Self-service billing is not enabled.
Successful verification responses, including unknown results, consume one request. Invalid input is rejected before monthly usage is reserved. Service failures attempt to refund the reservation. A storage outage during a refund requires operator reconciliation. There is a separate burst limit of 120 authenticated requests per minute per account.
Verify a digest or image
curl https://YOUR-HOST/api/verify -H "Authorization: Bearer $ZORAI_API_KEY" -H "Content-Type: application/json" -d '{"imageHash":"<64 lowercase hex characters>"}'POST /api/verify accepts either imageHash or assetBase64. If both are supplied, they must match. File inspection supports PNG/JPEG up to 3 MB. Use GET /api/verify?id=DIGEST for a digest lookup.
File bytes are processed in memory. The response includes the digest, provenance outcome, network, usage and available evidence. File requests also return untrusted metadata observations; presence of a marker is never sufficient proof.
Interpret outcomes
| Status | Meaning |
|---|---|
attested | An approved issuer's signature and claim match the registry digest and model. isAiGenerated: true refers to that attestation. |
unknown | No registry record. isAiGenerated: null; human origin is not established. |
unvalidated_record | A record exists with unsupported evidence. Origin remains unknown. |
untrusted_attestation / mismatch | Evidence could not establish approved provenance. Origin remains unknown. |
All completed lookups return HTTP 200. Unavailable RPC or evidence services return a service error, never a fabricated “not found.” Exact-file matching does not survive resizing, recompression, screenshots or stripped metadata.
Approved issuer registration
Verification customers do not need registration permission. Publishing additionally requires an approved signing identity, a register-scoped key bound to that issuer, and a daily registration-attempt allowance.
const { prepareRegistration, ZorAIClient } = require('./sdk');
const prepared = await prepareRegistration({
bytes: originalPngOrJpeg,
signer: issuerWallet,
issuerId: 'approved-studio', source: 'approved-source',
model: 'model-version', chainId: 84532,
registryAddress: process.env.REGISTRY_ADDRESS,
});
const client = new ZorAIClient({
baseUrl: process.env.ZORAI_BASE_URL,
apiKey: process.env.ZORAI_API_KEY,
});
const job = await client.register(prepared);
// Save prepared.bytes unchanged. Publish after status === 'confirmed'.
const status = await client.registration(prepared.evidence.claim.imageHash);The repository's Node SDK inserts a version 1 ZorAI marker containing issuerId and nonce into PNG tEXt or JPEG XMP. It then hashes the final bytes and signs an EIP-712 claim containing imageHash, issuerId, source, model, issuedAt and nonce, using a domain bound to the chain and registry address. It is a custom signed attestation format.
POST /api/register accepts {assetBase64, evidence}. Claims must be issued within 24 hours. The server verifies the issuer, signature, marker and byte digest before publishing evidence to IPFS and submitting the registry transaction.
HTTP 202 means submitted, not confirmed. Poll GET /api/registration?id=DIGEST with the same account until confirmed or failed. Retry the identical POST to recover an uncertain broadcast; daily attempt limits also apply to retries. A different claim for a reserved digest returns 409. Failed transactions require operator investigation. Never publish a modified copy of the prepared file.
Existing C2PA credentials are not independently validated yet. The SDK rejects recognized source credentials before modification; the parser is deliberately limited. Do not use this workflow to rewrite C2PA-signed media. No direct Midjourney, Sora or OpenAI integration is claimed.
Other endpoints
GET /api/account: authenticated account ID, scopes and monthly usage.GET /api/status: configured network and pilot mode; not a dependency health check.POST /api/public/verify: public hash-only checks, 6/minute per client address and a shared 5,000/day cap. Designed for interactive checks.
Errors
Errors contain {error: {code, message}, requestId}. Keep the request ID when reporting a problem. 400/413/415: input error; 401: invalid key; 403: missing permission; 409: registration conflict or busy publisher; 422: invalid evidence; 429: quota; 502/503: dependency or configuration failure. Retry transient failures with backoff. Do not blindly retry a paid verification after an ambiguous client timeout because it may have completed.
Independent inspection and trust
Read the registry using the contract address and chain in the response. Retrieve the evidence CID and verify its EIP-712 signature against your own trusted issuer policy. A signature proves control of a key; approval of the organization and its source capture process remains a trust decision.
Blockchain entries and published evidence are public. Keep personal data and prompts out of claims. See privacy and limitations.