[{"data":1,"prerenderedAt":417},["ShallowReactive",2],{"api-nav":3,"api-changelog:1-7-0":362},[4,28,57,104,124,328,342],{"id":5,"title":6,"links":7,"groups":27},"start","Start here",[8,11,15,18,21,24],{"title":9,"to":10},"Overview","\u002Fapi",{"title":12,"to":13,"status":14},"Quickstart","\u002Fapi\u002Fquickstart","available",{"title":16,"to":17,"status":14},"Environments","\u002Fapi\u002Fenvironments",{"title":19,"to":20,"status":14},"Authentication","\u002Fapi\u002Fauthentication",{"title":22,"to":23,"status":14},"Organizations","\u002Fapi\u002Forganizations",{"title":25,"to":26,"status":14},"Permissions","\u002Fapi\u002Fpermissions",[],{"id":29,"title":30,"links":31,"groups":56},"concepts","Concepts",[32,35,38,41,44,47,50,53],{"title":33,"to":34,"status":14},"Requests and responses","\u002Fapi\u002Frequests-and-responses",{"title":36,"to":37,"status":14},"Identifiers","\u002Fapi\u002Fidentifiers",{"title":39,"to":40,"status":14},"Pagination","\u002Fapi\u002Fpagination",{"title":42,"to":43},"Errors","\u002Fapi\u002Ferrors",{"title":45,"to":46,"status":14},"Rate limits","\u002Fapi\u002Frate-limits",{"title":48,"to":49,"status":14},"Retries","\u002Fapi\u002Fretries-and-idempotency",{"title":51,"to":52,"status":14},"Security","\u002Fapi\u002Fsecurity",{"title":54,"to":55,"status":14},"Versioning","\u002Fapi\u002Fversioning",[],{"id":58,"title":59,"links":60,"groups":103},"resources","Guides",[61,64,67,70,73,76,79,82,85,88,91,94,97,100],{"title":62,"to":63,"status":14},"Students","\u002Fapi\u002Fguides\u002Fstudents",{"title":65,"to":66,"status":14},"Bulk registration","\u002Fapi\u002Fguides\u002Fbulk-registration",{"title":68,"to":69,"status":14},"Passwords","\u002Fapi\u002Fguides\u002Fpasswords",{"title":71,"to":72,"status":14},"Supervisors","\u002Fapi\u002Fguides\u002Fsupervisors",{"title":74,"to":75,"status":14},"Reference data","\u002Fapi\u002Fguides\u002Freference-data",{"title":77,"to":78,"status":14},"API account","\u002Fapi\u002Fguides\u002Fapi-account",{"title":80,"to":81,"status":14},"Sign-in links","\u002Fapi\u002Fguides\u002Fsign-in-links",{"title":83,"to":84,"status":14},"Exams","\u002Fapi\u002Fguides\u002Fexams",{"title":86,"to":87,"status":14},"Applications","\u002Fapi\u002Fguides\u002Fapplications",{"title":89,"to":90,"status":14},"Settling payments","\u002Fapi\u002Fguides\u002Fsettling-payments",{"title":92,"to":93,"status":14},"Wallet","\u002Fapi\u002Fguides\u002Fwallet",{"title":95,"to":96,"status":14},"Group challenges","\u002Fapi\u002Fguides\u002Fgroup-challenges",{"title":98,"to":99,"status":14},"Certificates and reports","\u002Fapi\u002Fguides\u002Fcertificates-and-reports",{"title":101,"to":102,"status":14},"Build your own client","\u002Fapi\u002Fclients\u002Fbuild-your-own",[],{"id":105,"title":106,"links":107,"groups":123},"tutorials","Tutorials",[108,111,114,117,120],{"title":109,"to":110,"status":14},"Register and apply","\u002Fapi\u002Ftutorials\u002Fregister-and-apply",{"title":112,"to":113,"status":14},"Send a student to the olympiad's site","\u002Fapi\u002Ftutorials\u002Fsend-student-to-panel",{"title":115,"to":116,"status":14},"Change an application","\u002Fapi\u002Ftutorials\u002Fchange-an-application",{"title":118,"to":119,"status":14},"Collect results","\u002Fapi\u002Ftutorials\u002Fcollect-results",{"title":121,"to":122,"status":14},"Token handling","\u002Fapi\u002Ftutorials\u002Ftoken-handling",[],{"id":125,"title":126,"links":127,"groups":134},"reference","Reference",[128,131],{"title":129,"to":130},"All endpoints","\u002Fapi\u002Freference",{"title":132,"to":133},"Sandbox console","\u002Fapi\u002Fconsole",[135,144,154,163,187,227,233,251,282,298],{"tag":136,"slug":137,"links":138},"Health","health",[139],{"title":140,"to":141,"method":142,"deprecated":143},"Check that the API is up","\u002Fapi\u002Freference\u002Fget-health","GET",false,{"tag":77,"slug":145,"links":146},"api-account",[147,151],{"title":148,"to":149,"method":150,"deprecated":143},"Revoke the token you send, before it expires","\u002Fapi\u002Freference\u002Frevoke-token","POST",{"title":152,"to":153,"method":142,"deprecated":143},"Fetch the API account your token belongs to","\u002Fapi\u002Freference\u002Fget-current-api-account",{"tag":92,"slug":155,"links":156},"wallet",[157,160],{"title":158,"to":159,"method":142,"deprecated":143},"Read your wallet: credits granted, spent and remaining","\u002Fapi\u002Freference\u002Fget-wallet",{"title":161,"to":162,"method":142,"deprecated":143},"List your wallet history","\u002Fapi\u002Freference\u002Flist-wallet-entries",{"tag":74,"slug":164,"links":165},"reference-data",[166,169,172,175,178,181,184],{"title":167,"to":168,"method":142,"deprecated":143},"List the countries a student can be registered in","\u002Fapi\u002Freference\u002Flist-countries",{"title":170,"to":171,"method":142,"deprecated":143},"Fetch one country by its id","\u002Fapi\u002Freference\u002Fget-country",{"title":173,"to":174,"method":142,"deprecated":143},"List the subdivisions (states) of a country","\u002Fapi\u002Freference\u002Flist-country-subdivisions",{"title":176,"to":177,"method":142,"deprecated":143},"List the grades a student can be registered with","\u002Fapi\u002Freference\u002Flist-grades",{"title":179,"to":180,"method":142,"deprecated":143},"Fetch one grade by its id","\u002Fapi\u002Freference\u002Fget-grade",{"title":182,"to":183,"method":142,"deprecated":143},"List the organizations and their ids","\u002Fapi\u002Freference\u002Flist-organizations",{"title":185,"to":186,"method":142,"deprecated":143},"Fetch one organization by its id","\u002Fapi\u002Freference\u002Fget-organization",{"tag":62,"slug":188,"links":189},"students",[190,193,196,199,202,205,208,212,215,218,221,224],{"title":191,"to":192,"method":142,"deprecated":143},"List your students","\u002Fapi\u002Freference\u002Flist-students",{"title":194,"to":195,"method":150,"deprecated":143},"Register a student","\u002Fapi\u002Freference\u002Fregister-student",{"title":197,"to":198,"method":150,"deprecated":143},"Check a registration without registering the student","\u002Fapi\u002Freference\u002Fcheck-student-registration",{"title":200,"to":201,"method":150,"deprecated":143},"Register many students at once","\u002Fapi\u002Freference\u002Fcreate-student-import",{"title":203,"to":204,"method":142,"deprecated":143},"Follow a batch of students you sent","\u002Fapi\u002Freference\u002Fget-student-import",{"title":206,"to":207,"method":142,"deprecated":143},"Fetch one of your students","\u002Fapi\u002Freference\u002Fget-student",{"title":209,"to":210,"method":211,"deprecated":143},"Update one of your students","\u002Fapi\u002Freference\u002Fupdate-student","PUT",{"title":213,"to":214,"method":211,"deprecated":143},"Set the sign-in password of one of your students","\u002Fapi\u002Freference\u002Fset-student-password",{"title":216,"to":217,"method":142,"deprecated":143},"List your students who can use this organization","\u002Fapi\u002Freference\u002Flist-org-students",{"title":219,"to":220,"method":142,"deprecated":143},"Fetch one of your students, if they can use this organization","\u002Fapi\u002Freference\u002Fget-org-student",{"title":222,"to":223,"method":211,"deprecated":143},"Update one of your students and give them access to this organization","\u002Fapi\u002Freference\u002Fupdate-org-student",{"title":225,"to":226,"method":211,"deprecated":143},"Link one of your students to a supervisor on this organization","\u002Fapi\u002Freference\u002Flink-student-supervisor",{"tag":80,"slug":228,"links":229},"sign-in-links",[230],{"title":231,"to":232,"method":150,"deprecated":143},"Create a single-use sign-in link for one of your students","\u002Fapi\u002Freference\u002Fcreate-signin-link",{"tag":83,"slug":234,"links":235},"exams",[236,239,242,245,248],{"title":237,"to":238,"method":142,"deprecated":143},"List the exams open for applications","\u002Fapi\u002Freference\u002Flist-exams",{"title":240,"to":241,"method":142,"deprecated":143},"List an organization’s exam categories","\u002Fapi\u002Freference\u002Flist-exam-categories",{"title":243,"to":244,"method":142,"deprecated":143},"Fetch one exam category","\u002Fapi\u002Freference\u002Fget-exam-category",{"title":246,"to":247,"method":142,"deprecated":143},"List the exams one of your students can apply to","\u002Fapi\u002Freference\u002Flist-available-exams",{"title":249,"to":250,"method":142,"deprecated":143},"Fetch one exam that is open for applications","\u002Fapi\u002Freference\u002Fget-exam",{"tag":86,"slug":252,"links":253},"applications",[254,257,260,263,266,269,272,275,279],{"title":255,"to":256,"method":142,"deprecated":143},"List your students’ applications in this organization","\u002Fapi\u002Freference\u002Flist-applications",{"title":258,"to":259,"method":150,"deprecated":143},"Enter one of your students for an exam","\u002Fapi\u002Freference\u002Fcreate-application",{"title":261,"to":262,"method":142,"deprecated":143},"List your students’ applications for one exam","\u002Fapi\u002Freference\u002Flist-exam-applications",{"title":264,"to":265,"method":142,"deprecated":143},"List one of your students’ applications in this organization","\u002Fapi\u002Freference\u002Flist-student-applications",{"title":267,"to":268,"method":150,"deprecated":143},"Pay several applications from your wallet","\u002Fapi\u002Freference\u002Fpay-applications-from-wallet",{"title":270,"to":271,"method":142,"deprecated":143},"Fetch one of your students’ applications","\u002Fapi\u002Freference\u002Fget-application",{"title":273,"to":274,"method":211,"deprecated":143},"Move one of your students’ applications to another exam","\u002Fapi\u002Freference\u002Fmove-application",{"title":276,"to":277,"method":278,"deprecated":143},"Withdraw one of your students from an exam","\u002Fapi\u002Freference\u002Fdelete-application","DELETE",{"title":280,"to":281,"method":150,"deprecated":143},"Pay one application from your wallet","\u002Fapi\u002Freference\u002Fpay-application-from-wallet",{"tag":283,"slug":284,"links":285},"Documents","documents",[286,289,292,295],{"title":287,"to":288,"method":142,"deprecated":143},"Download a certificate file","\u002Fapi\u002Freference\u002Fdownload-certificate",{"title":290,"to":291,"method":142,"deprecated":143},"List one of your students’ released certificates","\u002Fapi\u002Freference\u002Flist-student-certificates",{"title":293,"to":294,"method":142,"deprecated":143},"Download a result report file","\u002Fapi\u002Freference\u002Fdownload-report",{"title":296,"to":297,"method":142,"deprecated":143},"List one of your students’ released result reports","\u002Fapi\u002Freference\u002Flist-student-reports",{"tag":95,"slug":299,"links":300},"group-challenges",[301,304,307,310,313,316,319,322,325],{"title":302,"to":303,"method":142,"deprecated":143},"List the group challenges an organization runs","\u002Fapi\u002Freference\u002Flist-group-challenges",{"title":305,"to":306,"method":142,"deprecated":143},"Fetch one group challenge","\u002Fapi\u002Freference\u002Fget-group-challenge",{"title":308,"to":309,"method":142,"deprecated":143},"List the groups your students are in for a group challenge","\u002Fapi\u002Freference\u002Flist-group-challenge-groups",{"title":311,"to":312,"method":142,"deprecated":143},"Fetch one group, with its steps and files","\u002Fapi\u002Freference\u002Fget-group-challenge-group",{"title":314,"to":315,"method":142,"deprecated":143},"List what has happened in one group","\u002Fapi\u002Freference\u002Flist-group-challenge-activity",{"title":317,"to":318,"method":150,"deprecated":143},"Send a group’s finished work for one of your students","\u002Fapi\u002Freference\u002Fsubmit-group-challenge-work",{"title":320,"to":321,"method":150,"deprecated":143},"Submit one step of a group for one of your students","\u002Fapi\u002Freference\u002Fsubmit-group-challenge-step",{"title":323,"to":324,"method":142,"deprecated":143},"List your students’ eligibility and groups for a group challenge","\u002Fapi\u002Freference\u002Flist-group-challenge-students",{"title":326,"to":327,"method":142,"deprecated":143},"Fetch one of your students’ eligibility and group for a group challenge","\u002Fapi\u002Freference\u002Fget-group-challenge-student",{"id":329,"title":330,"links":331,"groups":341},"agents","AI agents",[332,335,338],{"title":333,"to":334},"AI connections","\u002Fapi\u002Fmcp",{"title":336,"to":337},"What it can do","\u002Fapi\u002Fmcp\u002Ftools",{"title":339,"to":340},"Agent skills","\u002Fapi\u002Fskills",[],{"id":343,"title":344,"links":345,"groups":361},"help","Help",[346,349,352,355,358],{"title":347,"to":348,"status":14},"Glossary","\u002Fapi\u002Fglossary",{"title":350,"to":351,"status":14},"FAQ","\u002Fapi\u002Ffaq",{"title":353,"to":354,"status":14},"Troubleshooting","\u002Fapi\u002Ftroubleshooting",{"title":356,"to":357,"status":14},"Support","\u002Fapi\u002Fsupport",{"title":359,"to":360},"Changelog","\u002Fapi\u002Fchangelog",[],{"entry":363,"body":410,"newer":411,"older":414},{"path":364,"version":365,"date":366,"breaking":143,"summary":367,"description":367,"changes":368,"longForm":143,"preview":143},"\u002Fapi\u002Fchangelog\u002F1-7-0","1.7.0","2026-11-09","7 changes: 3 added, 3 changed, 1 removed.",[369,378,385,388,392,396,401],{"type":370,"breaking":143,"text":371,"operations":372},"added","**Wallet.** Main Team can now give your account credits for each olympiad, and you spend them to pay applications. A credit is a convenience: an application paid with it is marked paid at once, and the amount for it is still due to Main Team and settled afterwards by bank transfer. The wallet is not self-service: Main Team opens it only after an agreement and on your request (ask your Main Team contact or info@main-team.org), and bank transfer stays the default way to pay. One credit pays one application that has a price; a free exam never takes one. `getWallet` (`GET \u002Fv1\u002Fwallet`) and `listWalletEntries` (`GET \u002Fv1\u002Fwallet\u002Fentries`), under the new permission `wallet\u002Fread` on `mto`, read your balance (granted, spent and remaining for each olympiad, what the spent credits paid in cents and their currency, `USD` for neo and `EUR` for the others) and the history of every credit added and spent, with filters. `payApplicationFromWallet` (`POST \u002Fv1\u002F{organizationId}\u002Fapplication\u002F{applicationId}\u002Fwallet-pay`) and `payApplicationsFromWallet` (`POST \u002Fv1\u002F{organizationId}\u002Fapplication\u002Fwallet-pay`, 1 to 100 applications, all or nothing, one reference and one invoice number, 30 requests a minute) pay applications that exist already, under the new permission `application\u002Fpay`. `createApplication` takes an optional `walletPay` and answers `data.wallet`; a repeat call with `walletPay: true` pays a payment that is still pending. The application, its payment and the debit are written together or not at all. Without a wallet, nothing changes: every wallet operation and `walletPay: true` answer `403` with `error.details.reason` `wallet_not_enabled`. New reasons under existing error codes: `forbidden` (`wallet_not_enabled`, `permission_missing`), `conflict` (`insufficient_credits`, with `error.details.organizations`, `already_paid`, `payment_canceled`, `payment_in_progress`, `payment_changed`) and `service_unavailable` (`wallet_unavailable`). A role of `application\u002F*`, `*\u002F*` or `*` grants `application\u002Fpay`, and `*\u002Fread`, `*\u002F*` or `*` grants `wallet\u002Fread`; spending still needs a wallet Main Team has enabled. Reversals are Main Team's, never the API's.",[373,374,375,376,377],"getWallet","listWalletEntries","payApplicationFromWallet","payApplicationsFromWallet","createApplication",{"type":370,"breaking":143,"text":379,"operations":380},"**Entering a student for exams while registering them.** `registerStudent` and each row of `createStudentImport` take an optional `exams`: up to 10 entries of `{ organizationId, examId }` (an import: 2000 in the whole batch), checked by the rules `createApplication` applies. The student, their registration on each olympiad named, the applications and their payments are saved together or not at all. `registerStudent` and `createStudentImport` also take an optional `walletPay`: every priced exam is paid from your wallet, one credit each, in that same write, so a wallet that cannot cover the exams creates nothing, not even the student. `walletPay: true` always needs an enabled wallet (`403` `wallet_not_enabled` otherwise, even when every exam is free) and `application\u002Fcreate` and `application\u002Fpay` on every organization named (`403` `permission_missing`, listing what is missing). `registerStudent` answers `data.applications` (and `data.wallet`); `checkStudentRegistration` takes `exams` and `walletPay` and answers `data.exams` (price, currency, `free`, `credits`, or the `problem`) and `data.wallet` (`enabled`, `needed`, `available`, `sufficient`), and writes nothing. For an import, `getStudentImport` adds `walletPay`, `creditsNeeded` and, on each registered row, `applications`. The credit check when an import is submitted is advisory (`409` `insufficient_credits`, every organization the batch needs); the credits are taken when it runs. **Closed sets gain values:** a row `code` can be `exam_not_offered` or `exam_conflict`, and an import `failure.code` can be `insufficient_credits` or `wallet_not_enabled`, with `failure.details.organizations`. These values are reachable only by requests that send `exams` or `walletPay`, so no working call changes; a client that switches over these sets exhaustively needs the new cases. A batch sent again with `walletPay` is not mistaken for the same batch sent without it. Without `exams` and `walletPay` both operations behave exactly as before.",[381,382,377,383,384],"registerStudent","createStudentImport","checkStudentRegistration","getStudentImport",{"type":370,"breaking":143,"text":386,"operations":387},"`checkStudentRegistration` answers `data.willCreate`, `{ city, school }`: `true` for a `city` or `school` name that is not in our list yet and would be added when you register (see Changed). The check still writes nothing. Additive: ignore the field if you do not need it.",[383],{"type":389,"breaking":143,"text":390,"operations":391},"changed","`createApplication` no longer answers `409` (`Student has never signed in to …`) for a student you registered here who has not signed in to that organization yet: it creates the student's record in the organization first, the one the student's first sign-in finds and updates, and then the application. It still answers that `409` when the organization already has an account with the student's email address, or Main Team has already assigned exams to the student; the first sign-in settles those. The other operations that need the organization's record are unchanged.",[377],{"type":389,"breaking":143,"text":393,"operations":394},"`createApplication` and `moveApplication` price a `coding` application by the CodeCombat and Codementum bundle rule the website already uses: once the student has paid one of those exams this season, another exam of the same category costs 15 and one of the other category 30 (15 once one of that category is paid too), never more than the exam's own price. Before, the payment was always the exam's own price. The exam lists still show the exam's price; the payment shows what is due. A paid application moves between the two categories at the price it was paid at. Other organizations and categories are unchanged.",[377,395],"moveApplication",{"type":389,"breaking":143,"text":397,"operations":398},"If a school or city name is not in our list yet, `registerStudent`, `createStudentImport`, `updateStudent` and `updateOrgStudent` now add it automatically. Before, such a name was refused with `400 bad_request` (`… is not a known school. This API does not create reference data.`). `checkStudentRegistration` shows beforehand which names would be added (`willCreate`), so you can fix a typo first. A new name may be at most 120 characters for a school and 80 for a city, without `\u003C` or `>`; a name that breaks this is still refused (`400`, row code `unknown_reference` in an import). A `country` or `grade` that matches nothing, and an `_id` that matches nothing, are refused as before. Not a breaking change: only calls that failed before now succeed.",[381,382,399,400,383],"updateStudent","updateOrgStudent",{"type":402,"breaking":143,"text":403,"operations":404},"removed","An application no longer carries `ExamBucksRedeemed`. `listApplications`, `listExamApplications`, `listStudentApplications`, `getApplication`, `createApplication`, `moveApplication` and `deleteApplication` returned it in `data` (as `false`, or `true` on an old record) although no response schema declared it: it never had a meaning for a partner. It is gone from the examples in the documentation too. Not a breaking change: the field was undocumented. A client that read it must treat a missing field as `false`, and a client that sent it was already refused (`400`, `property ExamBucksRedeemed should not exist`).",[405,406,407,408,377,395,409],"listApplications","listExamApplications","listStudentApplications","getApplication","deleteApplication",null,{"path":412,"version":413},"\u002Fapi\u002Fchangelog\u002F1-7-1","1.7.1",{"path":415,"version":416},"\u002Fapi\u002Fchangelog\u002F1-6-0","1.6.0",1795776469415]