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.
curl https://api.qurren.com/openapi.json -o qurren-openapi.json| Every response carries | Meaning |
|---|---|
x-request-id | Unique id of this request (req_…). Quote it when you contact support. |
X-RateLimit-Limit | Calls allowed per minute for this key (default 600). |
X-RateLimit-Remaining | Calls left in the current minute. |
X-RateLimit-Reset | Seconds until the current minute's window resets. |
Retry-After | Seconds to wait before retrying (429 and 503). |
x-qurren-billed | 1 if this call is billed, 0 if it used a free call. |
x-qurren-free-calls-left | Free calls left this month for the organisation (they start again on the 1st, UTC). |
What the API offers
Responses
- 200Endpoints and prices
curl "https://api.qurren.com/v1"Current AI models, runtimes, GitHub Actions and retirements
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
topicstringgeneratedAtstringmodelsobjectruntimesobjectgithubActionsobjectretirementsobjectengineobjectpackagestringversionstring
curl "https://api.qurren.com/v1/facts?topic=models" \
-H "Authorization: Bearer $QURREN_API_KEY"Current version, install command and agent mistakes for one package
Parameters
namepath · stringrequirednpm or PyPI name; `pypi:pydantic` also works. Scoped npm names keep their slash: /v1/packages/@supabase/supabase-jsecosystemquery · "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
packagestringecosystem"npm" | "pypi"existsbooleanlateststring | nulllatestMajorinteger | nullinstallstring | nullExact install commandriskstring | nullmajorSincestring | nullpreviousVersionstring | nulldeprecatedstring | nullagentNotesstring[]advicestringcardobject | nullWhat changed in the current major that agents get wrong (from Qurren's benchmark), or null when there's no card for this packagemajorintegersourcestringlinesobject[]
boardobject | nullHow often agents used an old major in Qurren's benchmark runs, or null when the package wasn't in themrunsintegerokintegeroldintegeroldVersionsstring[]
checkedAtstringsourcesobject
curl "https://api.qurren.com/v1/packages/zod" \
-H "Authorization: Bearer $QURREN_API_KEY"Check manifests and config for outdated majors, retired models, old Actions and end-of-life runtimes
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
okbooleansummaryobjecterrorsintegerwarningsintegeroutdatedPackagesintegerfindingsintegerfilesCheckedinteger
outdatedobject[]namestringecosystemstringdeclaredstringdeclaredMajorinteger | nulllateststringlatestMajorinteger | nullbehindintegerfixstringagentNotesstring[]What changed in the newer major that agents get wrong
findingsobject[]kindstringlevel"error" | "warning"filestringlineintegerfoundstringfixstringmessagestringretiresstringRetirement 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 listednamestringecosystemstringdeclaredstringreasonstring
checkedPackagesintegerPackages looked up on npm or PyPIcheckedAtstringengineobjectpackagestringversionstring
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\"}}"}}'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.
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 | nullmodelstring | nullacceptedboolean | nullnull when Qurren has no rules for this modelerrorsobject[]statusinteger | nulltypestringmessagestringexactbooleantrue: the provider's exact error text; false: Qurren's wording of itsourcestring
costobject | nullcheckedAtstringtextstringThe same result, as a short readable summaryengineobjectpackagestringversionstring
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"}]}}'This month's usage for the key's organisation (free, not counted)
Responses
- 200Usage
- 401`missing_key`: The request had no API key. `invalid_key`: The key is unknown or was revoked.
curl "https://api.qurren.com/v1/usage" \
-H "Authorization: Bearer $QURREN_API_KEY"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.
Request body
runsobject[]requiredrun_idstringFrom /v1/runs/start or the MCP session id (holdout)modelstringModel ID, e.g. claude-sonnet-5-5tokens_inintegertokens_outintegercost_usdnumberIf you know it; else estimated from list pricesduration_msintegeroutcome"pass" | "fail" | "unknown"requiredused_qurrenbooleanrequiredlabelstringA 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.
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"}]}'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.
Responses
- 200The arm for this task
- 401`missing_key`: The request had no API key. `invalid_key`: The key is unknown or was revoked.
curl -X POST "https://api.qurren.com/v1/runs/start" \
-H "Authorization: Bearer $QURREN_API_KEY"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.
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.
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"}'