[{"data":1,"prerenderedAt":1563},["ShallowReactive",2],{"api-nav":3,"api-spec:index":351,"api-spec:op:get-student-import":636,"api-permissions-guide":1013,"api-reference-doc:get-student-import":1014},[4,28,57,95,115,301,317,331],{"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":94},"resources","Guides",[61,64,67,70,73,76,79,82,85,88,91],{"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},"Group challenges","\u002Fapi\u002Fguides\u002Fgroup-challenges",{"title":92,"to":93,"status":14},"Certificates and reports","\u002Fapi\u002Fguides\u002Fcertificates-and-reports",[],{"id":96,"title":97,"links":98,"groups":114},"tutorials","Tutorials",[99,102,105,108,111],{"title":100,"to":101,"status":14},"Register and apply","\u002Fapi\u002Ftutorials\u002Fregister-and-apply",{"title":103,"to":104,"status":14},"Send a student to the panel","\u002Fapi\u002Ftutorials\u002Fsend-student-to-panel",{"title":106,"to":107,"status":14},"Change an application","\u002Fapi\u002Ftutorials\u002Fchange-an-application",{"title":109,"to":110,"status":14},"Collect results","\u002Fapi\u002Ftutorials\u002Fcollect-results",{"title":112,"to":113,"status":14},"Token handling","\u002Fapi\u002Ftutorials\u002Ftoken-handling",[],{"id":116,"title":117,"links":118,"groups":125},"reference","Reference",[119,122],{"title":120,"to":121},"All endpoints","\u002Fapi\u002Freference",{"title":123,"to":124},"Sandbox console","\u002Fapi\u002Fconsole",[126,135,145,166,206,212,230,255,271],{"tag":127,"slug":128,"links":129},"Health","health",[130],{"title":131,"to":132,"method":133,"deprecated":134},"Check that the API is up","\u002Fapi\u002Freference\u002Fget-health","GET",false,{"tag":77,"slug":136,"links":137},"api-account",[138,142],{"title":139,"to":140,"method":141,"deprecated":134},"Revoke the token you send, before it expires","\u002Fapi\u002Freference\u002Frevoke-token","POST",{"title":143,"to":144,"method":133,"deprecated":134},"Fetch the API account your token belongs to","\u002Fapi\u002Freference\u002Fget-current-api-account",{"tag":74,"slug":146,"links":147},"reference-data",[148,151,154,157,160,163],{"title":149,"to":150,"method":133,"deprecated":134},"List the countries a student can be registered in","\u002Fapi\u002Freference\u002Flist-countries",{"title":152,"to":153,"method":133,"deprecated":134},"Fetch one country by its id","\u002Fapi\u002Freference\u002Fget-country",{"title":155,"to":156,"method":133,"deprecated":134},"List the grades a student can be registered with","\u002Fapi\u002Freference\u002Flist-grades",{"title":158,"to":159,"method":133,"deprecated":134},"Fetch one grade by its id","\u002Fapi\u002Freference\u002Fget-grade",{"title":161,"to":162,"method":133,"deprecated":134},"List the organizations and their ids","\u002Fapi\u002Freference\u002Flist-organizations",{"title":164,"to":165,"method":133,"deprecated":134},"Fetch one organization by its id","\u002Fapi\u002Freference\u002Fget-organization",{"tag":62,"slug":167,"links":168},"students",[169,172,175,178,181,184,187,191,194,197,200,203],{"title":170,"to":171,"method":133,"deprecated":134},"List your students","\u002Fapi\u002Freference\u002Flist-students",{"title":173,"to":174,"method":141,"deprecated":134},"Register a student","\u002Fapi\u002Freference\u002Fregister-student",{"title":176,"to":177,"method":141,"deprecated":134},"Check a registration without registering the student","\u002Fapi\u002Freference\u002Fcheck-student-registration",{"title":179,"to":180,"method":141,"deprecated":134},"Register many students at once","\u002Fapi\u002Freference\u002Fcreate-student-import",{"title":182,"to":183,"method":133,"deprecated":134},"Follow a batch of students you sent","\u002Fapi\u002Freference\u002Fget-student-import",{"title":185,"to":186,"method":133,"deprecated":134},"Fetch one of your students","\u002Fapi\u002Freference\u002Fget-student",{"title":188,"to":189,"method":190,"deprecated":134},"Update one of your students","\u002Fapi\u002Freference\u002Fupdate-student","PUT",{"title":192,"to":193,"method":190,"deprecated":134},"Set the sign-in password of one of your students","\u002Fapi\u002Freference\u002Fset-student-password",{"title":195,"to":196,"method":133,"deprecated":134},"List your students who can use this organization","\u002Fapi\u002Freference\u002Flist-org-students",{"title":198,"to":199,"method":133,"deprecated":134},"Fetch one of your students, if they can use this organization","\u002Fapi\u002Freference\u002Fget-org-student",{"title":201,"to":202,"method":190,"deprecated":134},"Update one of your students and give them access to this organization","\u002Fapi\u002Freference\u002Fupdate-org-student",{"title":204,"to":205,"method":190,"deprecated":134},"Link one of your students to a supervisor on this organization","\u002Fapi\u002Freference\u002Flink-student-supervisor",{"tag":80,"slug":207,"links":208},"sign-in-links",[209],{"title":210,"to":211,"method":141,"deprecated":134},"Create a single-use sign-in link for one of your students","\u002Fapi\u002Freference\u002Fcreate-signin-link",{"tag":83,"slug":213,"links":214},"exams",[215,218,221,224,227],{"title":216,"to":217,"method":133,"deprecated":134},"List the exams open for applications","\u002Fapi\u002Freference\u002Flist-exams",{"title":219,"to":220,"method":133,"deprecated":134},"List an organization’s exam categories","\u002Fapi\u002Freference\u002Flist-exam-categories",{"title":222,"to":223,"method":133,"deprecated":134},"Fetch one exam category","\u002Fapi\u002Freference\u002Fget-exam-category",{"title":225,"to":226,"method":133,"deprecated":134},"List the exams one of your students can apply to","\u002Fapi\u002Freference\u002Flist-available-exams",{"title":228,"to":229,"method":133,"deprecated":134},"Fetch one exam that is open for applications","\u002Fapi\u002Freference\u002Fget-exam",{"tag":86,"slug":231,"links":232},"applications",[233,236,239,242,245,248,251],{"title":234,"to":235,"method":133,"deprecated":134},"List your students’ applications in this organization","\u002Fapi\u002Freference\u002Flist-applications",{"title":237,"to":238,"method":141,"deprecated":134},"Enter one of your students for an exam","\u002Fapi\u002Freference\u002Fcreate-application",{"title":240,"to":241,"method":133,"deprecated":134},"List your students’ applications for one exam","\u002Fapi\u002Freference\u002Flist-exam-applications",{"title":243,"to":244,"method":133,"deprecated":134},"List one of your students’ applications in this organization","\u002Fapi\u002Freference\u002Flist-student-applications",{"title":246,"to":247,"method":133,"deprecated":134},"Fetch one of your students’ applications","\u002Fapi\u002Freference\u002Fget-application",{"title":249,"to":250,"method":190,"deprecated":134},"Move one of your students’ applications to another exam","\u002Fapi\u002Freference\u002Fmove-application",{"title":252,"to":253,"method":254,"deprecated":134},"Withdraw one of your students from an exam","\u002Fapi\u002Freference\u002Fdelete-application","DELETE",{"tag":256,"slug":257,"links":258},"Documents","documents",[259,262,265,268],{"title":260,"to":261,"method":133,"deprecated":134},"Download a certificate file","\u002Fapi\u002Freference\u002Fdownload-certificate",{"title":263,"to":264,"method":133,"deprecated":134},"List one of your students’ released certificates","\u002Fapi\u002Freference\u002Flist-student-certificates",{"title":266,"to":267,"method":133,"deprecated":134},"Download a result report file","\u002Fapi\u002Freference\u002Fdownload-report",{"title":269,"to":270,"method":133,"deprecated":134},"List one of your students’ released result reports","\u002Fapi\u002Freference\u002Flist-student-reports",{"tag":89,"slug":272,"links":273},"group-challenges",[274,277,280,283,286,289,292,295,298],{"title":275,"to":276,"method":133,"deprecated":134},"List the group challenges an organization runs","\u002Fapi\u002Freference\u002Flist-group-challenges",{"title":278,"to":279,"method":133,"deprecated":134},"Fetch one group challenge","\u002Fapi\u002Freference\u002Fget-group-challenge",{"title":281,"to":282,"method":133,"deprecated":134},"List the groups your students are in for a group challenge","\u002Fapi\u002Freference\u002Flist-group-challenge-groups",{"title":284,"to":285,"method":133,"deprecated":134},"Fetch one group, with its steps and files","\u002Fapi\u002Freference\u002Fget-group-challenge-group",{"title":287,"to":288,"method":133,"deprecated":134},"List what has happened in one group","\u002Fapi\u002Freference\u002Flist-group-challenge-activity",{"title":290,"to":291,"method":141,"deprecated":134},"Send a group’s finished work for one of your students","\u002Fapi\u002Freference\u002Fsubmit-group-challenge-work",{"title":293,"to":294,"method":141,"deprecated":134},"Submit one step of a group for one of your students","\u002Fapi\u002Freference\u002Fsubmit-group-challenge-step",{"title":296,"to":297,"method":133,"deprecated":134},"List your students’ eligibility and groups for a group challenge","\u002Fapi\u002Freference\u002Flist-group-challenge-students",{"title":299,"to":300,"method":133,"deprecated":134},"Fetch one of your students’ eligibility and group for a group challenge","\u002Fapi\u002Freference\u002Fget-group-challenge-student",{"id":302,"title":303,"links":304,"groups":316},"clients","Clients",[305,307,310,313],{"title":9,"to":306,"status":14},"\u002Fapi\u002Fclients",{"title":308,"to":309,"status":14},"Node.js","\u002Fapi\u002Fclients\u002Fnode",{"title":311,"to":312,"status":14},"PHP","\u002Fapi\u002Fclients\u002Fphp",{"title":314,"to":315,"status":14},"Build your own","\u002Fapi\u002Fclients\u002Fbuild-your-own",[],{"id":318,"title":319,"links":320,"groups":330},"agents","AI agents",[321,324,327],{"title":322,"to":323},"AI connections","\u002Fapi\u002Fmcp",{"title":325,"to":326},"What it can do","\u002Fapi\u002Fmcp\u002Ftools",{"title":328,"to":329},"Agent skills","\u002Fapi\u002Fskills",[],{"id":332,"title":333,"links":334,"groups":350},"help","Help",[335,338,341,344,347],{"title":336,"to":337,"status":14},"Glossary","\u002Fapi\u002Fglossary",{"title":339,"to":340,"status":14},"FAQ","\u002Fapi\u002Ffaq",{"title":342,"to":343,"status":14},"Troubleshooting","\u002Fapi\u002Ftroubleshooting",{"title":345,"to":346,"status":14},"Support","\u002Fapi\u002Fsupport",{"title":348,"to":349},"Changelog","\u002Fapi\u002Fchangelog",[],{"title":352,"version":353,"description":354,"baseUrl":355,"groups":356},"Main Team API","1.2.0","Register your students, enter them for exams, follow their applications, download their certificates and reports, and sign them in to an organization’s panel.\n\nEvery operation except the health check needs a bearer token: a JWT you sign yourself with HS256 and your account’s `apiSecret`. Put your `apiKey` in both the `kid` header and the `sub` claim, and set `iat` and `exp` at most 3600 seconds apart. Every authentication failure answers the same `401 unauthorized`.","https:\u002F\u002Fapi.main-team.org",[357,368,383,419,484,492,522,561,586],{"tag":127,"slug":128,"description":358,"guide":17,"operations":359},"Whether the API is up. No token needed, so it is the first call to make against an environment.",[360],{"operationId":361,"slug":362,"method":133,"path":363,"tag":127,"summary":131,"deprecated":134,"public":364,"permission":365,"scope":366,"order":367},"getHealth","get-health","\u002Fv1\u002Fhealth",true,null,"public",1,{"tag":77,"slug":136,"description":369,"guide":78,"operations":370},"The account your token belongs to, and revoking a token before it expires.",[371,378],{"operationId":372,"slug":373,"method":141,"path":374,"tag":77,"summary":139,"deprecated":134,"public":134,"permission":375,"scope":376,"order":377},"revokeToken","revoke-token","\u002Fv1\u002Fapi-account\u002Frevoke-token","api\u002F*:$org:$ID","flat",2,{"operationId":379,"slug":380,"method":133,"path":381,"tag":77,"summary":143,"deprecated":134,"public":134,"permission":375,"scope":376,"order":382},"getCurrentApiAccount","get-current-api-account","\u002Fv1\u002Fapi-account\u002Fvalidate-me",3,{"tag":74,"slug":146,"description":384,"guide":75,"operations":385},"Countries, grades and organizations. A student’s `country` and `grade` take these `_id`s, and so does every `:organizationId` in a path.",[386,392,397,403,408,414],{"operationId":387,"slug":388,"method":133,"path":389,"tag":74,"summary":149,"deprecated":134,"public":134,"permission":390,"scope":376,"order":391},"listCountries","list-countries","\u002Fv1\u002Fcountry","country\u002Fread:$org:$ID",4,{"operationId":393,"slug":394,"method":133,"path":395,"tag":74,"summary":152,"deprecated":134,"public":134,"permission":390,"scope":376,"order":396},"getCountry","get-country","\u002Fv1\u002Fcountry\u002F{id}",5,{"operationId":398,"slug":399,"method":133,"path":400,"tag":74,"summary":155,"deprecated":134,"public":134,"permission":401,"scope":376,"order":402},"listGrades","list-grades","\u002Fv1\u002Fgrade","grade\u002Fread:$org:$ID",6,{"operationId":404,"slug":405,"method":133,"path":406,"tag":74,"summary":158,"deprecated":134,"public":134,"permission":401,"scope":376,"order":407},"getGrade","get-grade","\u002Fv1\u002Fgrade\u002F{id}",7,{"operationId":409,"slug":410,"method":133,"path":411,"tag":74,"summary":161,"deprecated":134,"public":134,"permission":412,"scope":376,"order":413},"listOrganizations","list-organizations","\u002Fv1\u002Forganization","organization\u002Fread:$org:$ID",8,{"operationId":415,"slug":416,"method":133,"path":417,"tag":74,"summary":164,"deprecated":134,"public":134,"permission":412,"scope":376,"order":418},"getOrganization","get-organization","\u002Fv1\u002Forganization\u002F{id}",9,{"tag":62,"slug":167,"description":420,"guide":63,"operations":421},"Registering your students, reading and updating them, setting a password, and what each organization holds for them. You only ever see the students your account registered.",[422,428,433,438,443,448,453,458,464,470,475,479],{"operationId":423,"slug":424,"method":133,"path":425,"tag":62,"summary":170,"deprecated":134,"public":134,"permission":426,"scope":376,"order":427},"listStudents","list-students","\u002Fv1\u002Fstudent","student\u002Fread:$org:$ID",10,{"operationId":429,"slug":430,"method":141,"path":425,"tag":62,"summary":173,"deprecated":134,"public":134,"permission":431,"scope":376,"order":432},"registerStudent","register-student","student\u002Fcreate:$org:$ID",11,{"operationId":434,"slug":435,"method":141,"path":436,"tag":62,"summary":176,"deprecated":134,"public":134,"permission":431,"scope":376,"order":437},"checkStudentRegistration","check-student-registration","\u002Fv1\u002Fstudent\u002Fcheck",12,{"operationId":439,"slug":440,"method":141,"path":441,"tag":62,"summary":179,"deprecated":134,"public":134,"permission":431,"scope":376,"order":442},"createStudentImport","create-student-import","\u002Fv1\u002Fstudent\u002Fimport",13,{"operationId":444,"slug":445,"method":133,"path":446,"tag":62,"summary":182,"deprecated":134,"public":134,"permission":431,"scope":376,"order":447},"getStudentImport","get-student-import","\u002Fv1\u002Fstudent\u002Fimport\u002F{importId}",14,{"operationId":449,"slug":450,"method":133,"path":451,"tag":62,"summary":185,"deprecated":134,"public":134,"permission":426,"scope":376,"order":452},"getStudent","get-student","\u002Fv1\u002Fstudent\u002F{studentId}",15,{"operationId":454,"slug":455,"method":190,"path":451,"tag":62,"summary":188,"deprecated":134,"public":134,"permission":456,"scope":376,"order":457},"updateStudent","update-student","student\u002Fupdate:$org:$ID",16,{"operationId":459,"slug":460,"method":190,"path":461,"tag":62,"summary":192,"deprecated":134,"public":134,"permission":462,"scope":376,"order":463},"setStudentPassword","set-student-password","\u002Fv1\u002Fstudent\u002F{studentId}\u002Fpassword","auth\u002Fsignin:$org:$ID",17,{"operationId":465,"slug":466,"method":133,"path":467,"tag":62,"summary":195,"deprecated":134,"public":134,"permission":426,"scope":468,"order":469},"listOrgStudents","list-org-students","\u002Fv1\u002F{organizationId}\u002Fstudent","organization",18,{"operationId":471,"slug":472,"method":133,"path":473,"tag":62,"summary":198,"deprecated":134,"public":134,"permission":426,"scope":468,"order":474},"getOrgStudent","get-org-student","\u002Fv1\u002F{organizationId}\u002Fstudent\u002F{studentId}",19,{"operationId":476,"slug":477,"method":190,"path":473,"tag":62,"summary":201,"deprecated":134,"public":134,"permission":456,"scope":468,"order":478},"updateOrgStudent","update-org-student",20,{"operationId":480,"slug":481,"method":190,"path":482,"tag":62,"summary":204,"deprecated":134,"public":134,"permission":456,"scope":468,"order":483},"linkStudentSupervisor","link-student-supervisor","\u002Fv1\u002F{organizationId}\u002Fstudent\u002F{studentId}\u002Fsupervisor",21,{"tag":80,"slug":207,"description":485,"guide":81,"operations":486},"Links that sign one of your students into an organization’s panel. Each works once and expires two minutes after it is issued.",[487],{"operationId":488,"slug":489,"method":141,"path":490,"tag":80,"summary":210,"deprecated":134,"public":134,"permission":462,"scope":468,"order":491},"createSigninLink","create-signin-link","\u002Fv1\u002F{organizationId}\u002Fauth\u002Fsignin",22,{"tag":83,"slug":213,"description":493,"guide":84,"operations":494},"The exam categories and exams an organization runs, and the ones one of your students can apply to.",[495,501,507,512,517],{"operationId":496,"slug":497,"method":133,"path":498,"tag":83,"summary":216,"deprecated":134,"public":134,"permission":499,"scope":468,"order":500},"listExams","list-exams","\u002Fv1\u002F{organizationId}\u002Fexam","exam\u002Fread:$org:$ID",23,{"operationId":502,"slug":503,"method":133,"path":504,"tag":83,"summary":219,"deprecated":134,"public":134,"permission":505,"scope":468,"order":506},"listExamCategories","list-exam-categories","\u002Fv1\u002F{organizationId}\u002Fexam-category","exam-category\u002Fread:$org:$ID",24,{"operationId":508,"slug":509,"method":133,"path":510,"tag":83,"summary":222,"deprecated":134,"public":134,"permission":505,"scope":468,"order":511},"getExamCategory","get-exam-category","\u002Fv1\u002F{organizationId}\u002Fexam-category\u002F{categoryId}",25,{"operationId":513,"slug":514,"method":133,"path":515,"tag":83,"summary":225,"deprecated":134,"public":134,"permission":499,"scope":468,"order":516},"listAvailableExams","list-available-exams","\u002Fv1\u002F{organizationId}\u002Fexam\u002Favailable\u002F{studentId}",26,{"operationId":518,"slug":519,"method":133,"path":520,"tag":83,"summary":228,"deprecated":134,"public":134,"permission":499,"scope":468,"order":521},"getExam","get-exam","\u002Fv1\u002F{organizationId}\u002Fexam\u002F{examId}",27,{"tag":86,"slug":231,"description":523,"guide":87,"operations":524},"Entering your students for exams: creating, reading, moving and deleting their applications.",[525,531,536,541,546,551,556],{"operationId":526,"slug":527,"method":133,"path":528,"tag":86,"summary":234,"deprecated":134,"public":134,"permission":529,"scope":468,"order":530},"listApplications","list-applications","\u002Fv1\u002F{organizationId}\u002Fapplication","application\u002Fread:$org:$ID",28,{"operationId":532,"slug":533,"method":141,"path":528,"tag":86,"summary":237,"deprecated":134,"public":134,"permission":534,"scope":468,"order":535},"createApplication","create-application","application\u002Fcreate:$org:$ID",29,{"operationId":537,"slug":538,"method":133,"path":539,"tag":86,"summary":240,"deprecated":134,"public":134,"permission":529,"scope":468,"order":540},"listExamApplications","list-exam-applications","\u002Fv1\u002F{organizationId}\u002Fapplication\u002Fexam-applications\u002F{examId}",30,{"operationId":542,"slug":543,"method":133,"path":544,"tag":86,"summary":243,"deprecated":134,"public":134,"permission":529,"scope":468,"order":545},"listStudentApplications","list-student-applications","\u002Fv1\u002F{organizationId}\u002Fapplication\u002Fstudent-applications\u002F{studentId}",31,{"operationId":547,"slug":548,"method":133,"path":549,"tag":86,"summary":246,"deprecated":134,"public":134,"permission":529,"scope":468,"order":550},"getApplication","get-application","\u002Fv1\u002F{organizationId}\u002Fapplication\u002F{applicationId}",32,{"operationId":552,"slug":553,"method":190,"path":549,"tag":86,"summary":249,"deprecated":134,"public":134,"permission":554,"scope":468,"order":555},"moveApplication","move-application","application\u002Fupdate:$org:$ID",33,{"operationId":557,"slug":558,"method":254,"path":549,"tag":86,"summary":252,"deprecated":134,"public":134,"permission":559,"scope":468,"order":560},"deleteApplication","delete-application","application\u002Fdelete:$org:$ID",34,{"tag":256,"slug":257,"description":562,"guide":93,"operations":563},"Your students’ certificates and reports: listing them and downloading the files.",[564,570,575,581],{"operationId":565,"slug":566,"method":133,"path":567,"tag":256,"summary":260,"deprecated":134,"public":134,"permission":568,"scope":468,"order":569},"downloadCertificate","download-certificate","\u002Fv1\u002F{organizationId}\u002Fcertificate\u002Fdownload\u002F{certificateId}","certificate\u002Fread:$org:$ID",35,{"operationId":571,"slug":572,"method":133,"path":573,"tag":256,"summary":263,"deprecated":134,"public":134,"permission":568,"scope":468,"order":574},"listStudentCertificates","list-student-certificates","\u002Fv1\u002F{organizationId}\u002Fcertificate\u002F{userId}",36,{"operationId":576,"slug":577,"method":133,"path":578,"tag":256,"summary":266,"deprecated":134,"public":134,"permission":579,"scope":468,"order":580},"downloadReport","download-report","\u002Fv1\u002F{organizationId}\u002Freport\u002Fdownload\u002F{reportId}","report\u002Fread:$org:$ID",37,{"operationId":582,"slug":583,"method":133,"path":584,"tag":256,"summary":269,"deprecated":134,"public":134,"permission":579,"scope":468,"order":585},"listStudentReports","list-student-reports","\u002Fv1\u002F{organizationId}\u002Freport\u002F{userId}",38,{"tag":89,"slug":272,"description":587,"guide":90,"operations":588},"Online group challenges your students take part in: the challenges, which of your students can join, the groups they are in, each step and its files, what happened in a group, and submitting on your student’s behalf.",[589,595,600,605,610,615,621,626,631],{"operationId":590,"slug":591,"method":133,"path":592,"tag":89,"summary":275,"deprecated":134,"public":134,"permission":593,"scope":468,"order":594},"listGroupChallenges","list-group-challenges","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge","group-challenge\u002Fread:$org:$ID",39,{"operationId":596,"slug":597,"method":133,"path":598,"tag":89,"summary":278,"deprecated":134,"public":134,"permission":593,"scope":468,"order":599},"getGroupChallenge","get-group-challenge","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}",40,{"operationId":601,"slug":602,"method":133,"path":603,"tag":89,"summary":281,"deprecated":134,"public":134,"permission":593,"scope":468,"order":604},"listGroupChallengeGroups","list-group-challenge-groups","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup",41,{"operationId":606,"slug":607,"method":133,"path":608,"tag":89,"summary":284,"deprecated":134,"public":134,"permission":593,"scope":468,"order":609},"getGroupChallengeGroup","get-group-challenge-group","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}",42,{"operationId":611,"slug":612,"method":133,"path":613,"tag":89,"summary":287,"deprecated":134,"public":134,"permission":593,"scope":468,"order":614},"listGroupChallengeActivity","list-group-challenge-activity","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}\u002Factivity",43,{"operationId":616,"slug":617,"method":141,"path":618,"tag":89,"summary":290,"deprecated":134,"public":134,"permission":619,"scope":468,"order":620},"submitGroupChallengeWork","submit-group-challenge-work","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}\u002Ffinal-submit","group-challenge\u002Fsubmit:$org:$ID",44,{"operationId":622,"slug":623,"method":141,"path":624,"tag":89,"summary":293,"deprecated":134,"public":134,"permission":619,"scope":468,"order":625},"submitGroupChallengeStep","submit-group-challenge-step","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}\u002Fstep\u002F{stepId}\u002Fsubmit",45,{"operationId":627,"slug":628,"method":133,"path":629,"tag":89,"summary":296,"deprecated":134,"public":134,"permission":593,"scope":468,"order":630},"listGroupChallengeStudents","list-group-challenge-students","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fstudent",46,{"operationId":632,"slug":633,"method":133,"path":634,"tag":89,"summary":299,"deprecated":134,"public":134,"permission":593,"scope":468,"order":635},"getGroupChallengeStudent","get-group-challenge-student","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fstudent\u002F{studentId}",47,{"operationId":444,"slug":445,"method":133,"path":446,"tag":62,"summary":182,"deprecated":134,"public":134,"permission":431,"scope":376,"order":447,"description":637,"permissions":638,"errors":639,"guide":365,"parameters":667,"requestBody":365,"responses":684,"successStatus":1011,"kind":1012,"paginated":364,"baseUrl":355,"tagDescription":420,"sandbox":364},"Returns one of your imports and one page of its rows, in the order you sent them.\n\n`status` is `queued` until a server picks the batch up, `running` while it registers, then `succeeded` or `failed`. Poll every few seconds; a batch of a thousand takes seconds, not minutes, once it starts.\n\n**On `succeeded`** every row is `registered` and carries the student’s `_id`: keep them, and use them with `getStudent`, `createSigninLink` and `createApplication`. **On anything else** no student of this batch was registered, every row is `skipped`, and `failure` says why; the rows that explain it carry an `error`.\n\nAn import stops being readable 30 days after it finishes, and then answers `404` exactly like one that never existed. The students stay registered. An import another account sent answers the same way.",[431],[640,645,649,654,659,663],{"code":641,"message":642,"status":643,"when":644},"bad_request","Invalid value for '_id': expected ObjectId.",400,"`importId` is not 24 hexadecimal digits.",{"code":646,"status":647,"when":648},"unauthorized",401,"The token is missing or malformed, is not signed with your account’s `apiSecret`, breaks the `iat` and `exp` rules, has expired or been revoked, or its account is not active. All of these answer the same.",{"code":650,"message":651,"status":652,"when":653},"forbidden","Insufficient role permissions",403,"The token is valid, but no role on your account allows `student\u002Fcreate` on `mto`, the organization every operation without `:organizationId` acts on, or a role denies it.",{"code":655,"message":656,"status":657,"when":658},"not_found","Import not found!",404,"No import of yours has this `importId`, it has expired, or bulk registration is not switched on for the environment you are calling. An import another account sent answers the same.",{"code":660,"status":661,"when":662},"too_many_requests",429,"Your account has made more than 100 requests to this operation in the current 60-second window. Wait the seconds in `Retry-After` before sending again.",{"code":664,"status":665,"when":666},"internal_error",500,"Something failed on our side. Retry later, and quote `request_id` if it goes on.",[668,674,680],{"description":669,"in":670,"name":671,"required":364,"schema":672},"The import’s `_id`, as `createStudentImport` returned it.","path","importId",{"type":673},"string",{"description":675,"in":676,"name":677,"required":134,"schema":678},"Page number. Defaults to 1.","query","page",{"example":367,"type":679},"number",{"description":681,"in":676,"name":682,"required":134,"schema":683},"Items per page. Defaults to 20, max 100.","limit",{"example":478,"type":679},{"200":685,"400":858,"401":900,"403":922,"404":943,"429":963,"500":989},{"content":686,"description":846,"headers":847},{"application\u002Fjson":687},{"schema":688},{"allOf":689},[690,726],{"x-ref":691,"description":692,"properties":693,"required":723,"type":721},"#\u002Fcomponents\u002Fschemas\u002FSuccessEnvelope","How every successful JSON response is wrapped. `data` is the result, and each operation declares its shape; list operations add `pagination`. `GET \u002Fv1\u002Fapi-account\u002Fvalidate-me` is the one operation that answers without this envelope.",{"success":694,"message":698,"pagination":701},{"description":695,"enum":696,"example":364,"type":697},"Always `true` on a success.",[364],"boolean",{"description":699,"example":700,"type":673},"A sentence saying what happened, written for a person. Branch on the status and on `data`, not on this.","Request completed successfully.",{"allOf":702,"description":722},[703],{"x-ref":704,"description":705,"properties":706,"required":718,"type":721},"#\u002Fcomponents\u002Fschemas\u002FPaginationMeta","Where one page sits in the whole list.",{"page":707,"limit":709,"total":712,"totalPages":716},{"description":708,"example":367,"minimum":367,"type":679},"The page returned, counting from 1.",{"description":710,"example":478,"maximum":711,"minimum":367,"type":679},"Items per page: the `limit` you sent, 20 if you sent none, and never more than 100.",100,{"description":713,"example":714,"minimum":715,"type":679},"Items across every page.",57,0,{"description":717,"example":382,"minimum":715,"type":679},"Pages at this `limit`: `total \u002F limit`, rounded up.",[677,682,719,720],"total","totalPages","object","On list operations only.",[724,725],"success","message",{"properties":727,"required":843,"type":721},{"message":728,"data":730,"pagination":836},{"example":729,"type":673},"Import fetched successfully.",{"x-ref":731,"description":732,"properties":733,"required":832,"type":721},"#\u002Fcomponents\u002Fschemas\u002FStudentImportResponse","A batch of students you asked to register, and what has happened to it.",{"_id":734,"status":737,"total":745,"registered":748,"clientReference":750,"failure":753,"students":768,"createdAt":819,"startedAt":823,"finishedAt":826,"expiresAt":829},{"description":735,"example":736,"type":673},"The import’s `_id`. Read it with `getStudentImport`.","65f0c2a1d3e4f5a6b7c8d901",{"description":738,"enum":739,"example":740,"type":673},"`queued` until a server picks it up, `running` while it registers, then `succeeded` or `failed`. `cancelled` means an operator stopped it. There is no partial import: on anything but `succeeded` no student of this batch was registered.",[740,741,742,743,744],"queued","running","succeeded","failed","cancelled",{"description":746,"example":747,"type":679},"How many rows you sent.",250,{"description":749,"example":747,"type":679},"How many students were registered: `total` once the import has succeeded, and 0 until then and for ever after a failure.",{"description":751,"example":752,"type":673},"The `clientReference` you sent, if you sent one.","year-10-autumn-2026",{"allOf":754,"description":767},[755],{"x-ref":756,"description":757,"properties":758,"required":765,"type":721},"#\u002Fcomponents\u002Fschemas\u002FStudentImportFailureResponse","Why an import ended the way it did.",{"code":759,"message":762},{"description":760,"example":761,"type":673},"A stable machine code. `rows_rejected`: a row stopped being registrable between the check and the write, most often because its address was registered in between; the rows say which. `forbidden`: the account may no longer register students. `cancelled`: an operator stopped it. `internal_error`: something failed on our side.","rows_rejected",{"description":763,"example":764,"type":673},"Written for a person, and may change: never branch on it.","Two rows could no longer be registered. Nothing was registered.",[766,725],"code","Set once the import has failed or been cancelled.",{"description":769,"items":770,"type":818},"One page of the rows, in the order you sent them. Page it with `page` and `limit`; `pagination.total` counts every row. Absent from the answer to `createStudentImport`, which has nothing to report yet.",{"x-ref":771,"description":772,"properties":773,"required":815,"type":721},"#\u002Fcomponents\u002Fschemas\u002FStudentImportRowResponse","One student of an import.",{"row":774,"email":776,"externalRef":780,"status":783,"studentId":789,"error":792},{"description":775,"example":715,"type":679},"The row’s position in the `students` you sent, counting from 0.",{"description":777,"example":778,"format":779,"type":673},"The address you sent for this row, in lower case.","jane.doe@example.com","email",{"description":781,"example":782,"type":673},"The `externalRef` you sent for this row, if you sent one.","roster-2026-114",{"description":784,"enum":785,"example":787,"type":673},"`pending` until the import runs, then `registered` for every row when it succeeds, or `skipped` for every row when it does not. An import registers all of its students or none of them.",[786,787,788],"pending","registered","skipped",{"description":790,"example":791,"type":673},"The student’s `_id`, on a `registered` row. Use it with `getStudent`, `createSigninLink` and `createApplication`.","6650a1b2c3d4e5f6a7b8c9d0",{"allOf":793,"description":814},[794],{"x-ref":795,"description":796,"properties":797,"required":813,"type":721},"#\u002Fcomponents\u002Fschemas\u002FStudentImportRowErrorResponse","Why one row of an import could not be registered.",{"code":798,"message":807,"studentId":809,"duplicateOf":811},{"description":799,"enum":800,"example":805,"type":673},"A stable machine code: branch on this. `invalid_field` and `unexpected_field` are the row’s own rules; `unknown_reference` is a `country`, `grade`, `city` or `school` that matches nothing; `duplicate_in_request` is the same address twice in your own body; `email_taken_by_your_student` is one of your students; `email_unavailable` is an address that cannot be registered, and the answer never says who holds it.",[801,802,803,804,805,806],"invalid_field","unexpected_field","unknown_reference","duplicate_in_request","email_taken_by_your_student","email_unavailable",{"description":763,"example":808,"type":673},"One of your students already has this email address.",{"description":810,"example":791,"type":673},"On `email_taken_by_your_student`: the `_id` of the student of yours who has the address, so you can update them instead.",{"description":812,"example":437,"type":679},"On `duplicate_in_request`: the earlier row in your own body with the same address.",[766,725],"Why this row could not be registered, when it could not.",[816,779,817],"row","status","array",{"description":820,"example":821,"format":822,"type":673},"When you sent it.","2026-10-06T08:15:00.000Z","date-time",{"description":824,"example":825,"format":822,"type":673},"When a server picked it up.","2026-10-06T08:15:04.000Z",{"description":827,"example":828,"format":822,"type":673},"When it ended, whichever way it ended.","2026-10-06T08:15:09.000Z",{"description":830,"example":831,"format":822,"type":673},"When this import stops being readable. After it, `getStudentImport` answers 404, exactly as it does for an import that never existed. The students stay registered.","2026-11-05T08:15:09.000Z",[833,817,719,787,167,834,835],"_id","createdAt","expiresAt",{"x-ref":704,"description":705,"properties":837,"required":842,"type":721},{"page":838,"limit":839,"total":840,"totalPages":841},{"description":708,"example":367,"minimum":367,"type":679},{"description":710,"example":478,"maximum":711,"minimum":367,"type":679},{"description":713,"example":714,"minimum":715,"type":679},{"description":717,"example":382,"minimum":715,"type":679},[677,682,719,720],[844,845],"data","pagination","Success: `message` is \"Import fetched successfully.\".",{"X-RateLimit-Limit":848,"X-RateLimit-Remaining":852,"X-RateLimit-Reset":855},{"description":849,"schema":850},"Requests your account may make to this operation per window (100).",{"type":851},"integer",{"description":853,"schema":854},"Requests left in the current window.",{"type":851},{"description":856,"schema":857},"Seconds until the current window ends.",{"type":851},{"content":859,"description":899},{"application\u002Fjson":860},{"examples":861,"schema":867},{"bad_request":862},{"summary":641,"value":863},{"error":864},{"code":641,"documentation_url":865,"message":642,"request_id":866},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#bad_request","0b5c6d0e-8f7a-4b1c-9d2e-3f4a5b6c7d8e",{"x-ref":868,"description":869,"properties":870,"required":897,"type":721},"#\u002Fcomponents\u002Fschemas\u002FErrorEnvelope","How every error response is wrapped.",{"error":871},{"x-ref":872,"description":873,"properties":874,"required":894,"type":721},"#\u002Fcomponents\u002Fschemas\u002FErrorDetail","What went wrong.",{"code":875,"message":884,"documentation_url":886,"request_id":890,"details":892},{"description":876,"enum":877,"example":655,"type":673},"A stable machine code: branch on this. Each one is explained at `documentation_url`.",[878,641,646,650,655,879,880,881,882,660,664,883],"invalid_email","conflict","payload_too_large","unsupported_media_type","unprocessable_entity","service_unavailable",{"description":763,"example":885,"type":673},"Not found!",{"description":887,"example":888,"format":889,"type":673},"Where this code is explained.","https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#not_found","uri",{"description":891,"example":866,"type":673},"This request’s id, also sent as the `X-Request-Id` response header: the one you sent, when it was acceptable, or else one the API made. Quote it when you report a problem.",{"additionalProperties":364,"description":893,"type":721},"Present only where an operation says so, and then with the shape that operation documents — the rows it could not accept, say. Treat it as absent everywhere else, and ignore a `details` you do not recognise.",[766,725,895,896],"documentation_url","request_id",[898],"error","`bad_request`: `importId` is not 24 hexadecimal digits.",{"content":901,"description":921},{"application\u002Fjson":902},{"examples":903,"schema":909},{"unauthorized":904},{"summary":646,"value":905},{"error":906},{"code":646,"documentation_url":907,"message":908,"request_id":866},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#unauthorized","Authentication is required or the provided credentials are invalid.",{"x-ref":868,"description":869,"properties":910,"required":920,"type":721},{"error":911},{"x-ref":872,"description":873,"properties":912,"required":919,"type":721},{"code":913,"message":915,"documentation_url":916,"request_id":917,"details":918},{"description":876,"enum":914,"example":655,"type":673},[878,641,646,650,655,879,880,881,882,660,664,883],{"description":763,"example":885,"type":673},{"description":887,"example":888,"format":889,"type":673},{"description":891,"example":866,"type":673},{"additionalProperties":364,"description":893,"type":721},[766,725,895,896],[898],"`unauthorized`: The token is missing or malformed, is not signed with your account’s `apiSecret`, breaks the `iat` and `exp` rules, has expired or been revoked, or its account is not active. All of these answer the same.",{"content":923,"description":942},{"application\u002Fjson":924},{"examples":925,"schema":930},{"forbidden":926},{"summary":650,"value":927},{"error":928},{"code":650,"documentation_url":929,"message":651,"request_id":866},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#forbidden",{"x-ref":868,"description":869,"properties":931,"required":941,"type":721},{"error":932},{"x-ref":872,"description":873,"properties":933,"required":940,"type":721},{"code":934,"message":936,"documentation_url":937,"request_id":938,"details":939},{"description":876,"enum":935,"example":655,"type":673},[878,641,646,650,655,879,880,881,882,660,664,883],{"description":763,"example":885,"type":673},{"description":887,"example":888,"format":889,"type":673},{"description":891,"example":866,"type":673},{"additionalProperties":364,"description":893,"type":721},[766,725,895,896],[898],"`forbidden`: The token is valid, but no role on your account allows `student\u002Fcreate` on `mto`, the organization every operation without `:organizationId` acts on, or a role denies it.",{"content":944,"description":962},{"application\u002Fjson":945},{"examples":946,"schema":950},{"not_found":947},{"summary":655,"value":948},{"error":949},{"code":655,"documentation_url":888,"message":656,"request_id":866},{"x-ref":868,"description":869,"properties":951,"required":961,"type":721},{"error":952},{"x-ref":872,"description":873,"properties":953,"required":960,"type":721},{"code":954,"message":956,"documentation_url":957,"request_id":958,"details":959},{"description":876,"enum":955,"example":655,"type":673},[878,641,646,650,655,879,880,881,882,660,664,883],{"description":763,"example":885,"type":673},{"description":887,"example":888,"format":889,"type":673},{"description":891,"example":866,"type":673},{"additionalProperties":364,"description":893,"type":721},[766,725,895,896],[898],"`not_found`: No import of yours has this `importId`, it has expired, or bulk registration is not switched on for the environment you are calling. An import another account sent answers the same.",{"content":964,"description":984,"headers":985},{"application\u002Fjson":965},{"examples":966,"schema":972},{"too_many_requests":967},{"summary":660,"value":968},{"error":969},{"code":660,"documentation_url":970,"message":971,"request_id":866},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#too_many_requests","Too many requests to this operation. Wait the number of seconds in Retry-After, then try again.",{"x-ref":868,"description":869,"properties":973,"required":983,"type":721},{"error":974},{"x-ref":872,"description":873,"properties":975,"required":982,"type":721},{"code":976,"message":978,"documentation_url":979,"request_id":980,"details":981},{"description":876,"enum":977,"example":655,"type":673},[878,641,646,650,655,879,880,881,882,660,664,883],{"description":763,"example":885,"type":673},{"description":887,"example":888,"format":889,"type":673},{"description":891,"example":866,"type":673},{"additionalProperties":364,"description":893,"type":721},[766,725,895,896],[898],"`too_many_requests`: Your account has made more than 100 requests to this operation in the current 60-second window. Wait the seconds in `Retry-After` before sending again.",{"Retry-After":986},{"description":987,"schema":988},"Seconds to wait before sending again; a request sent sooner is refused too.",{"type":851},{"content":990,"description":1010},{"application\u002Fjson":991},{"examples":992,"schema":998},{"internal_error":993},{"summary":664,"value":994},{"error":995},{"code":664,"documentation_url":996,"message":997,"request_id":866},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#internal_error","An unexpected error occurred.",{"x-ref":868,"description":869,"properties":999,"required":1009,"type":721},{"error":1000},{"x-ref":872,"description":873,"properties":1001,"required":1008,"type":721},{"code":1002,"message":1004,"documentation_url":1005,"request_id":1006,"details":1007},{"description":876,"enum":1003,"example":655,"type":673},[878,641,646,650,655,879,880,881,882,660,664,883],{"description":763,"example":885,"type":673},{"description":887,"example":888,"format":889,"type":673},{"description":891,"example":866,"type":673},{"additionalProperties":364,"description":893,"type":721},[766,725,895,896],[898],"`internal_error`: Something failed on our side. Retry later, and quote `request_id` if it goes on.","200","envelope",{"path":26},{"id":1015,"title":182,"apiPath":446,"body":1016,"deprecated":134,"description":1556,"extension":1557,"meta":1558,"method":133,"navigation":364,"operationId":444,"order":1559,"path":183,"permission":431,"public":134,"seo":1560,"stem":1561,"summary":182,"tag":62,"__hash__":1562},"apiReference\u002Fapi\u002Freference\u002Fget-student-import.md",{"type":1017,"value":1018,"toc":1554},"minimark",[1019,1550],[1020,1021,1022,1072,1263],"api-code-group",{},[1023,1024,1030],"pre",{"className":1025,"code":1026,"filename":1027,"language":1028,"meta":1029,"style":1029},"language-bash shiki shiki-themes github-light-high-contrast github-dark-high-contrast","# $TOKEN: a short-lived token you minted with your API key and secret\ncurl -sS 'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fstudent\u002Fimport\u002F\u003CimportId>?page=1&limit=20' \\\n  -H \"Authorization: Bearer $TOKEN\"\n","curl","bash","",[766,1031,1032,1040,1057],{"__ignoreMap":1029},[1033,1034,1036],"span",{"class":1035,"line":367},"line",[1033,1037,1039],{"class":1038},"sLBg1","# $TOKEN: a short-lived token you minted with your API key and secret\n",[1033,1041,1042,1045,1049,1053],{"class":1035,"line":377},[1033,1043,1027],{"class":1044},"soyes",[1033,1046,1048],{"class":1047},"s-5SL"," -sS",[1033,1050,1052],{"class":1051},"sT6z2"," 'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fstudent\u002Fimport\u002F\u003CimportId>?page=1&limit=20'",[1033,1054,1056],{"class":1055},"sHUrx"," \\\n",[1033,1058,1059,1062,1065,1069],{"class":1035,"line":382},[1033,1060,1061],{"class":1047},"  -H",[1033,1063,1064],{"class":1051}," \"Authorization: Bearer ",[1033,1066,1068],{"class":1067},"suds8","$TOKEN",[1033,1070,1071],{"class":1051},"\"\n",[1023,1073,1077],{"className":1074,"code":1075,"filename":308,"language":1076,"meta":1029,"style":1029},"language-js shiki shiki-themes github-light-high-contrast github-dark-high-contrast","const token = process.env.TOKEN; \u002F\u002F a short-lived token you minted with your API key and secret\n\nconst res = await fetch('https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fstudent\u002Fimport\u002F\u003CimportId>?page=1&limit=20', {\n  headers: {\n    Authorization: `Bearer ${token}`,\n  },\n});\nconst body = await res.json();\nif (!res.ok) throw new Error(`${res.status} ${body.error.code}: ${body.error.message}`);\nconsole.log(body.data, body.pagination);\n","js",[766,1078,1079,1102,1107,1132,1137,1154,1159,1164,1184,1252],{"__ignoreMap":1029},[1033,1080,1081,1084,1087,1090,1093,1096,1099],{"class":1035,"line":367},[1033,1082,1083],{"class":1055},"const",[1033,1085,1086],{"class":1047}," token",[1033,1088,1089],{"class":1055}," =",[1033,1091,1092],{"class":1067}," process.env.",[1033,1094,1095],{"class":1047},"TOKEN",[1033,1097,1098],{"class":1067},"; ",[1033,1100,1101],{"class":1038},"\u002F\u002F a short-lived token you minted with your API key and secret\n",[1033,1103,1104],{"class":1035,"line":377},[1033,1105,1106],{"emptyLinePlaceholder":364},"\n",[1033,1108,1109,1111,1114,1116,1119,1123,1126,1129],{"class":1035,"line":382},[1033,1110,1083],{"class":1055},[1033,1112,1113],{"class":1047}," res",[1033,1115,1089],{"class":1055},[1033,1117,1118],{"class":1055}," await",[1033,1120,1122],{"class":1121},"sKwhi"," fetch",[1033,1124,1125],{"class":1067},"(",[1033,1127,1128],{"class":1051},"'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fstudent\u002Fimport\u002F\u003CimportId>?page=1&limit=20'",[1033,1130,1131],{"class":1067},", {\n",[1033,1133,1134],{"class":1035,"line":391},[1033,1135,1136],{"class":1067},"  headers: {\n",[1033,1138,1139,1142,1145,1148,1151],{"class":1035,"line":396},[1033,1140,1141],{"class":1067},"    Authorization: ",[1033,1143,1144],{"class":1051},"`Bearer ${",[1033,1146,1147],{"class":1067},"token",[1033,1149,1150],{"class":1051},"}`",[1033,1152,1153],{"class":1067},",\n",[1033,1155,1156],{"class":1035,"line":402},[1033,1157,1158],{"class":1067},"  },\n",[1033,1160,1161],{"class":1035,"line":407},[1033,1162,1163],{"class":1067},"});\n",[1033,1165,1166,1168,1171,1173,1175,1178,1181],{"class":1035,"line":413},[1033,1167,1083],{"class":1055},[1033,1169,1170],{"class":1047}," body",[1033,1172,1089],{"class":1055},[1033,1174,1118],{"class":1055},[1033,1176,1177],{"class":1067}," res.",[1033,1179,1180],{"class":1121},"json",[1033,1182,1183],{"class":1067},"();\n",[1033,1185,1186,1189,1192,1195,1198,1201,1204,1207,1209,1212,1215,1218,1220,1223,1226,1228,1230,1232,1234,1237,1239,1241,1243,1245,1247,1249],{"class":1035,"line":418},[1033,1187,1188],{"class":1055},"if",[1033,1190,1191],{"class":1067}," (",[1033,1193,1194],{"class":1055},"!",[1033,1196,1197],{"class":1067},"res.ok) ",[1033,1199,1200],{"class":1055},"throw",[1033,1202,1203],{"class":1055}," new",[1033,1205,1206],{"class":1121}," Error",[1033,1208,1125],{"class":1067},[1033,1210,1211],{"class":1051},"`${",[1033,1213,1214],{"class":1067},"res",[1033,1216,1217],{"class":1051},".",[1033,1219,817],{"class":1067},[1033,1221,1222],{"class":1051},"} ${",[1033,1224,1225],{"class":1067},"body",[1033,1227,1217],{"class":1051},[1033,1229,898],{"class":1067},[1033,1231,1217],{"class":1051},[1033,1233,766],{"class":1067},[1033,1235,1236],{"class":1051},"}: ${",[1033,1238,1225],{"class":1067},[1033,1240,1217],{"class":1051},[1033,1242,898],{"class":1067},[1033,1244,1217],{"class":1051},[1033,1246,725],{"class":1067},[1033,1248,1150],{"class":1051},[1033,1250,1251],{"class":1067},");\n",[1033,1253,1254,1257,1260],{"class":1035,"line":427},[1033,1255,1256],{"class":1067},"console.",[1033,1258,1259],{"class":1121},"log",[1033,1261,1262],{"class":1067},"(body.data, body.pagination);\n",[1023,1264,1268],{"className":1265,"code":1266,"filename":311,"language":1267,"meta":1029,"style":1029},"language-php shiki shiki-themes github-light-high-contrast github-dark-high-contrast","\u003C?php\n$token = getenv('TOKEN'); \u002F\u002F a short-lived token you minted with your API key and secret\n\n$ch = curl_init('https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fstudent\u002Fimport\u002F\u003CimportId>?page=1&limit=20');\ncurl_setopt_array($ch, [\n    CURLOPT_HTTPHEADER => [\n        'Authorization: Bearer ' . $token,\n    ],\n    CURLOPT_RETURNTRANSFER => true,\n]);\n$response = curl_exec($ch);\nif ($response === false) {\n    throw new RuntimeException(curl_error($ch));\n}\n$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);\n$body = json_decode($response, true);\nif ($status >= 400) {\n    $error = $body['error'];\n    throw new RuntimeException(\"$status {$error['code']}: {$error['message']}\");\n}\nprint_r($body['data']);\nprint_r($body['pagination']);\n","php",[766,1269,1270,1278,1299,1303,1319,1327,1338,1349,1354,1366,1371,1384,1400,1418,1423,1441,1459,1474,1490,1522,1526,1539],{"__ignoreMap":1029},[1033,1271,1272,1275],{"class":1035,"line":367},[1033,1273,1274],{"class":1055},"\u003C?",[1033,1276,1277],{"class":1047},"php\n",[1033,1279,1280,1283,1286,1289,1291,1294,1297],{"class":1035,"line":377},[1033,1281,1282],{"class":1067},"$token ",[1033,1284,1285],{"class":1055},"=",[1033,1287,1288],{"class":1047}," getenv",[1033,1290,1125],{"class":1067},[1033,1292,1293],{"class":1051},"'TOKEN'",[1033,1295,1296],{"class":1067},"); ",[1033,1298,1101],{"class":1038},[1033,1300,1301],{"class":1035,"line":382},[1033,1302,1106],{"emptyLinePlaceholder":364},[1033,1304,1305,1308,1310,1313,1315,1317],{"class":1035,"line":391},[1033,1306,1307],{"class":1067},"$ch ",[1033,1309,1285],{"class":1055},[1033,1311,1312],{"class":1047}," curl_init",[1033,1314,1125],{"class":1067},[1033,1316,1128],{"class":1051},[1033,1318,1251],{"class":1067},[1033,1320,1321,1324],{"class":1035,"line":396},[1033,1322,1323],{"class":1047},"curl_setopt_array",[1033,1325,1326],{"class":1067},"($ch, [\n",[1033,1328,1329,1332,1335],{"class":1035,"line":402},[1033,1330,1331],{"class":1047},"    CURLOPT_HTTPHEADER",[1033,1333,1334],{"class":1055}," =>",[1033,1336,1337],{"class":1067}," [\n",[1033,1339,1340,1343,1346],{"class":1035,"line":407},[1033,1341,1342],{"class":1051},"        'Authorization: Bearer '",[1033,1344,1345],{"class":1055}," .",[1033,1347,1348],{"class":1067}," $token,\n",[1033,1350,1351],{"class":1035,"line":413},[1033,1352,1353],{"class":1067},"    ],\n",[1033,1355,1356,1359,1361,1364],{"class":1035,"line":418},[1033,1357,1358],{"class":1047},"    CURLOPT_RETURNTRANSFER",[1033,1360,1334],{"class":1055},[1033,1362,1363],{"class":1047}," true",[1033,1365,1153],{"class":1067},[1033,1367,1368],{"class":1035,"line":427},[1033,1369,1370],{"class":1067},"]);\n",[1033,1372,1373,1376,1378,1381],{"class":1035,"line":432},[1033,1374,1375],{"class":1067},"$response ",[1033,1377,1285],{"class":1055},[1033,1379,1380],{"class":1047}," curl_exec",[1033,1382,1383],{"class":1067},"($ch);\n",[1033,1385,1386,1388,1391,1394,1397],{"class":1035,"line":437},[1033,1387,1188],{"class":1055},[1033,1389,1390],{"class":1067}," ($response ",[1033,1392,1393],{"class":1055},"===",[1033,1395,1396],{"class":1047}," false",[1033,1398,1399],{"class":1067},") {\n",[1033,1401,1402,1405,1407,1410,1412,1415],{"class":1035,"line":442},[1033,1403,1404],{"class":1055},"    throw",[1033,1406,1203],{"class":1055},[1033,1408,1409],{"class":1047}," RuntimeException",[1033,1411,1125],{"class":1067},[1033,1413,1414],{"class":1047},"curl_error",[1033,1416,1417],{"class":1067},"($ch));\n",[1033,1419,1420],{"class":1035,"line":447},[1033,1421,1422],{"class":1067},"}\n",[1033,1424,1425,1428,1430,1433,1436,1439],{"class":1035,"line":452},[1033,1426,1427],{"class":1067},"$status ",[1033,1429,1285],{"class":1055},[1033,1431,1432],{"class":1047}," curl_getinfo",[1033,1434,1435],{"class":1067},"($ch, ",[1033,1437,1438],{"class":1047},"CURLINFO_RESPONSE_CODE",[1033,1440,1251],{"class":1067},[1033,1442,1443,1446,1448,1451,1454,1457],{"class":1035,"line":457},[1033,1444,1445],{"class":1067},"$body ",[1033,1447,1285],{"class":1055},[1033,1449,1450],{"class":1047}," json_decode",[1033,1452,1453],{"class":1067},"($response, ",[1033,1455,1456],{"class":1047},"true",[1033,1458,1251],{"class":1067},[1033,1460,1461,1463,1466,1469,1472],{"class":1035,"line":463},[1033,1462,1188],{"class":1055},[1033,1464,1465],{"class":1067}," ($status ",[1033,1467,1468],{"class":1055},">=",[1033,1470,1471],{"class":1047}," 400",[1033,1473,1399],{"class":1067},[1033,1475,1476,1479,1481,1484,1487],{"class":1035,"line":469},[1033,1477,1478],{"class":1067},"    $error ",[1033,1480,1285],{"class":1055},[1033,1482,1483],{"class":1067}," $body[",[1033,1485,1486],{"class":1051},"'error'",[1033,1488,1489],{"class":1067},"];\n",[1033,1491,1492,1494,1496,1498,1500,1503,1506,1509,1512,1515,1517,1520],{"class":1035,"line":474},[1033,1493,1404],{"class":1055},[1033,1495,1203],{"class":1055},[1033,1497,1409],{"class":1047},[1033,1499,1125],{"class":1067},[1033,1501,1502],{"class":1051},"\"",[1033,1504,1505],{"class":1067},"$status",[1033,1507,1508],{"class":1051}," {",[1033,1510,1511],{"class":1067},"$error",[1033,1513,1514],{"class":1051},"['code']}: {",[1033,1516,1511],{"class":1067},[1033,1518,1519],{"class":1051},"['message']}\"",[1033,1521,1251],{"class":1067},[1033,1523,1524],{"class":1035,"line":478},[1033,1525,1422],{"class":1067},[1033,1527,1528,1531,1534,1537],{"class":1035,"line":483},[1033,1529,1530],{"class":1047},"print_r",[1033,1532,1533],{"class":1067},"($body[",[1033,1535,1536],{"class":1051},"'data'",[1033,1538,1370],{"class":1067},[1033,1540,1541,1543,1545,1548],{"class":1035,"line":491},[1033,1542,1530],{"class":1047},[1033,1544,1533],{"class":1067},[1033,1546,1547],{"class":1051},"'pagination'",[1033,1549,1370],{"class":1067},[1551,1552,1553],"style",{},"html pre.shiki code .sLBg1, html code.shiki .sLBg1{--shiki-default:#66707B;--shiki-dark:#BDC4CC}html pre.shiki code .soyes, html code.shiki .soyes{--shiki-default:#702C00;--shiki-dark:#FFB757}html pre.shiki code .s-5SL, html code.shiki .s-5SL{--shiki-default:#023B95;--shiki-dark:#91CBFF}html pre.shiki code .sT6z2, html code.shiki .sT6z2{--shiki-default:#032563;--shiki-dark:#ADDCFF}html pre.shiki code .sHUrx, html code.shiki .sHUrx{--shiki-default:#A0111F;--shiki-dark:#FF9492}html pre.shiki code .suds8, html code.shiki .suds8{--shiki-default:#0E1116;--shiki-dark:#F0F3F6}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sKwhi, html code.shiki .sKwhi{--shiki-default:#622CBC;--shiki-dark:#DBB7FF}",{"title":1029,"searchDepth":377,"depth":382,"links":1555},[],"Returns one of your imports and one page of its rows, in the order you sent them.","md",{},"14",{"title":182,"description":1556},"api\u002Freference\u002Fget-student-import","8r_1vw5fCfk9jmOUNoG5pj4Ijcn4aJIUMpVXSBn2A7k",1791554613401]