{"openapi":"3.1.0","info":{"title":"Qurren API","version":"1.0.0","summary":"Today's facts for coding agents: current models, versions, actions and runtimes, and a check for stale values.","description":"Every endpoint answers with values a coding agent tends to get wrong from memory, each with a source and a check time. 1,000 calls per organisation per calendar month are free (reset on the 1st, UTC); after that each counted call costs €0.005, invoiced monthly. Only 200 responses are counted. /v1 is stable: breaking changes get 6 months' notice (see /docs/versioning).","contact":{"name":"Qurren","email":"hello@qurren.com","url":"https://api.qurren.com/docs"},"termsOfService":"https://api.qurren.com/terms"},"servers":[{"url":"https://api.qurren.com"}],"webhooks":{"alert":{"post":{"summary":"Webhook alert (paid plan)","description":"Sent before a model, runtime or GitHub Action your organisation uses stops working: 30, 7 and 1 days ahead, and on the day. Signed with Qurren-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"t.body\">. Answer 2xx within 5 s. See https://api.qurren.com/docs/webhooks.","externalDocs":{"url":"https://api.qurren.com/docs/webhooks"},"parameters":[{"name":"Qurren-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1798362000,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","created","data"],"properties":{"id":{"type":"string","example":"evt_3f9c2a7d1b8e4c6f9a0b5d2e7c1f4a8b"},"type":{"type":"string","enum":["model.retiring","model.retired","runtime.eol","action.deprecated","test"]},"created":{"type":"integer","description":"Unix seconds"},"data":{"type":"object","properties":{"item":{"type":"string","example":"claude-3-haiku-20240307"},"kind":{"type":"string","enum":["model","runtime","action"]},"retires_on":{"type":["string","null"],"format":"date"},"days_left":{"type":["integer","null"]},"replacement":{"type":["string","null"]},"source_url":{"type":["string","null"],"format":"uri"}}}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges the alert"}}}}},"security":[{"apiKey":[]}],"tags":[{"name":"Facts","description":"Current values from live sources"},{"name":"Checks","description":"Find stale values before they ship"},{"name":"Account","description":"Free, not counted"}],"paths":{"/v1":{"get":{"tags":["Account"],"operationId":"index","summary":"What the API offers","security":[],"responses":{"200":{"description":"Endpoints and prices","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/facts":{"get":{"tags":["Facts"],"operationId":"getFacts","summary":"Current AI models, runtimes, GitHub Actions and retirements","x-qurren-price-eur":0.005,"parameters":[{"name":"topic","in":"query","required":false,"schema":{"type":"string","enum":["all","models","runtimes","github-actions","retirements"],"default":"all"},"description":"Which facts; `all` is every topic except retirements"}],"responses":{"200":{"description":"The facts","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"x-qurren-billed":{"$ref":"#/components/headers/Billed"},"x-qurren-free-calls-left":{"$ref":"#/components/headers/FreeCallsLeft"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Facts"}}}},"400":{"description":"`bad_topic`: Unknown topic for /v1/facts.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`blocked`: The organisation is paused (for example while it's being deleted, or by the Qurren team).","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`: Too many calls with this key in the current minute.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"`upstream_failed`: A source Qurren depends on (a registry, endoflife.date…) didn't answer. Not counted.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`unavailable`: Qurren couldn't count calls for a moment. Nothing was billed.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/packages/{name}":{"get":{"tags":["Facts"],"operationId":"getPackage","summary":"Current version, install command and agent mistakes for one package","x-qurren-price-eur":0.005,"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"},"description":"npm or PyPI name; `pypi:pydantic` also works. Scoped npm names keep their slash: /v1/packages/@supabase/supabase-js"},{"name":"ecosystem","in":"query","required":false,"schema":{"type":"string","enum":["npm","pypi"],"default":"npm"}}],"responses":{"200":{"description":"The package","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"x-qurren-billed":{"$ref":"#/components/headers/Billed"},"x-qurren-free-calls-left":{"$ref":"#/components/headers/FreeCallsLeft"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Package"}}}},"400":{"description":"`bad_name`: The package name (or another name) isn't valid. `bad_ecosystem`: Unknown package ecosystem.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`blocked`: The organisation is paused (for example while it's being deleted, or by the Qurren team).","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`: Too many calls with this key in the current minute.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"`upstream_failed`: A source Qurren depends on (a registry, endoflife.date…) didn't answer. Not counted.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`unavailable`: Qurren couldn't count calls for a moment. Nothing was billed.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/check":{"post":{"tags":["Checks"],"operationId":"checkProject","summary":"Check manifests and config for outdated majors, retired models, old Actions and end-of-life runtimes","x-qurren-price-eur":0.005,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckRequest"},"examples":{"files":{"value":{"files":{"package.json":"{\"dependencies\":{\"next\":\"^13.0.0\"}}"}}}}}}},"responses":{"200":{"description":"What's outdated, with fixes","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"x-qurren-billed":{"$ref":"#/components/headers/Billed"},"x-qurren-free-calls-left":{"$ref":"#/components/headers/FreeCallsLeft"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResult"}}}},"400":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`blocked`: The organisation is paused (for example while it's being deleted, or by the Qurren team).","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`: Too many calls with this key in the current minute.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"`upstream_failed`: A source Qurren depends on (a registry, endoflife.date…) didn't answer. Not counted.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`unavailable`: Qurren couldn't count calls for a moment. Nothing was billed.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/requests/check":{"post":{"tags":["Checks"],"operationId":"checkRequest","summary":"Check an LLM API request (Anthropic or OpenAI) before you send it","description":"Retired models, parameters a model rejects, limits, and an estimated cost. Nothing is sent to the model provider; the body isn't kept.","x-qurren-price-eur":0.005,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestCheckRequest"},"examples":{"anthropic":{"value":{"body":{"model":"claude-sonnet-4-5","max_tokens":1024,"messages":[{"role":"user","content":"Hi"}]}}}}}}},"responses":{"200":{"description":"Whether the provider would accept it","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"x-qurren-billed":{"$ref":"#/components/headers/Billed"},"x-qurren-free-calls-left":{"$ref":"#/components/headers/FreeCallsLeft"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestCheckResult"}}}},"400":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`blocked`: The organisation is paused (for example while it's being deleted, or by the Qurren team).","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`too_large`: The request body is too large.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited`: Too many calls with this key in the current minute.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"`upstream_failed`: A source Qurren depends on (a registry, endoflife.date…) didn't answer. Not counted.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"`unavailable`: Qurren couldn't count calls for a moment. Nothing was billed.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/usage":{"get":{"tags":["Account"],"operationId":"getUsage","summary":"This month's usage for the key's organisation (free, not counted)","responses":{"200":{"description":"Usage","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"`missing_key`: The request had no API key. `invalid_key`: The key is unknown or was revoked.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/runs":{"post":{"tags":["Account"],"operationId":"reportRuns","summary":"Report how your agent's tasks went (free, not counted)","description":"Numbers only, for measured ROI on the Value page: never prompts, code or content (unknown fields are refused). Up to 100 runs per request.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunsRequest"}}}},"responses":{"200":{"description":"Stored","content":{"application/json":{"schema":{"type":"object","properties":{"recorded":{"type":"integer"},"duplicates":{"type":"integer"},"billed":{"type":"boolean","const":false}}}}}},"400":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"`missing_key`: The request had no API key. `invalid_key`: The key is unknown or was revoked.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"`too_many_runs`: More than 100 runs in one /v1/runs request. `too_large`: The request body is too large.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/runs/start":{"post":{"tags":["Account"],"operationId":"startRun","summary":"Start a task: use Qurren for it or not (free)","description":"With Measure my ROI on, a random 5% of tasks get use_qurren: false (the holdout). Report the task with the run_id.","responses":{"200":{"description":"The arm for this task","content":{"application/json":{"schema":{"type":"object","properties":{"run_id":{"type":["string","null"]},"arm":{"type":"string","enum":["qurren","holdout"]},"use_qurren":{"type":"boolean"},"measuring":{"type":"boolean"},"billed":{"type":"boolean","const":false}}}}}},"401":{"description":"`missing_key`: The request had no API key. `invalid_key`: The key is unknown or was revoked.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mcp":{"post":{"tags":["Facts","Checks"],"operationId":"mcp","summary":"Hosted MCP server (streamable HTTP, JSON-RPC 2.0)","description":"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.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"A JSON-RPC 2.0 request or notification"}}}},"responses":{"200":{"description":"JSON-RPC response","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"x-qurren-billed":{"$ref":"#/components/headers/Billed"},"x-qurren-free-calls-left":{"$ref":"#/components/headers/FreeCallsLeft"}},"content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Notification accepted"},"401":{"description":"`missing_key`: The request had no API key. `invalid_key`: The key is unknown or was revoked.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"qk_live_… / qk_test_…","description":"Create keys in the dashboard. x-api-key: qk_… works too."}},"headers":{"RequestId":{"description":"Unique id of this request (req_…). Quote it when you contact support.","schema":{"type":"string"}},"RateLimitLimit":{"description":"Calls allowed per minute for this key (default 600).","schema":{"type":"integer"}},"RateLimitRemaining":{"description":"Calls left in the current minute.","schema":{"type":"integer"}},"RateLimitReset":{"description":"Seconds until the current minute's window resets.","schema":{"type":"integer"}},"RetryAfter":{"description":"Seconds to wait before retrying (429 and 503).","schema":{"type":"integer"}},"Billed":{"description":"1 if this call is billed, 0 if it used a free call.","schema":{"type":"string","enum":["0","1"]}},"FreeCallsLeft":{"description":"Free calls left this month for the organisation (they start again on the 1st, UTC).","schema":{"type":"integer"}}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","enum":["missing_key","invalid_key","key_expired","blocked","need_card","payment_issue","cap_reached","rate_limited","unknown_endpoint","method_not_allowed","bad_request","bad_json","bad_body","bad_topic","bad_name","bad_ecosystem","bad_files","bad_manifest","bad_path","duplicate_path","no_files","bad_request_body","bad_provider","too_large","too_many_files","file_too_large","bad_run","too_many_runs","json_only","upstream_failed","unavailable","server_error","billing_off","billing_setup","no_org","signed_out","mfa_required","mfa_setup_required","mfa_first","mfa_not_on","bad_recovery_code","forbidden","bad_origin","not_found","nothing_to_change","bad_value","bad_cap","bad_expiry","too_many_keys","confirm_mismatch","has_card","no_customer","bad_email","bad_role","use_transfer","use_leave","bad_target","transfer_failed","owner_cant_leave","personal_org","sole_owner","already_member","already_invited","too_many_members","too_many_invites","too_many_orgs","alerts_need_card","alerts_not_configured","bad_url","bad_events","too_many_endpoints","bad_item","facts_need_card","company_facts_not_configured","looks_like_secret","bad_package","bad_version","bad_model","bad_pin","bad_rule","too_long","too_many","duplicate","bad_facts_file","confirm","bad_action","invite_not_found","invite_expired","invite_revoked","invite_used","invite_email_mismatch"],"description":"Stable; see /docs/errors"},"message":{"type":"string","description":"For people; may change"},"docs":{"type":"string","description":"Link to this code's entry in the error reference"},"request_id":{"type":"string","description":"Same as the x-request-id header"}}}}},"Facts":{"type":"object","properties":{"topic":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"models":{"type":"object","additionalProperties":{"type":"object","properties":{"newest":{"type":"array","items":{"type":"string"}},"alsoCurrent":{"type":"array","items":{"type":"string"}},"notes":{"type":"string","description":"Which model to pick for what, in one line"},"outdatedExamples":{"type":"array","items":{"type":"string"},"description":"IDs agents still write that are no longer current"},"source":{"type":"string"},"checkedAt":{"type":"string"}}}},"runtimes":{"type":"object","additionalProperties":{"type":"object"}},"githubActions":{"type":"object","additionalProperties":{"type":"object","properties":{"major":{"type":"integer"},"uses":{"type":"string"},"source":{"type":"string"},"checkedAt":{"type":"string"}}}},"retirements":{"type":"object"},"engine":{"$ref":"#/components/schemas/Engine"}}},"Package":{"type":"object","properties":{"package":{"type":"string"},"ecosystem":{"type":"string","enum":["npm","pypi"]},"exists":{"type":"boolean"},"latest":{"type":["string","null"]},"latestMajor":{"type":["integer","null"]},"install":{"type":["string","null"],"description":"Exact install command"},"risk":{"type":["string","null"]},"majorSince":{"type":["string","null"]},"previousVersion":{"type":["string","null"]},"deprecated":{"type":["string","null"]},"agentNotes":{"type":"array","items":{"type":"string"}},"advice":{"type":"string"},"card":{"type":["object","null"],"description":"What changed in the current major that agents get wrong (from Qurren's benchmark), or null when there's no card for this package","properties":{"major":{"type":"integer"},"source":{"type":"string"},"lines":{"type":"array","items":{"type":"object"}}}},"board":{"type":["object","null"],"description":"How often agents used an old major in Qurren's benchmark runs, or null when the package wasn't in them","properties":{"runs":{"type":"integer"},"ok":{"type":"integer"},"old":{"type":"integer"},"oldVersions":{"type":"array","items":{"type":"string"}}}},"checkedAt":{"type":"string","format":"date-time"},"sources":{"type":"object"}}},"CheckRequest":{"type":"object","description":"At most 500 files, 512 KB each, 3 MB in all. Files are deleted right after the check.","properties":{"files":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"},"description":"{ path: content }"},{"type":"array","items":{"type":"object","required":["path","content"],"properties":{"path":{"type":"string"},"content":{"type":"string"}}}}]},"manifest":{"type":"object","description":"A package.json object (instead of files)"}}},"CheckResult":{"type":"object","properties":{"ok":{"type":"boolean"},"summary":{"type":"object","properties":{"errors":{"type":"integer"},"warnings":{"type":"integer"},"outdatedPackages":{"type":"integer"},"findings":{"type":"integer"},"filesChecked":{"type":"integer"}}},"outdated":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"ecosystem":{"type":"string"},"declared":{"type":"string"},"declaredMajor":{"type":["integer","null"]},"latest":{"type":"string"},"latestMajor":{"type":["integer","null"]},"behind":{"type":"integer"},"fix":{"type":"string"},"agentNotes":{"type":"array","items":{"type":"string"},"description":"What changed in the newer major that agents get wrong"}}}},"findings":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"level":{"type":"string","enum":["error","warning"]},"file":{"type":"string"},"line":{"type":"integer"},"found":{"type":"string"},"fix":{"type":"string"},"message":{"type":"string"},"retires":{"type":"string","description":"Retirement or end-of-life date (YYYY-MM-DD), for models and runtimes"}}}},"skipped":{"type":"array","description":"Packages not looked up (private, unpublished or not found on the registry); only their names are listed","items":{"type":"object","properties":{"name":{"type":"string"},"ecosystem":{"type":"string"},"declared":{"type":"string"},"reason":{"type":"string"}}}},"checkedPackages":{"type":"integer","description":"Packages looked up on npm or PyPI"},"checkedAt":{"type":"string","format":"date-time"},"engine":{"$ref":"#/components/schemas/Engine"}}},"RequestCheckRequest":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"The request body you'd send to /v1/messages (Anthropic) or /v1/chat/completions, /v1/responses (OpenAI)"},"provider":{"type":"string","enum":["anthropic","openai"],"description":"Optional; detected from the model name"}}},"RequestCheckResult":{"type":"object","properties":{"provider":{"type":["string","null"]},"model":{"type":["string","null"]},"accepted":{"type":["boolean","null"],"description":"null when Qurren has no rules for this model"},"errors":{"type":"array","items":{"type":"object","properties":{"status":{"type":["integer","null"]},"type":{"type":"string"},"message":{"type":"string"},"exact":{"type":"boolean","description":"true: the provider's exact error text; false: Qurren's wording of it"},"source":{"type":"string"}}}},"cost":{"type":["object","null"]},"checkedAt":{"type":"string","format":"date-time"},"text":{"type":"string","description":"The same result, as a short readable summary"},"engine":{"$ref":"#/components/schemas/Engine"}}},"RunsRequest":{"type":"object","required":["runs"],"properties":{"runs":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["outcome","used_qurren"],"properties":{"run_id":{"type":"string","format":"uuid","description":"From /v1/runs/start or the MCP session id (holdout)"},"model":{"type":"string","description":"Model ID, e.g. claude-sonnet-5-5"},"tokens_in":{"type":"integer","minimum":0},"tokens_out":{"type":"integer","minimum":0},"cost_usd":{"type":"number","minimum":0,"description":"If you know it; else estimated from list prices"},"duration_ms":{"type":"integer","minimum":0},"outcome":{"type":"string","enum":["pass","fail","unknown"]},"used_qurren":{"type":"boolean"},"label":{"type":"string","maxLength":60,"description":"A task type, not content"}}}}}},"Engine":{"type":"object","properties":{"package":{"type":"string","const":"qurren"},"version":{"type":"string"}}}}}}