Reference

API reference

Generated from the OpenAPI 3.1 description at /openapi.json: load it into Postman, Insomnia, an SDK generator or your agent's tool definitions.

Get the spec
curl https://api.qurren.com/openapi.json -o qurren-openapi.json
Every response carriesMeaning
x-request-idUnique id of this request (req_…). Quote it when you contact support.
X-RateLimit-LimitCalls allowed per minute for this key (default 600).
X-RateLimit-RemainingCalls left in the current minute.
X-RateLimit-ResetSeconds until the current minute's window resets.
Retry-AfterSeconds to wait before retrying (429 and 503).
x-qurren-billed1 if this call is billed, 0 if it used a free call.
x-qurren-free-calls-leftFree calls left this month for the organisation (they start again on the 1st, UTC).
GET/v1

What the API offers

No authFree, not counted

Responses

  • 200Endpoints and prices
Example
curl "https://api.qurren.com/v1"
GET/v1/facts

Current AI models, runtimes, GitHub Actions and retirements

Auth: API key€0.005 per call

Parameters

  • topicquery · "all" | "models" | "runtimes" | "github-actions" | "retirements"Which facts; `all` is every topic except retirements

Responses

  • 200The facts
  • 400`bad_topic`: Unknown topic for /v1/facts.
  • 401`missing_key`: The request had no API key. `invalid_key`: The key is unknown or was revoked. `key_expired`: The key passed the expiry date set when it was created.
  • 402`need_card`: This month's 1,000 free calls are used and the organisation has no card. `payment_issue`: The last invoice couldn't be paid and Stripe stopped retrying. `cap_reached`: The organisation's own monthly limit on billed calls is reached.
  • 403`blocked`: The organisation is paused (for example while it's being deleted, or by the Qurren team).
  • 429`rate_limited`: Too many calls with this key in the current minute.
  • 502`upstream_failed`: A source Qurren depends on (a registry, endoflife.date…) didn't answer. Not counted.
  • 503`unavailable`: Qurren couldn't count calls for a moment. Nothing was billed.
Response fields
  • topicstring
  • generatedAtstring
  • modelsobject
  • runtimesobject
  • githubActionsobject
  • retirementsobject
  • engineobject
    • packagestring
    • versionstring
Example
curl "https://api.qurren.com/v1/facts?topic=models" \
  -H "Authorization: Bearer $QURREN_API_KEY"
GET/v1/packages/{name}

Current version, install command and agent mistakes for one package

Auth: API key€0.005 per call

Parameters

  • namepath · stringrequirednpm or PyPI name; `pypi:pydantic` also works. Scoped npm names keep their slash: /v1/packages/@supabase/supabase-js
  • ecosystemquery · "npm" | "pypi"

Responses

  • 200The package
  • 400`bad_name`: The package name (or another name) isn't valid. `bad_ecosystem`: Unknown package ecosystem.
  • 401`missing_key`: The request had no API key. `invalid_key`: The key is unknown or was revoked. `key_expired`: The key passed the expiry date set when it was created.
  • 402`need_card`: This month's 1,000 free calls are used and the organisation has no card. `payment_issue`: The last invoice couldn't be paid and Stripe stopped retrying. `cap_reached`: The organisation's own monthly limit on billed calls is reached.
  • 403`blocked`: The organisation is paused (for example while it's being deleted, or by the Qurren team).
  • 429`rate_limited`: Too many calls with this key in the current minute.
  • 502`upstream_failed`: A source Qurren depends on (a registry, endoflife.date…) didn't answer. Not counted.
  • 503`unavailable`: Qurren couldn't count calls for a moment. Nothing was billed.
Response fields
  • packagestring
  • ecosystem"npm" | "pypi"
  • existsboolean
  • lateststring | null
  • latestMajorinteger | null
  • installstring | nullExact install command
  • riskstring | null
  • majorSincestring | null
  • previousVersionstring | null
  • deprecatedstring | null
  • agentNotesstring[]
  • advicestring
  • cardobject | nullWhat changed in the current major that agents get wrong (from Qurren's benchmark), or null when there's no card for this package
    • majorinteger
    • sourcestring
    • linesobject[]
  • boardobject | nullHow often agents used an old major in Qurren's benchmark runs, or null when the package wasn't in them
    • runsinteger
    • okinteger
    • oldinteger
    • oldVersionsstring[]
  • checkedAtstring
  • sourcesobject
Example
curl "https://api.qurren.com/v1/packages/zod" \
  -H "Authorization: Bearer $QURREN_API_KEY"
POST/v1/check

Check manifests and config for outdated majors, retired models, old Actions and end-of-life runtimes

Auth: API key€0.005 per call

Request body

  • filesobject | object[]
  • manifestobjectA package.json object (instead of files)

Responses

  • 200What's outdated, with fixes
  • 400`bad_body`: The JSON body doesn't have the expected shape. `bad_json`: The body isn't valid JSON. `bad_files`: files isn't an object of { path: content } or an array of { path, content }. `bad_manifest`: manifest must be the package.json object. `bad_path`: A file path is absolute, has .., control characters or node_modules. `duplicate_path`: The same path is in the request twice. `no_files`: /v1/check got no files.
  • 401`missing_key`: The request had no API key. `invalid_key`: The key is unknown or was revoked. `key_expired`: The key passed the expiry date set when it was created.
  • 402`need_card`: This month's 1,000 free calls are used and the organisation has no card. `payment_issue`: The last invoice couldn't be paid and Stripe stopped retrying. `cap_reached`: The organisation's own monthly limit on billed calls is reached.
  • 403`blocked`: The organisation is paused (for example while it's being deleted, or by the Qurren team).
  • 413`too_large`: The request body is too large. `too_many_files`: More files than one check allows. `file_too_large`: One file is over 512 KB.
  • 429`rate_limited`: Too many calls with this key in the current minute.
  • 502`upstream_failed`: A source Qurren depends on (a registry, endoflife.date…) didn't answer. Not counted.
  • 503`unavailable`: Qurren couldn't count calls for a moment. Nothing was billed.
Response fields
  • okboolean
  • summaryobject
    • errorsinteger
    • warningsinteger
    • outdatedPackagesinteger
    • findingsinteger
    • filesCheckedinteger
  • outdatedobject[]
    • namestring
    • ecosystemstring
    • declaredstring
    • declaredMajorinteger | null
    • lateststring
    • latestMajorinteger | null
    • behindinteger
    • fixstring
    • agentNotesstring[]What changed in the newer major that agents get wrong
  • findingsobject[]
    • kindstring
    • level"error" | "warning"
    • filestring
    • lineinteger
    • foundstring
    • fixstring
    • messagestring
    • retiresstringRetirement or end-of-life date (YYYY-MM-DD), for models and runtimes
  • skippedobject[]Packages not looked up (private, unpublished or not found on the registry); only their names are listed
    • namestring
    • ecosystemstring
    • declaredstring
    • reasonstring
  • checkedPackagesintegerPackages looked up on npm or PyPI
  • checkedAtstring
  • engineobject
    • packagestring
    • versionstring
Example
curl -X POST "https://api.qurren.com/v1/check" \
  -H "Authorization: Bearer $QURREN_API_KEY" \
  -H "content-type: application/json" \
  -d '{"files":{"package.json":"{\"dependencies\":{\"next\":\"^13.0.0\"}}"}}'
POST/v1/requests/check

Check an LLM API request (Anthropic or OpenAI) before you send it Retired models, parameters a model rejects, limits, and an estimated cost. Nothing is sent to the model provider; the body isn't kept.

Auth: API key€0.005 per call

Request body

  • bodyobjectrequiredThe request body you'd send to /v1/messages (Anthropic) or /v1/chat/completions, /v1/responses (OpenAI)
  • provider"anthropic" | "openai"Optional; detected from the model name

Responses

  • 200Whether the provider would accept it
  • 400`bad_body`: The JSON body doesn't have the expected shape. `bad_json`: The body isn't valid JSON. `bad_request_body`: body for /v1/requests/check isn't a request object. `bad_provider`: Unknown provider.
  • 401`missing_key`: The request had no API key. `invalid_key`: The key is unknown or was revoked. `key_expired`: The key passed the expiry date set when it was created.
  • 402`need_card`: This month's 1,000 free calls are used and the organisation has no card. `payment_issue`: The last invoice couldn't be paid and Stripe stopped retrying. `cap_reached`: The organisation's own monthly limit on billed calls is reached.
  • 403`blocked`: The organisation is paused (for example while it's being deleted, or by the Qurren team).
  • 413`too_large`: The request body is too large.
  • 429`rate_limited`: Too many calls with this key in the current minute.
  • 502`upstream_failed`: A source Qurren depends on (a registry, endoflife.date…) didn't answer. Not counted.
  • 503`unavailable`: Qurren couldn't count calls for a moment. Nothing was billed.
Response fields
  • providerstring | null
  • modelstring | null
  • acceptedboolean | nullnull when Qurren has no rules for this model
  • errorsobject[]
    • statusinteger | null
    • typestring
    • messagestring
    • exactbooleantrue: the provider's exact error text; false: Qurren's wording of it
    • sourcestring
  • costobject | null
  • checkedAtstring
  • textstringThe same result, as a short readable summary
  • engineobject
    • packagestring
    • versionstring
Example
curl -X POST "https://api.qurren.com/v1/requests/check" \
  -H "Authorization: Bearer $QURREN_API_KEY" \
  -H "content-type: application/json" \
  -d '{"body":{"model":"claude-sonnet-4-5","max_tokens":1024,"messages":[{"role":"user","content":"Hi"}]}}'
GET/v1/usage

This month's usage for the key's organisation (free, not counted)

Auth: API keyFree, not counted

Responses

  • 200Usage
  • 401`missing_key`: The request had no API key. `invalid_key`: The key is unknown or was revoked.
Example
curl "https://api.qurren.com/v1/usage" \
  -H "Authorization: Bearer $QURREN_API_KEY"
POST/v1/runs

Report how your agent's tasks went (free, not counted) Numbers only, for measured ROI on the Value page: never prompts, code or content (unknown fields are refused). Up to 100 runs per request.

Auth: API keyFree, not counted

Request body

  • runsobject[]required
    • run_idstringFrom /v1/runs/start or the MCP session id (holdout)
    • modelstringModel ID, e.g. claude-sonnet-5-5
    • tokens_ininteger
    • tokens_outinteger
    • cost_usdnumberIf you know it; else estimated from list prices
    • duration_msinteger
    • outcome"pass" | "fail" | "unknown"required
    • used_qurrenbooleanrequired
    • labelstringA task type, not content

Responses

  • 200Stored
  • 400`bad_run`: A run report for /v1/runs isn't valid: a field is missing, has the wrong type, or isn't allowed. `bad_json`: The body isn't valid JSON.
  • 401`missing_key`: The request had no API key. `invalid_key`: The key is unknown or was revoked.
  • 413`too_many_runs`: More than 100 runs in one /v1/runs request. `too_large`: The request body is too large.
Example
curl -X POST "https://api.qurren.com/v1/runs" \
  -H "Authorization: Bearer $QURREN_API_KEY" \
  -H "content-type: application/json" \
  -d '{"runs":[{"model":"claude-sonnet-4-5","tokens_in":42000,"tokens_out":3100,"cost_usd":0.17,"duration_ms":61000,"outcome":"pass","used_qurren":true,"label":"upgrade-deps"}]}'
POST/v1/runs/start

Start a task: use Qurren for it or not (free) With Measure my ROI on, a random 5% of tasks get use_qurren: false (the holdout). Report the task with the run_id.

Auth: API keyFree, not counted

Responses

  • 200The arm for this task
  • 401`missing_key`: The request had no API key. `invalid_key`: The key is unknown or was revoked.
Example
curl -X POST "https://api.qurren.com/v1/runs/start" \
  -H "Authorization: Bearer $QURREN_API_KEY"
POST/mcp

Hosted MCP server (streamable HTTP, JSON-RPC 2.0) Tools: current_facts, check_package, check_project, check_request. Each tools/call is metered like the matching REST call; initialize, tools/list and ping are free. Authenticate with the same API key.

Auth: API keytools/call metered

Request body

A JSON-RPC 2.0 request or notification

Responses

  • 200JSON-RPC response
  • 202Notification accepted
  • 401`missing_key`: The request had no API key. `invalid_key`: The key is unknown or was revoked.
Example
curl -X POST "https://api.qurren.com/mcp" \
  -H "Authorization: Bearer $QURREN_API_KEY" \
  -H "content-type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'