[{"data":1,"prerenderedAt":537},["ShallowReactive",2],{"api-nav":3,"api-changelog:1-5-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":426,"newer":531,"older":534},{"path":364,"version":365,"date":366,"breaking":143,"summary":367,"description":368,"changes":369,"longForm":425,"preview":143},"\u002Fapi\u002Fchangelog\u002F1-5-0","1.5.0","2026-10-24","Students can belong to a subdivision, such as a United States state, which decides the time of a local exam and which state-targeted exams they are offered. A United States student now needs one. One new operation, one new optional field and one new error code; nothing is removed.","Subdivisions (United States states) on students and exams, the listCountrySubdivisions operation, and the subdivision_required error.",[370,377,391,396,405,409,413,416,419,422],{"type":371,"breaking":143,"text":372,"operations":373},"added","`listCountrySubdivisions` (`GET \u002Fv1\u002Fcountry\u002F{id}\u002Fsubdivision`) lists the subdivisions of a country, such as the 50 United States and the District of Columbia, a page at a time, with each one's `_id`, ISO 3166-2 `code`, `name` and `tz`. It needs the `country\u002Fread` permission you already hold for `listCountries`, so no role changes. An unknown or reserved country answers `404 not_found`, as `getCountry` does; a country without subdivisions answers an empty page, which means its students need no subdivision.",[374,375,376],"listCountrySubdivisions","listCountries","getCountry",{"type":371,"breaking":143,"text":378,"operations":379},"The student operations take an optional `subdivision`: `registerStudent`, `checkStudentRegistration`, `createStudentImport` (on each row), `updateStudent` and `updateOrgStudent`. Send the subdivision's `_id` or its full ISO 3166-2 code (`US-CA`, never a bare `CA` or a name). It must belong to the student's `country`; anything else answers `400 bad_request`. Subdivision `_id`s are the same in every organization and in the sandbox. A student's `username` never depends on it. `getStudent`, `listStudents`, `getOrgStudent`, `listOrgStudents`, `linkStudentSupervisor` and `setStudentPassword` return it (resolved into a record on the reads, an id on the writes), and `checkStudentRegistration` returns it in `resolved` and may list it in `problems[].field`.",[380,381,382,383,384,385,386,387,388,389,390],"registerStudent","checkStudentRegistration","createStudentImport","updateStudent","updateOrgStudent","getStudent","listStudents","getOrgStudent","listOrgStudents","linkStudentSupervisor","setStudentPassword",{"type":371,"breaking":143,"text":392,"operations":393},"`listCountries` and `getCountry` return `subdivisionRequired` (`true` for the United States) and `subdivisionLabel` (`State`) on a country that has them, and in the `countries` an exam or a student carries (`listExams`, `getExam`, `getStudent` and the other reads that resolve a country).",[375,376,394,395,385],"listExams","getExam",{"type":371,"breaking":143,"text":397,"operations":398},"Exams can be limited to states: `listExams`, `getExam`, `listAvailableExams`, `getApplication`, `listApplications` and `listStudentApplications` return `subdivisions` on an exam. An exam that lists states of the student's country is offered only to students of those states (`listAvailableExams`), and `createApplication` and `moveApplication` answer `409 conflict` (\"Exam is not available in this student's state. It is offered in …\") for any other student of that country. An exam that lists no states behaves as before.",[394,395,399,400,401,402,403,404],"listAvailableExams","getApplication","listApplications","listStudentApplications","createApplication","moveApplication",{"type":371,"breaking":143,"text":406,"operations":407},"A new error code, `subdivision_required` (`400`), and the same code as a row code of `createStudentImport` and `getStudentImport`: the student's country needs a subdivision and none is given or stored. See the error reference.",[382,408],"getStudentImport",{"type":410,"breaking":143,"text":411,"operations":412},"changed","**Versioning exception: a United States student needs a state.** For a country whose `subdivisionRequired` is `true`, `registerStudent` and each row of `createStudentImport` need a `subdivision`, and `checkStudentRegistration` reports its absence in `problems`. A body that omitted it and was accepted before is now refused with `400 subdivision_required` (a row with the row code `subdivision_required`). This is deliberately not announced as a breaking change, because no field became required in the contract: the rule follows the country's own `subdivisionRequired` flag, which is `false` for every country until the platform switches it on, and countries without subdivisions are never affected. Sandbox students in the United States need a state too.",[380,382,381],{"type":410,"breaking":143,"text":414,"operations":415},"`updateStudent` and `updateOrgStudent` check the state only when the body changes `country` or sends `subdivision`: a country that needs a state, with no state of that country on the student or in the body, is refused with `400 subdivision_required`, and a country without states drops the old country's state. A phone change on an existing student is never refused for want of a state.",[383,384],{"type":410,"breaking":143,"text":417,"operations":418},"`listAvailableExams`, `createApplication` and `moveApplication` answer `400 subdivision_required` for a student whose country needs a state and who has none, instead of offering a partial list. Reading and updating the student are not affected.",[399,403,404],{"type":410,"breaking":143,"text":420,"operations":421},"An exam's `countries` and the ids `listCountries` returns are the same ids (the platform keeps one id per country); the documentation no longer says they may differ. Nothing enforces it, so comparing by `iso2` still always works.",[375],{"type":410,"breaking":143,"text":423,"operations":424},"`tz` on a country is documented as the zone for students without a subdivision; the example showed `America\u002FNew_York`, and the United States row is `America\u002FChicago`. A student with a `subdivision` sits a `local` exam in the subdivision's own `tz`.",[],true,{"type":427,"value":428,"toc":522},"minimark",[429,443,448,469,473,497,501,512,516],[430,431,432,433,437,438,442],"p",{},"Version 1.5.0 adds a layer below the country. A student can belong to a ",[434,435,436],"strong",{},"subdivision"," (today, a\nUnited States state), and the platform treats it like a country for the time of a ",[439,440,441],"code",{},"local"," exam and for\nwhich exams a student is offered. It adds one operation, one optional field, one error code and\nremoves nothing.",[444,445,447],"h2",{"id":446},"listing-subdivisions","Listing subdivisions",[430,449,450,455,456,459,460,463,464,468],{},[451,452,453],"a",{"href":174},[439,454,374],{}," lists the subdivisions of a\ncountry. A country whose ",[439,457,458],{},"subdivisionRequired"," is ",[439,461,462],{},"true"," needs every student to have one. See\n",[451,465,467],{"href":466},"\u002Fapi\u002Fguides\u002Freference-data#subdivisions","Subdivisions",".",[444,470,472],{"id":471},"sending-a-subdivision","Sending a subdivision",[430,474,475,476,478,479,482,483,486,487,493,494,468],{},"The student operations take ",[439,477,436],{},", as the ",[439,480,481],{},"_id"," or the full ISO 3166-2 code (",[439,484,485],{},"US-CA","). It is\nlooked up inside the student's country. A United States registration without it is refused with\n",[451,488,490],{"href":489},"\u002Fapi\u002Ferrors#subdivision_required",[439,491,492],{},"subdivision_required",". It never changes the username. See\n",[451,495,62],{"href":496},"\u002Fapi\u002Fguides\u002Fstudents#how-reference-fields-resolve",[444,498,500],{"id":499},"state-targeted-exams","State-targeted exams",[430,502,503,504,507,508,468],{},"An exam can list states. It is then offered only to students of those states in the countries it\nnames, and applying any other student answers ",[439,505,506],{},"409",". An exam that lists no states behaves as before.\nSee ",[451,509,511],{"href":510},"\u002Fapi\u002Fguides\u002Fexams#exams-for-some-states-only","Exams for some states only",[444,513,515],{"id":514},"before-you-upgrade","Before you upgrade",[430,517,518,519,521],{},"If you register United States students, add the state to your registration, and set it on the students\nyou registered earlier with ",[439,520,383],{}," before entering them for exams. Their usernames do not\nchange. Code written against 1.4.0 for other countries keeps working without a change.",{"title":523,"searchDepth":524,"depth":525,"links":526},"",2,3,[527,528,529,530],{"id":446,"depth":524,"text":447},{"id":471,"depth":524,"text":472},{"id":499,"depth":524,"text":500},{"id":514,"depth":524,"text":515},{"path":532,"version":533},"\u002Fapi\u002Fchangelog\u002F1-5-1","1.5.1",{"path":535,"version":536},"\u002Fapi\u002Fchangelog\u002F1-4-0","1.4.0",1795776469387]