Steward API
Get an API key, sign in with it, check files from your own systems and sign out.
The Steward API lets your own systems check files and read verdicts without opening the website. It does the same work as the Steward page in your account, under the same plan and the same limits.
Who can use it
The API comes with a Snapshot (the one-off audit) and with a Subscription. The free Pilot is web upload only: it has no API and no keys. Your plan decides what the API allows:
| Pilot | Snapshot | Subscription | |
|---|---|---|---|
| API and API keys | No | Yes | Yes |
| Files | 1,000 in 14 days | Up to 25K or 100K in total, as ordered | 50K (Starter), 500K (Growth) or 5M+ (Scale) a month |
| Provenance Reports | Up to 5 | One for every file | On request |
| Batch summary | No | Yes | No |
| Alerts | No | No | Yes |
When your plan changes, the API follows at once: buy a Snapshot or subscribe and your keys start working, cancel and the limits of what you still hold apply. You never need a new key for that.
Get an API key
- Sign in at nordath.com/partners and open Steward in your account.
- In API access, type a name for the key, for example
CI, and select Create key. - Copy the key straight away. It is shown once and Nordath cannot show it again. If you lose it, revoke it and create another.
A key looks like stw_1a2b3c4d_.... Only an owner, an admin or a billing manager of your company can create or revoke keys. A company can hold ten active keys at most, and a key works until you revoke it.
Treat a key like a password. Keep it in your secrets manager or an environment variable, never in source code, a web page or a mobile app.
Sign in with a key
The API has no login step. Send your key as a Bearer token in the Authorization header of every request:
export STEWARD_KEY=stw_1a2b3c4d_...
curl -H "Authorization: Bearer $STEWARD_KEY" https://nordath.com/api/steward/v1/meGET /me answers with your plan, what it includes and how much of your allowance you have used:
{
"plan": "subscription",
"channel": "api",
"planEndsAt": null,
"features": { "api": true, "batchSummary": false, "alerts": true, "reportOnEveryFile": false },
"usage": { "files": 1240, "maxFiles": 50000, "per": "month", "reports": 3, "maxReports": null }
}If it answers 401, the key is missing, mistyped or revoked, see Troubleshooting.
Sign out and revoke
There are two kinds of access, and each ends differently:
- Your sign-in on the website is a session in your browser. Select Sign out in the account menu to end it. Signing out does not touch your API keys.
- An API key works until you revoke it. To cut off a system, a former colleague or a leaked key, open Steward, find the key under API access and select Revoke. It stops working at once, and the next call with it answers
401.
Rotate a key without a gap: create the new key, deploy it, check that the old one shows no recent use, then revoke the old one.
Check files
Send files in one call. Steward answers at once and checks them in the background, so you then ask for the result.
# 1. Upload. Repeat -F files=@... for each file. Answers 202 with the batch and its files.
curl -H "Authorization: Bearer $STEWARD_KEY" \
-F name="Campaign May" \
-F [email protected] -F [email protected] \
https://nordath.com/api/steward/v1/batches
# 2. Read the batch until nothing is pending.
curl -H "Authorization: Bearer $STEWARD_KEY" https://nordath.com/api/steward/v1/batches/BATCH_ID
# 3. Read one file's verdict.
curl -H "Authorization: Bearer $STEWARD_KEY" https://nordath.com/api/steward/v1/files/FILE_IDA file's status is queued, processing, done or error. Once it is done, verdict is one of labeled, not_labeled or invalid, with the reasons behind it, see Steward for what each verdict means.
{
"file": {
"id": "0b6f...",
"name": "banner.jpg",
"status": "done",
"verdict": "labeled",
"labelKind": "c2pa",
"declaration": "ai_generated",
"reasons": [{ "code": "signingCredential.untrusted", "message": "The signer is not on a trust list." }],
"report": "none"
}
}Files are checked and then deleted: Steward keeps the verdict, the reports and the alerts, not your file. Each file can be up to 100 MB.
A short script
import fs from "node:fs/promises";
const base = "https://nordath.com/api/steward/v1";
const headers = { Authorization: `Bearer ${process.env.STEWARD_KEY}` };
const form = new FormData();
form.append("files", new Blob([await fs.readFile("banner.jpg")]), "banner.jpg");
const { batch } = await (await fetch(`${base}/batches`, { method: "POST", headers, body: form })).json();
let files;
do {
await new Promise((r) => setTimeout(r, 2000));
const body = await (await fetch(`${base}/batches/${batch.id}`, { headers })).json();
files = body.files;
} while (files.some((f) => f.status === "queued" || f.status === "processing"));
for (const f of files) console.log(f.name, f.verdict);Reports, summaries and alerts
| Call | What it does |
|---|---|
POST /files/{id}/report | Asks for the Provenance Report of a file. Answers 201 when created and 200 when it already existed. Counts against the Pilot's 5. |
GET /files/{id}/report | Downloads it as JSON. Add ?format=text for plain text and ?download=1 to save it as a file. Answers 404 until it has been requested. |
GET /batches/{id}/summary | The batch summary (Snapshot). Add ?format=text for plain text. |
GET /alerts | Files that came back not_labeled or invalid (Subscription). Add ?unread=1 to see new ones, ?limit= for up to 200. |
POST /alerts/read | Marks alerts as read: { "ids": ["..."] } or { "all": true }. |
All endpoints
The base address is https://nordath.com/api/steward/v1. Every error answers { "error": { "code": "...", "message": "..." } }.
| Method and path | What it does |
|---|---|
GET /me | Your plan, features and usage. |
POST /batches | Upload files (multipart field files, repeated, and an optional name). |
GET /batches | Your batches, newest first, with counts per verdict. |
GET /batches/{id} | One batch with its files and verdicts. |
GET /batches/{id}/summary | The batch summary. |
GET /files/{id} | One file: status, verdict, reasons. |
POST /files/{id}/report, GET /files/{id}/report | Request and download the Provenance Report. |
GET /alerts, POST /alerts/read | Alerts and marking them read. |
Keys are created and revoked from your account only. A key cannot create another key.
Limits
- Your plan's allowance is enforced on every upload. A request that would go over it is refused whole, with
402. - Wrong keys are slowed down: after 30 invalid keys in five minutes from one address, calls from it answer
429for a while. Valid calls are never counted. - Each file can be up to 100 MB.
See Troubleshooting when a call does not do what you expect.