API docs
One page. Every example is a curl command you can paste.
Start
Sign up with email or GitHub and create a key in the dashboard. The key is shown once. Send it as a bearer token (or as x-api-key).
export ONESHOT_API=https://api.qurren.com
export ONESHOT_API_KEY=osk_live_… # from the dashboard
curl $ONESHOT_API/v1/facts -H "Authorization: Bearer $ONESHOT_API_KEY"Every answer is JSON. Successful calls carry x-oneshot-billed (0 for a free call, 1 for a billed one), x-oneshot-free-calls-left, x-ratelimit-limit and x-ratelimit-remaining.
GET/v1/facts
Today's values agents get wrong from memory. Each group has a source and checkedAt.
topic: all, models, runtimes, github-actions, retirements (default all = models, runtimes and GitHub Actions; retirements lists model shutdown dates).
curl "$ONESHOT_API/v1/facts?topic=models" -H "Authorization: Bearer $ONESHOT_API_KEY"
{
"topic": "models",
"generatedAt": "2026-12-02T12:47:48.256Z",
"models": {
"anthropic": {
"newest": ["claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5", …],
"notes": "Most capable: claude-opus-5-5 …",
"source": "official SDK model list (npm, latest)",
"checkedAt": "2026-12-02"
},
"openai": { … }
}
}curl "$ONESHOT_API/v1/facts?topic=github-actions" -H "Authorization: Bearer $ONESHOT_API_KEY"
# → "githubActions": { "actions/checkout": { "major": 7, "uses": "actions/checkout@v7", "source": "…/releases", "checkedAt": "…" }, … }
curl "$ONESHOT_API/v1/facts?topic=runtimes" -H "Authorization: Bearer $ONESHOT_API_KEY"
# → "runtimes": { "node": { "ltsMajor": 26, "docker": "node:26-alpine …", "source": "https://endoflife.date/nodejs", … }, "python": { … } }GET/v1/packages/{name}
Current version, install command, how likely an agent is to write an old major (risk), and known agent mistakes. npm by default; add ?ecosystem=pypi or write pypi:name. Scoped npm names work as they are.
curl $ONESHOT_API/v1/packages/@supabase/supabase-js -H "Authorization: Bearer $ONESHOT_API_KEY"
curl "$ONESHOT_API/v1/packages/pydantic?ecosystem=pypi" -H "Authorization: Bearer $ONESHOT_API_KEY"
{
"package": "@supabase/supabase-js",
"ecosystem": "npm",
"exists": true,
"latest": "…",
"latestMajor": 2,
"install": "npm install @supabase/supabase-js@latest",
"risk": "low",
"majorSince": "…",
"previousVersion": "…",
"deprecated": null,
"agentNotes": [],
"advice": "Current version: … Install with: …",
"card": null,
"checkedAt": "…",
"sources": { "version": "https://registry.npmjs.org", "history": "https://deps.dev" }
}A name that doesn't exist returns "exists": false (agents invent package names). card will hold the package's API card (how to use and test it) as cards ship.
POST/v1/check
Send the files of a project; get back outdated dependency majors, retired or old AI models in code, old GitHub Actions and end-of-life runtimes, each with the line and the fix. Run it before your agent says “done”.
curl $ONESHOT_API/v1/check \
-H "Authorization: Bearer $ONESHOT_API_KEY" \
-H "content-type: application/json" \
-d '{
"files": {
"package.json": "{\"dependencies\": {\"openai\": \"^3.0.0\"}}",
".github/workflows/ci.yml": "steps:\n - uses: actions/checkout@v3\n",
"src/ai.ts": "const model = \"gpt-4o\""
}
}'
{
"ok": false,
"summary": { "errors": 1, "warnings": 2, "outdatedPackages": 1, "findings": 2, "filesChecked": 3 },
"outdated": [ { "name": "openai", "declared": "^3.0.0", "latest": "…", "behind": …, "fix": "npm install openai@latest" } ],
"findings": [
{ "kind": "github-action", "level": "warning", "file": ".github/workflows/ci.yml", "line": 2,
"found": "actions/checkout@v3", "fix": "actions/checkout@v7", "message": "…" },
{ "kind": "model", "level": "warning", "file": "src/ai.ts", "line": 1, "found": "gpt-4o", "fix": "…", "message": "…" }
],
"skipped": [],
"checkedAt": "…"
}Body: { "files": { "path": "text" } }, or { "files": [{ "path": "…", "content": "…" }] }, or { "manifest": { …package.json… } }. Paths are relative to the project root. Up to 500 files, 512 KB each, 3 MB in total. A .oneshot.json file applies your team's rules (allowed models, blocked packages). Files are written to a temporary folder for the check and deleted right after; nothing is stored.
GET/v1/usage
This month's calls and cost for the key's account. Free, not counted.
curl $ONESHOT_API/v1/usage -H "Authorization: Bearer $ONESHOT_API_KEY"
# → { "callsThisMonth": 1840, "billedThisMonth": 1740, "costEurThisMonth": 3.48, "freeLeft": 0, "cardOnFile": true, … }Errors
Errors look like { "error": { "code": "…", "message": "…", "docs": "/docs" } }. Only successful (200) calls are counted; invalid requests and our own failures are free.
| Status | code | Meaning |
|---|---|---|
| 400 | bad_name, bad_topic, bad_files, … | Fix the request |
| 401 | missing_key, invalid_key | No key, or a revoked one |
| 402 | need_card | The 100 free calls are used: add a card |
| 402 | payment_issue | The last invoice failed: update the card |
| 402 | cap_reached | Your own monthly limit is reached |
| 413 | too_large, too_many_files | Send less |
| 429 | rate_limited | Wait Retry-After seconds |
| 502/503 | upstream_failed, unavailable | Not counted; retry |
Rate limits
120 calls per minute per key. Need more? Ask, and we raise it for your account. You can also set a monthly limit on billed calls in the dashboard, so a runaway agent can't run up the bill.
Pricing and billing
- The first 100 calls per account are free, no card needed.
- Then €0.002 per call, for every endpoint above. Prices exclude VAT.
- Add a card in the dashboard (Stripe). Usage is invoiced on the 1st of each month for the month before; the invoice is charged to the card.
- Invoices and receipts are in the dashboard (Manage billing).