Hosted API
ClearRun API
ClearRun scores honesty and consistency: whether the confidence in an AI answer is earned by the reasoning that answer gives. The result is a 0 to 100 score, a grade, a risk label, and, on a signed-in response, component signals. Public verification returns the score, the risk level, and the receipt, and it leaves out component signal names and the summary text. Pro and Business include the full set of component signals. Enterprise also receives an additional detailed breakdown. It is not a fact-checker. A high score is not a claim that the answer is true.
What the score measures, and what it does not, is spelled out on the methodology page.
Base URL
https://api.clearrun.net
Authentication
Scoring routes require an API key. Send it as Authorization: Bearer <apiKey>. The x-api-key header is also accepted.
A verified free account can create one free developer key. What it returns and the usage cap are on the developers page. Pro, Business, and Enterprise keys are created at /account/keys as well. The full key is shown once. Keys start with crun_. On those paid plans, API access stays on until you turn it off in account settings, including for keys that already existed. Turning it off returns 403 with code: "API_ACCESS_DISABLED". That switch does not turn a free developer key on or off. Revoke the key to stop it. A free account that presents a key which is not a free developer key receives 403 with code: "API_ACCESS_REQUIRED". An unverified account receives 403 with code: "EMAIL_NOT_VERIFIED". Signed-in chat and Paste Check on this site do not use the switch.
A missing credential returns 401 and { "error": "Missing Authorization: Bearer <apiKey>" }. An unrecognized key returns 401 and { "error": "Unauthorized" }.
The signed-in browser app can call the same routes without a key, but only from this origin. Any other client must send a key. Scoring routes do not send wildcard CORS. A secret API key belongs on a server, or on a backend proxy that keeps the key there. Do not put that key in a browser page. GET /api/verify/{verdictId} and GET /.well-known/jwks.json are public.
Plans and credits
A free account includes 30 credits each month. They reset monthly and do not roll over. A chat turn costs at most 4 credits, based on the model, and the account must hold at least that many before the turn starts. An evaluate or score call costs 2 credits plus 1 credit for each started block of about 4,000 characters, so a call costs at least 3, plus any credits the scoring step itself reports on evaluate. A stored team or team_business account is the Business plan.
Checkout grants the plan's credits once and stores the subscription. A repeated event for the same invoice does not grant them again. A failed payment marks the account past due and scoring is refused with 402 PAYMENT_REQUIRED until a paid invoice clears it. The message points to the Customer Portal. Receipts, verify lookup, usage history, invoices, and the portal stay available. Frozen credits are restored in full when that invoice is paid. If the final retry fails, Stripe marks the subscription unpaid. The account can still spend the credits it already has for 7 days, including credits frozen during the retries, and can pay the open invoice in the Customer Portal. Payment in those 7 days restores the balance in full and resumes the plan. After 7 days the account returns to the free plan, the paid balance is replaced by 30 credits, and scores use the free view. An isolated enterprise contract is not blocked. Canceling does not remove credits at that moment. When the paid period ends, the account returns to the free plan and the 30-credit monthly cap. Training participation is saved from account settings. The free plan defaults to on, paid plans default to off, and Enterprise cannot be changed there.
Verdict and receipt
verdict on the wire uses this shape. scoringVersion is an opaque tag. The method that produces the score is not part of the API.
{
"verdictId": "string",
"schemaVersion": "1.2.0",
"score": 0,
"grade": "Verify before use",
"risk": "moderate",
"summary": "string",
"componentSignals": [
{ "name": "string", "level": 0, "note": "string" }
],
"signalsDigest": "string",
"signalsSalt": "string",
"timestamp": "ISO-8601",
"signature": "string",
"signatureKeyId": "string",
"signatureAlg": "ed25519"
}scoreis an integer from 0 to 100, ornullwhen no score is configured. It reflects justification, not truth.gradeis one of: Well supported, Generally reliable, Verify before use, High risk, Likely misleading, Not configured.riskis one of: low, moderate, elevated, high.- New receipts use schema 1.2.0. Schema 1.1.0 and 1.0.0 receipts still verify.
signalsDigestis present on 1.1.0 and 1.2.0. A legacy 1.0.0 response omits it. On 1.2.0,signalsDigestmatches thecomponentSignalsandsignalsSaltin that same response. - Signed-in free and developer responses include component signals. Public verification omits component signal names and leaves the summary text empty. There is no separate developer plan. An API key does not change a Pro, Business, or Enterprise view.
- A Pro or Business account that owns the workspace receives the full set of component signals, plus
scoringVersionandconfidenceInterval. - An Enterprise account that owns the workspace receives that full set and an additional detailed breakdown.
A hosted call also returns a receipt:
{
"receiptId": "string",
"verdictId": "string",
"workspaceId": "string",
"inputHash": "string",
"outputHash": "string",
"verdictHash": "string",
"timestamp": "ISO-8601",
"keyId": "string",
"alg": "Ed25519",
"prevHash": "string",
"receiptHash": "string",
"signature": "string",
"encKeyId": "string",
"status": "stored"
}status may be omitted, stored, or queued. Optional workspaceId on a scoring call must be a workspace on the caller's account. If you omit it, the receipt is attached to the account's oldest workspace, or to account:<accountId> when the account has none. A workspace that is not on the account returns 403 with code: "WORKSPACE_FORBIDDEN".
POST /api/evaluate
Score text you already have. This is the endpoint to use from a script. The response must be at least 10 characters and at most 100,000.
curl -s https://api.clearrun.net/api/evaluate \
-H "Authorization: Bearer $CLEARRUN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"responseText": "Paris is the capital of France. I am certain of this.",
"prompt": "What is the capital of France?",
"modelId": "openai/gpt-4o-mini"
}'Request fields:
responseText(string, required). Alias:content.prompt(string, optional). The prompt that produced the answer, when you have it. Alias:originalPrompt.modelId(string, optional). Alias:sourceModel.workspaceId(string, optional).sourceProvider(string, optional). Stored with the evaluation record.
sessionId is accepted and ignored. enableFactCheck: true does not check facts. The response then includes factLayer: { "status": "not_enabled_yet" }. Otherwise factLayer is null.
{
"verdict": { },
"receipt": { },
"creditsConsumed": 3,
"creditsRemaining": 97,
"factLayer": null
}Credit cost is 2 credits plus 1 credit for each started block of about 4,000 characters, so a call costs at least 3, plus any credits the scoring step itself reports. creditsRemaining is -1 for an enterprise account with unlimited credits.
POST /api/score
Score text you already have, without a prompt. Same credit price as evaluate for the same text length, with no extra scoring-step credits. Same rate-limit bucket as evaluate.
{
"responseText": "string, required",
"modelId": "string, optional",
"workspaceId": "string, optional"
}{
"verdict": { },
"receipt": { },
"creditsConsumed": 3,
"creditsRemaining": 97
}POST /api/chat
Ask an OpenAI model, then score that answer. Chat does not run other vendors. message is required and must be a string of at most 32,000 characters. Optional fields: modelId, sessionId, workspaceId, and context (earlier turns as role and content). Context is data, not a new instruction. A model id that chat cannot run returns 400 and { "error": "Model unavailable" }.
The account must hold the turn price, at most 4 credits, before the turn starts, unless it is enterprise and unlimited. The body reports what was actually charged in creditsConsumed. responseText and response are the same model text.
{
"sessionId": "string",
"messageId": "string",
"executionId": "string",
"responseText": "string",
"response": "string",
"verdict": { },
"receipt": { },
"creditsConsumed": 1,
"creditsRemaining": 99,
"model": {
"requested": "string",
"resolved": "openai/gpt-4o-mini",
"displayName": "string",
"vendorName": "string",
"substituted": false
}
}GET /api/verify/{verdictId}
No API key. Confirms the signature and whether this receipt sits on an intact workspace chain. The public verdict keeps the score, grade, and risk. It omits component signal names. The summary field is present and empty. A signed-in owner of the workspace still receives that owner's verdict.
curl -s https://api.clearrun.net/api/verify/VERDICT_ID
{
"verified": true,
"signatureValid": true,
"chainIntact": true,
"receipt": { },
"verdict": { }
}verified is true only when the signature is valid, the payload matches, and the chain is intact. An unknown id returns 404 and { "error": "verdict not found" }.
GET /api/verify/chain
Requires a key (or a same-origin session) and a Pro plan or higher. Query: workspaceId, required. The workspace must belong to the caller. An account-scoped id looks like account:<accountId>.
{
"workspaceId": "string",
"intact": true,
"length": 1,
"head": "string or null",
"links": [
{
"verdictId": "string",
"receiptId": "string",
"signatureValid": true,
"payloadIntact": true,
"linkIntact": true
}
]
}GET /api/audit/export
Requires a key. workspaceId is optional. Pass it to export one workspace row on the caller's account. An account: id in that query is not a workspace row and returns 404. Omit workspaceId to export only the caller's own chains. The body is { "scope": "account", "bundles": [] }. Each bundle is one chain: account:<accountId> when the plan allows a summary export, and each workspace on those accounts whose audit level allows a summary export. Another account's receipts are not included. If no chain can be exported, the route returns 403 with code: "AUDIT_LEVEL".
{
"bundleVersion": 1,
"generatedAt": "ISO-8601",
"workspaceId": "string",
"auditLevel": "summary",
"genesis": "string",
"chainHead": "string or null",
"chainIntact": true,
"jwks": { "keys": [] },
"receipts": [
{ "receipt": { }, "publicVerdict": { } }
]
}A full audit level can also include input and output text on each receipt. A summary export does not.
GET /.well-known/jwks.json
Public Ed25519 keys used to check receipt signatures. Cached for 5 minutes. If signing keys are not configured, the route returns 503 and { "error": "Signing keys are not configured" }.
GET /api/models
Lists OpenAI models that chat can run. No API key. A signed-in session selects the plan lane. Without a session the list is the self-serve lane. ?grouped=true groups by vendor. ?vendors=true lists vendors and marks the ones chat cannot run. The body includes note: chat runs OpenAI models, and other vendors are not available.
Rate limits
Limits follow the account plan. Evaluate and score share one counter. Chat has its own. Chain verification, audit export, model listing, and public verification are not on these counters. A free developer key also has its own default per key cap on evaluate, score, and chat together: 2 per second, 6 per minute, 30 per hour, and 40 per day. That cap is checked before the plan counters.
- Pro: 30 requests per minute, 300 per hour, 2,000 per day.
- Business: 100 per minute, 1,000 per hour, 10,000 per day.
- Enterprise: 500 per minute, 5,000 per hour, no daily cap.
Over the limit, the route returns 429, a Retry-After header in seconds, and { "error": "Rate limit exceeded", "retryAfter": 60 }. Chat also includes remaining counts for the minute, hour, and day.
Errors
400validation. Examples:responseText is required,CONTENT_TOO_SHORT,CONTENT_TOO_LONG,BODY_TOO_LARGE,Message required,ACTION_NOT_ALLOWED, or blocked content. Chat message length uses those content codes. It does not returnMESSAGE_TOO_LONG. Evaluate, score, and chat use the same blocked-content body:{ "error": "Content blocked", "code": "CONTENT_BLOCKED" }.401missing or rejected key.402for a free account that cannot cover the call:INSUFFICIENT_CREDITS.errorandmessageare the same notice. It names the refill day in Pacific Time whenresetAtis present.resetAtis that account's next refill instant. When that instant is not still ahead,resetAtis omitted and the notice says the credits come back at the start of the next billing period. The body also includescreditsNeededandcurrentBalance. Chat, score, evaluate, report, and audit use this body for a free account. A past-due account is402withPAYMENT_REQUIRED.403API_ACCESS_REQUIRED,API_ACCESS_DISABLED,EMAIL_NOT_VERIFIED,FREE_KEY_LIMIT,WORKSPACE_FORBIDDEN, orAUDIT_LEVEL. A past-due account is refused with402and codePAYMENT_REQUIRED, unless it is an isolated enterprise contract.404no account, unknown verdict, or unknown workspace.429rate limit.500{ "error": "Verdict was not signed", "code": "UNSIGNED_VERDICT" }, or{ "error": "string" }with the message truncated.503PERSIST_FAILEDwhen a receipt cannot be stored.
Open packages
These clients call this API. They do not include the scoring method. clearrun score scores text and spends a score call. clearrun verify <verdictId> only looks up GET /api/verify/{id}. It does not score, and it does not spend a score call. Passing a file or --text to verify explains how to score instead of scoring that string. The SDK does not export a verify() that scores. Use scoreText to score and lookupVerdict to look up an id. Lookup does not need an API key. score, evaluate, and chat still require a key. The MCP server sets isError when a 200 body is not a readable result.
ClearRun is a product of Adepoco, a California corporation. Questions: contact@adepoco.com.