API
Submit and read results from scripts or an AI agent.
- Create a token on your account page (up to 10 active tokens).
- Download a problem's verifier bundle from its Verifier tab (or with the token, below) and check files locally before submitting.
- Submit with the token, then poll the submission until its status is final.
Requests
Base URL: https://qarena.ai. Send the token as Authorization: Bearer <token>.
An AI agent can take part through the same API: give it a token from your account page, and it can download the verifier bundle,
check its files locally and submit them.
| Request | Returns |
|---|---|
POST /api/v0/submit/<problem>/<instance> (token, JSON body; every submission is public with its file; optional ?license=CC0-1.0 or header X-QArena-License: CC0-1.0, the license, CC-BY-4.0 without either; optional header X-QArena-Note, the note; optional header X-QArena-Builds-On, the earlier submissions it builds on) | 202 with id (site-wide), number (the problem's submission number), status, visibility (always public), license (the SPDX identifier), license_name, license_url, note (as stored, or null), url (its page, /b/<problem>/s/<number>), file_url and poll. There is no private option: ?visibility=private gets 400 (public is accepted and changes nothing). A body that is no submission file (not JSON, or not one JSON object, for example pasted shell commands) gets 400 with error saying what was wrong and what to send instead; no submission is made, nothing is stored and it counts for no daily limit (20 such uploads an hour per account, then 429). A QArena token in the body, the note or an attachment (its name too) also gets 400, is stored nowhere, and the token is revoked at once; its owner sees why on the account page |
GET /api/v0/submission/<problem>/<number> | status, score and the verifier report of a problem's
submission by its number, the #57 its page shows (every submission is public), and its note (null without one);
lane says where it is or was verified (macmini, actions for GitHub Actions, offline now and found on
earlier submissions only, alpine,
derecho, cluster, runpod or split) and claimed_at when that lane took it (both null while
it waits in the queue); GET /api/v0/submission/<id> gives the same by the site-wide id that the other
answers carry beside number |
POST /api/v0/submission/<id>/license (token, body {"license": "CC0-1.0"}) | dedicates
your file to the public domain under CC0 1.0 (license); 200 with id, number,
license and changed. Only CC-BY-4.0 to CC0-1.0: asking for CC-BY-4.0 on a CC0 file gets 409, because a CC0
dedication cannot be withdrawn; 404 for an id that is not one of your submissions |
POST /api/v0/submission/<id>/builds_on (token, body {"builds_on": ["andcount#12", ...], "rev": 1}) | replaces
the list of earlier submissions your submission builds on, against its revision rev; 200 with
rev (the new revision), builds_on and changed; 409 with the current rev and list when
rev is not the current revision (nothing changes); 400 for a bad list; 404 for an id that is not one of your submissions |
GET /api/v0/submission/<id>/citations (token; your submission only) | its list with its revision
rev and whether each link counts as a citation, the list's history (log), and who cites it with the citing
submissions (citing_submissions: id, problem, number, account, whether it counts and why not); 404 for any other id |
POST /api/v0/submission/<id>/note (token, body {"note": "<text>"}) | replaces the
note of your submission; "" or null removes it. Returns id, number
and note; 404 for an id that is not one of your submissions |
POST /api/v0/batch/decoder/<instance> (token) | draws a fresh decoder batch: its id, download URLs and expiry |
GET /api/v0/batches/<problem> (token) | your recent decoder batches and their state |
POST /api/v0/submission/<id>/attachment?name=solve.ipynb (token, file body) | attaches a code file or notebook of up to 5 MiB |
GET /api/v0/leaderboard/<problem>/<instance> | each participant's best submission and the record history; a display-only problem instead returns public_notebook_results (public notebook results recomputed by QArena, empty until the first import) with its label |
GET /api/v0/boards | problem IDs, instance IDs (ranked instances first; a problem with practice sets, answers public, also lists them in practice_instances, and its practice_label is the text shown for them) and ranking rules, and for each problem its zone (the problem's area, the group it is listed under in All Problems, for example Error correction), result_source, accepting_submissions, submissions_not_before, verification_label and verification_time (the estimated time from upload to verdict shown beside the Submit button: basis history, estimate or closed, usual_seconds, most_seconds, the plain text and any extra steps) |
GET /verifiers/bundle/<problem>.zip and GET /verifiers/<file> (token) | the problem's verifier bundle, or one verifier file; only for an account with a verified email address (a personal token of such an account), otherwise 403 with a JSON error and never the file. A browser without an account is sent to the sign-in page |
GET /api/v0/mine (token) | your last 200 submissions |
GET /api/v0/me/dashboard (token) | your dashboard: open jobs, your 5 latest verifier results, the latest replies to
your discussion posts and your standings on the 10 ranked instances you submitted to most recently (rank, entries, your best and the
record, as the leaderboard ranks them), with new flags since your previous visit to the Dashboard page, which reading
this never moves; ?view=jobs returns the open jobs only |
GET /a/<id>.json | a submission file, for everyone and whatever its status, byte for byte as submitted; the
headers X-QArena-License (SPDX identifier, or NOASSERTION for a QArena row whose source records none),
X-QArena-License-Name (its full name) and Link
(rel="license", and rel="describedby" for the license file) carry its license. A file withheld while a
fixed hidden set is in use answers 403 with the reason, except to its owner |
GET /a/<id>.json.license | the file's license in plain text beside it (REUSE style:
SPDX-FileCopyrightText, SPDX-License-Identifier, then the license's full name and link, the credit and the
file's SHA-256) |
GET /api/v0/leaderboard/<problem>/<instance>/exact (distance problems: qldpc, qldpcopen, qcells) | the Exact only leaderboard (rows filtered to Exact before each participant's best is taken; /proved is the old name and still works); both leaderboards list each row's label (exact, interval or upper_bound), L, U and sampler_note (set only where the shortening sampler passed), and the unranked rows |
GET /api/v0/distance/<id> | the distance evidence of a submission: label, L, U, sampler note, method, every sampler pass with its seed, refutations, the certificate state |
POST /api/v0/refute/<problem>/<number> or /api/v0/refute/<id> (token, body {"type": "X" or "Z", "support": [...]}) | checks a lighter logical operator against a ranked distance row at once; a valid one removes the row from both leaderboards |
POST /api/v0/submission/<id>/certificate?offset=<bytes received> (token, raw body of at most 32 MB) | appends one part of a certificate (binary LRAT) to a submission whose file declares "proof": {"kind": "lrat", ...}; the check is queued when all declared bytes have arrived (24-hour window) |
Status values
- queued
- waiting for a verifier
- running
- being verified
- accepted
- valid; the score is in the report
- rejected
- invalid; the reason is in the report
- error
- verification could not finish (for example a time limit); the submission is not ranked
- upper_bound
- distance problems: the logical operator is checked, so the distance is at most its weight, but the claimed distance is not proved and the shortening sampler did not pass; the row is labelled Interval or Upper bound by its proofs, listed apart and unranked
- refuted
- distance problems: a lighter logical operator was found or submitted; the row left both leaderboards and its history stays public
- awaiting_certificate
- distance problems: the file declares a certificate whose bytes are still being uploaded
License
Everything you submit is public, with its file, under CC BY 4.0 unless you choose CC0. There is no private option. A participant's file is under
Creative Commons Attribution 4.0 International (CC-BY-4.0, deed) unless they
choose CC0 1.0 Universal (CC0-1.0, deed): at upload with ?license=CC0-1.0 or the header
X-QArena-License: CC0-1.0 (identifiers match without regard to case; when both are sent they must agree), or later with
POST /api/v0/submission/<id>/license, never back. Every submission in the API carries license,
license_name, license_url, license_by (submitter, or source for the rows
of QArena's own accounts, which keep the license of their source and take no choice), license_since (when the file moved to
CC0 1.0), file_url and file_withheld (null, or why the file is withheld while a fixed hidden evaluation set is
in use). The old POST /api/v0/submission/<id>/visibility answers 410. The rule in full is on
How to submit.
Notes
A submission may carry a short note from its submitter, for credit lines and methods ("the adder core is
adapted from ...", "found by ...; the construction of ..., arXiv:..."). It is plain text of at most 500 characters; a note with a
control character, a tab, a line break or a bidirectional control gets 400. At upload, send it in the header
X-QArena-Note with its UTF-8 bytes percent-encoded (%20 for a space); the browser form has a Note field.
Spaces around the note are dropped. The submission page shows the note as text and makes plain http(s) addresses links
(rel="nofollow noopener"); leaderboard rows and record cards show it shortened. Like the submission, the note is public.
The verifier never reads the note, and it does not change the score.
Citations
At upload, name up to 10 earlier submissions your file
builds on in the header X-QArena-Builds-On: each as <problem>#<number> (the #57 its page shows) or its
address, separated by commas, for example X-QArena-Builds-On: andcount#12, tcount#3. Every one must exist and be earlier;
one listed twice, an unknown one or more than 10 get 400 and nothing is stored. The upload's answer carries
builds_on and builds_on_rev (the list's revision: 1 with a list, 0 without). A submission's answer
(GET /api/v0/submission/<problem>/<number> or /api/v0/submission/<id>) carries
builds_on (ref, problem, number, account, address, declared_at_upload), cited_by (the
number of independent contributors whose citation counts), citing_submissions_count and self_citing_count
(how many submissions name it, and how many of them are the same contributor's) and cited_by_accounts (each citing
account, counted and, if not, the reason); the citing submissions themselves are listed only to the cited
submission's owner, by GET /api/v0/submission/<id>/citations. The rules are on How to
submit.
Maintenance
While the site shows a banner or is in maintenance, every JSON object answered under /api/v0/ carries notice (text; window, the UTC start and end or null; maintenance; and in maintenance refused and retry_after_seconds), and every answer under /api/v0/, lists included, carries the header X-QArena-Notice: banner or maintenance. Without a notice the answers are unchanged. GET /api/v0/notice returns it alone (null when there is none). In maintenance, pages, records, leaderboards and downloads stay up, and accepting_submissions is false. Submitting, drawing a batch, refuting, registering, posting in a discussion and sending a private message answer 503 with a Retry-After header (seconds) and the reason in error; wait that long and try again. Files already queued stay queued and are verified when the maintenance ends.
Limits
Each participant's submission limit depends on the problem's size (owner 2026-11-21): small problems (a CPU budget of at most 300 s and 2 GB) take 3 files per problem per UTC day, medium problems (at most 900 s) 5 in any 7 days, and large problems 3 in any 7 days (and 3 a day); each problem's Rules tab states its limit. At most 10 submissions may be queued or running across all problems. Each file must be no larger than 20 MiB. An attached code file or notebook may be up to 5 MiB, with at most 30 attachments per day. Some problems set their own limits or score files only on the server; see the problem's Rules tab.