[{"data":1,"prerenderedAt":1572},["ShallowReactive",2],{"api-nav":3,"api-spec:index":362,"api-spec:op:list-wallet-entries":677,"api-permissions-guide":1019,"api-reference-doc:list-wallet-entries":1020},[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",[],{"title":363,"version":364,"description":365,"baseUrl":366,"groups":367},"Main Team API","1.7.1","Register your students, enter them for exams, follow their applications, download their certificates and reports, and sign them in to an olympiad’s site.\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",[368,379,394,408,449,514,522,552,602,627],{"tag":136,"slug":137,"description":369,"guide":17,"operations":370},"Whether the API is up. No token needed, so it is the first call to make against an environment.",[371],{"operationId":372,"slug":373,"method":142,"path":374,"tag":136,"summary":140,"deprecated":143,"public":375,"permission":376,"scope":377,"order":378},"getHealth","get-health","\u002Fv1\u002Fhealth",true,null,"public",1,{"tag":77,"slug":145,"description":380,"guide":78,"operations":381},"The account your token belongs to, and revoking a token before it expires.",[382,389],{"operationId":383,"slug":384,"method":150,"path":385,"tag":77,"summary":148,"deprecated":143,"public":143,"permission":386,"scope":387,"order":388},"revokeToken","revoke-token","\u002Fv1\u002Fapi-account\u002Frevoke-token","api\u002F*:$org:$ID","flat",2,{"operationId":390,"slug":391,"method":142,"path":392,"tag":77,"summary":152,"deprecated":143,"public":143,"permission":386,"scope":387,"order":393},"getCurrentApiAccount","get-current-api-account","\u002Fv1\u002Fapi-account\u002Fvalidate-me",3,{"tag":92,"slug":155,"description":395,"guide":93,"operations":396},"The credits Main Team gave you, for each olympiad, and the history of every credit added and spent. One credit pays one priced application; the payment operations are under Applications.",[397,403],{"operationId":398,"slug":399,"method":142,"path":400,"tag":92,"summary":158,"deprecated":143,"public":143,"permission":401,"scope":387,"order":402},"getWallet","get-wallet","\u002Fv1\u002Fwallet","wallet\u002Fread:$org:$ID",4,{"operationId":404,"slug":405,"method":142,"path":406,"tag":92,"summary":161,"deprecated":143,"public":143,"permission":401,"scope":387,"order":407},"listWalletEntries","list-wallet-entries","\u002Fv1\u002Fwallet\u002Fentries",5,{"tag":74,"slug":164,"description":409,"guide":75,"operations":410},"Countries, grades and organizations. A student’s `country` and `grade` take these `_id`s, and so does every `:organizationId` in a path.",[411,417,422,427,433,438,444],{"operationId":412,"slug":413,"method":142,"path":414,"tag":74,"summary":167,"deprecated":143,"public":143,"permission":415,"scope":387,"order":416},"listCountries","list-countries","\u002Fv1\u002Fcountry","country\u002Fread:$org:$ID",6,{"operationId":418,"slug":419,"method":142,"path":420,"tag":74,"summary":170,"deprecated":143,"public":143,"permission":415,"scope":387,"order":421},"getCountry","get-country","\u002Fv1\u002Fcountry\u002F{id}",7,{"operationId":423,"slug":424,"method":142,"path":425,"tag":74,"summary":173,"deprecated":143,"public":143,"permission":415,"scope":387,"order":426},"listCountrySubdivisions","list-country-subdivisions","\u002Fv1\u002Fcountry\u002F{id}\u002Fsubdivision",8,{"operationId":428,"slug":429,"method":142,"path":430,"tag":74,"summary":176,"deprecated":143,"public":143,"permission":431,"scope":387,"order":432},"listGrades","list-grades","\u002Fv1\u002Fgrade","grade\u002Fread:$org:$ID",9,{"operationId":434,"slug":435,"method":142,"path":436,"tag":74,"summary":179,"deprecated":143,"public":143,"permission":431,"scope":387,"order":437},"getGrade","get-grade","\u002Fv1\u002Fgrade\u002F{id}",10,{"operationId":439,"slug":440,"method":142,"path":441,"tag":74,"summary":182,"deprecated":143,"public":143,"permission":442,"scope":387,"order":443},"listOrganizations","list-organizations","\u002Fv1\u002Forganization","organization\u002Fread:$org:$ID",11,{"operationId":445,"slug":446,"method":142,"path":447,"tag":74,"summary":185,"deprecated":143,"public":143,"permission":442,"scope":387,"order":448},"getOrganization","get-organization","\u002Fv1\u002Forganization\u002F{id}",12,{"tag":62,"slug":188,"description":450,"guide":63,"operations":451},"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.",[452,458,463,468,473,478,483,488,494,500,505,509],{"operationId":453,"slug":454,"method":142,"path":455,"tag":62,"summary":191,"deprecated":143,"public":143,"permission":456,"scope":387,"order":457},"listStudents","list-students","\u002Fv1\u002Fstudent","student\u002Fread:$org:$ID",13,{"operationId":459,"slug":460,"method":150,"path":455,"tag":62,"summary":194,"deprecated":143,"public":143,"permission":461,"scope":387,"order":462},"registerStudent","register-student","student\u002Fcreate:$org:$ID",14,{"operationId":464,"slug":465,"method":150,"path":466,"tag":62,"summary":197,"deprecated":143,"public":143,"permission":461,"scope":387,"order":467},"checkStudentRegistration","check-student-registration","\u002Fv1\u002Fstudent\u002Fcheck",15,{"operationId":469,"slug":470,"method":150,"path":471,"tag":62,"summary":200,"deprecated":143,"public":143,"permission":461,"scope":387,"order":472},"createStudentImport","create-student-import","\u002Fv1\u002Fstudent\u002Fimport",16,{"operationId":474,"slug":475,"method":142,"path":476,"tag":62,"summary":203,"deprecated":143,"public":143,"permission":461,"scope":387,"order":477},"getStudentImport","get-student-import","\u002Fv1\u002Fstudent\u002Fimport\u002F{importId}",17,{"operationId":479,"slug":480,"method":142,"path":481,"tag":62,"summary":206,"deprecated":143,"public":143,"permission":456,"scope":387,"order":482},"getStudent","get-student","\u002Fv1\u002Fstudent\u002F{studentId}",18,{"operationId":484,"slug":485,"method":211,"path":481,"tag":62,"summary":209,"deprecated":143,"public":143,"permission":486,"scope":387,"order":487},"updateStudent","update-student","student\u002Fupdate:$org:$ID",19,{"operationId":489,"slug":490,"method":211,"path":491,"tag":62,"summary":213,"deprecated":143,"public":143,"permission":492,"scope":387,"order":493},"setStudentPassword","set-student-password","\u002Fv1\u002Fstudent\u002F{studentId}\u002Fpassword","auth\u002Fsignin:$org:$ID",20,{"operationId":495,"slug":496,"method":142,"path":497,"tag":62,"summary":216,"deprecated":143,"public":143,"permission":456,"scope":498,"order":499},"listOrgStudents","list-org-students","\u002Fv1\u002F{organizationId}\u002Fstudent","organization",21,{"operationId":501,"slug":502,"method":142,"path":503,"tag":62,"summary":219,"deprecated":143,"public":143,"permission":456,"scope":498,"order":504},"getOrgStudent","get-org-student","\u002Fv1\u002F{organizationId}\u002Fstudent\u002F{studentId}",22,{"operationId":506,"slug":507,"method":211,"path":503,"tag":62,"summary":222,"deprecated":143,"public":143,"permission":486,"scope":498,"order":508},"updateOrgStudent","update-org-student",23,{"operationId":510,"slug":511,"method":211,"path":512,"tag":62,"summary":225,"deprecated":143,"public":143,"permission":486,"scope":498,"order":513},"linkStudentSupervisor","link-student-supervisor","\u002Fv1\u002F{organizationId}\u002Fstudent\u002F{studentId}\u002Fsupervisor",24,{"tag":80,"slug":228,"description":515,"guide":81,"operations":516},"Links that sign one of your students into an olympiad’s site. Each works once and expires two minutes after it is issued.",[517],{"operationId":518,"slug":519,"method":150,"path":520,"tag":80,"summary":231,"deprecated":143,"public":143,"permission":492,"scope":498,"order":521},"createSigninLink","create-signin-link","\u002Fv1\u002F{organizationId}\u002Fauth\u002Fsignin",25,{"tag":83,"slug":234,"description":523,"guide":84,"operations":524},"The exam categories and exams an organization runs, and the ones one of your students can apply to.",[525,531,537,542,547],{"operationId":526,"slug":527,"method":142,"path":528,"tag":83,"summary":237,"deprecated":143,"public":143,"permission":529,"scope":498,"order":530},"listExams","list-exams","\u002Fv1\u002F{organizationId}\u002Fexam","exam\u002Fread:$org:$ID",26,{"operationId":532,"slug":533,"method":142,"path":534,"tag":83,"summary":240,"deprecated":143,"public":143,"permission":535,"scope":498,"order":536},"listExamCategories","list-exam-categories","\u002Fv1\u002F{organizationId}\u002Fexam-category","exam-category\u002Fread:$org:$ID",27,{"operationId":538,"slug":539,"method":142,"path":540,"tag":83,"summary":243,"deprecated":143,"public":143,"permission":535,"scope":498,"order":541},"getExamCategory","get-exam-category","\u002Fv1\u002F{organizationId}\u002Fexam-category\u002F{categoryId}",28,{"operationId":543,"slug":544,"method":142,"path":545,"tag":83,"summary":246,"deprecated":143,"public":143,"permission":529,"scope":498,"order":546},"listAvailableExams","list-available-exams","\u002Fv1\u002F{organizationId}\u002Fexam\u002Favailable\u002F{studentId}",29,{"operationId":548,"slug":549,"method":142,"path":550,"tag":83,"summary":249,"deprecated":143,"public":143,"permission":529,"scope":498,"order":551},"getExam","get-exam","\u002Fv1\u002F{organizationId}\u002Fexam\u002F{examId}",30,{"tag":86,"slug":252,"description":553,"guide":87,"operations":554},"Entering your students for exams: creating, reading, moving and deleting their applications, and paying them from your wallet.",[555,561,566,571,576,582,587,592,597],{"operationId":556,"slug":557,"method":142,"path":558,"tag":86,"summary":255,"deprecated":143,"public":143,"permission":559,"scope":498,"order":560},"listApplications","list-applications","\u002Fv1\u002F{organizationId}\u002Fapplication","application\u002Fread:$org:$ID",31,{"operationId":562,"slug":563,"method":150,"path":558,"tag":86,"summary":258,"deprecated":143,"public":143,"permission":564,"scope":498,"order":565},"createApplication","create-application","application\u002Fcreate:$org:$ID",32,{"operationId":567,"slug":568,"method":142,"path":569,"tag":86,"summary":261,"deprecated":143,"public":143,"permission":559,"scope":498,"order":570},"listExamApplications","list-exam-applications","\u002Fv1\u002F{organizationId}\u002Fapplication\u002Fexam-applications\u002F{examId}",33,{"operationId":572,"slug":573,"method":142,"path":574,"tag":86,"summary":264,"deprecated":143,"public":143,"permission":559,"scope":498,"order":575},"listStudentApplications","list-student-applications","\u002Fv1\u002F{organizationId}\u002Fapplication\u002Fstudent-applications\u002F{studentId}",34,{"operationId":577,"slug":578,"method":150,"path":579,"tag":86,"summary":267,"deprecated":143,"public":143,"permission":580,"scope":498,"order":581},"payApplicationsFromWallet","pay-applications-from-wallet","\u002Fv1\u002F{organizationId}\u002Fapplication\u002Fwallet-pay","application\u002Fpay:$org:$ID",35,{"operationId":583,"slug":584,"method":142,"path":585,"tag":86,"summary":270,"deprecated":143,"public":143,"permission":559,"scope":498,"order":586},"getApplication","get-application","\u002Fv1\u002F{organizationId}\u002Fapplication\u002F{applicationId}",36,{"operationId":588,"slug":589,"method":211,"path":585,"tag":86,"summary":273,"deprecated":143,"public":143,"permission":590,"scope":498,"order":591},"moveApplication","move-application","application\u002Fupdate:$org:$ID",37,{"operationId":593,"slug":594,"method":278,"path":585,"tag":86,"summary":276,"deprecated":143,"public":143,"permission":595,"scope":498,"order":596},"deleteApplication","delete-application","application\u002Fdelete:$org:$ID",38,{"operationId":598,"slug":599,"method":150,"path":600,"tag":86,"summary":280,"deprecated":143,"public":143,"permission":580,"scope":498,"order":601},"payApplicationFromWallet","pay-application-from-wallet","\u002Fv1\u002F{organizationId}\u002Fapplication\u002F{applicationId}\u002Fwallet-pay",39,{"tag":283,"slug":284,"description":603,"guide":99,"operations":604},"Your students’ certificates and reports: listing them and downloading the files.",[605,611,616,622],{"operationId":606,"slug":607,"method":142,"path":608,"tag":283,"summary":287,"deprecated":143,"public":143,"permission":609,"scope":498,"order":610},"downloadCertificate","download-certificate","\u002Fv1\u002F{organizationId}\u002Fcertificate\u002Fdownload\u002F{certificateId}","certificate\u002Fread:$org:$ID",40,{"operationId":612,"slug":613,"method":142,"path":614,"tag":283,"summary":290,"deprecated":143,"public":143,"permission":609,"scope":498,"order":615},"listStudentCertificates","list-student-certificates","\u002Fv1\u002F{organizationId}\u002Fcertificate\u002F{userId}",41,{"operationId":617,"slug":618,"method":142,"path":619,"tag":283,"summary":293,"deprecated":143,"public":143,"permission":620,"scope":498,"order":621},"downloadReport","download-report","\u002Fv1\u002F{organizationId}\u002Freport\u002Fdownload\u002F{reportId}","report\u002Fread:$org:$ID",42,{"operationId":623,"slug":624,"method":142,"path":625,"tag":283,"summary":296,"deprecated":143,"public":143,"permission":620,"scope":498,"order":626},"listStudentReports","list-student-reports","\u002Fv1\u002F{organizationId}\u002Freport\u002F{userId}",43,{"tag":95,"slug":299,"description":628,"guide":96,"operations":629},"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.",[630,636,641,646,651,656,662,667,672],{"operationId":631,"slug":632,"method":142,"path":633,"tag":95,"summary":302,"deprecated":143,"public":143,"permission":634,"scope":498,"order":635},"listGroupChallenges","list-group-challenges","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge","group-challenge\u002Fread:$org:$ID",44,{"operationId":637,"slug":638,"method":142,"path":639,"tag":95,"summary":305,"deprecated":143,"public":143,"permission":634,"scope":498,"order":640},"getGroupChallenge","get-group-challenge","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}",45,{"operationId":642,"slug":643,"method":142,"path":644,"tag":95,"summary":308,"deprecated":143,"public":143,"permission":634,"scope":498,"order":645},"listGroupChallengeGroups","list-group-challenge-groups","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup",46,{"operationId":647,"slug":648,"method":142,"path":649,"tag":95,"summary":311,"deprecated":143,"public":143,"permission":634,"scope":498,"order":650},"getGroupChallengeGroup","get-group-challenge-group","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}",47,{"operationId":652,"slug":653,"method":142,"path":654,"tag":95,"summary":314,"deprecated":143,"public":143,"permission":634,"scope":498,"order":655},"listGroupChallengeActivity","list-group-challenge-activity","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}\u002Factivity",48,{"operationId":657,"slug":658,"method":150,"path":659,"tag":95,"summary":317,"deprecated":143,"public":143,"permission":660,"scope":498,"order":661},"submitGroupChallengeWork","submit-group-challenge-work","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}\u002Ffinal-submit","group-challenge\u002Fsubmit:$org:$ID",49,{"operationId":663,"slug":664,"method":150,"path":665,"tag":95,"summary":320,"deprecated":143,"public":143,"permission":660,"scope":498,"order":666},"submitGroupChallengeStep","submit-group-challenge-step","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}\u002Fstep\u002F{stepId}\u002Fsubmit",50,{"operationId":668,"slug":669,"method":142,"path":670,"tag":95,"summary":323,"deprecated":143,"public":143,"permission":634,"scope":498,"order":671},"listGroupChallengeStudents","list-group-challenge-students","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fstudent",51,{"operationId":673,"slug":674,"method":142,"path":675,"tag":95,"summary":326,"deprecated":143,"public":143,"permission":634,"scope":498,"order":676},"getGroupChallengeStudent","get-group-challenge-student","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fstudent\u002F{studentId}",52,{"operationId":404,"slug":405,"method":142,"path":406,"tag":92,"summary":161,"deprecated":143,"public":143,"permission":401,"scope":387,"order":407,"description":678,"permissions":679,"errors":680,"guide":376,"parameters":707,"requestBody":376,"responses":748,"successStatus":1017,"kind":1018,"paginated":375,"baseUrl":366,"tagDescription":395,"sandbox":375},"Needs a wallet, which Main Team opens only after an agreement and on your request (otherwise `403` `wallet_not_enabled`).\n\nYour wallet history, newest first: credits Main Team added or corrected, the spend of every credit, and reversals. Entries are never changed; a correction is a new entry. Each spend entry carries the student, application, payment and exam it paid for, the amount in cents and its currency, and the `reference` the payment shows.\n\nNarrow it with `organizationId`, `type`, `studentId`, `applicationId`, `from` and `to`; they combine, and one that cannot be read is `400`. The list is `limit` 20 a page by default and at most 100.",[401],[681,685,689,694,699,703],{"code":682,"status":683,"when":684},"bad_request",400,"A filter cannot be read: an id that is not 24 hexadecimal digits, an unknown `type`, an unreadable date, `from` after `to`, or an `organizationId` that is not an organization.",{"code":686,"status":687,"when":688},"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":690,"message":691,"status":692,"when":693},"forbidden","Insufficient role permissions",403,"The token is valid, but no role on your account allows `wallet\u002Fread` on `mto` (the target of operations without `:organizationId` in their path), or a role denies it.",{"code":690,"details":695,"message":697,"status":692,"when":698},{"reason":696},"wallet_not_enabled","No wallet is enabled for your account. Ask your Main Team contact to open one.","Your account has no wallet, or it is closed. A 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). `error.details.reason` is `wallet_not_enabled`.",{"code":700,"status":701,"when":702},"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":704,"status":705,"when":706},"internal_error",500,"Something failed on our side. Retry later, and quote `request_id` if it goes on.",[708,714,723,727,731,735,739,744],{"description":709,"in":710,"name":711,"required":143,"schema":712},"Only the entries of this organization (its `_id`, from `listOrganizations`).","query","organizationId",{"type":713},"string",{"description":715,"in":710,"name":716,"required":143,"schema":717},"Only entries of this type.","type",{"enum":718,"type":713},[719,720,721,722],"grant","adjust","spend","reversal",{"description":724,"in":710,"name":725,"required":143,"schema":726},"Only the entries for this student (the `_id` you registered them with).","studentId",{"type":713},{"description":728,"in":710,"name":729,"required":143,"schema":730},"Only the entries for this application.","applicationId",{"type":713},{"description":732,"in":710,"name":733,"required":143,"schema":734},"Only entries created at or after this moment (ISO 8601).","from",{"type":713},{"description":736,"in":710,"name":737,"required":143,"schema":738},"Only entries created at or before this moment (ISO 8601).","to",{"type":713},{"description":740,"in":710,"name":741,"required":143,"schema":742},"Page number. Defaults to 1.","page",{"example":378,"type":743},"number",{"description":745,"in":710,"name":746,"required":143,"schema":747},"Items per page. Defaults to 20, max 100.","limit",{"example":493,"type":743},{"200":749,"400":875,"401":922,"403":944,"429":969,"500":995},{"content":750,"description":863,"headers":864},{"application\u002Fjson":751},{"schema":752},{"allOf":753},[754,790],{"x-ref":755,"description":756,"properties":757,"required":787,"type":785},"#\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":758,"message":762,"pagination":765},{"description":759,"enum":760,"example":375,"type":761},"Always `true` on a success.",[375],"boolean",{"description":763,"example":764,"type":713},"A sentence saying what happened, written for a person. Branch on the status and on `data`, not on this.","Request completed successfully.",{"allOf":766,"description":786},[767],{"x-ref":768,"description":769,"properties":770,"required":782,"type":785},"#\u002Fcomponents\u002Fschemas\u002FPaginationMeta","Where one page sits in the whole list.",{"page":771,"limit":773,"total":776,"totalPages":780},{"description":772,"example":378,"minimum":378,"type":743},"The page returned, counting from 1.",{"description":774,"example":493,"maximum":775,"minimum":378,"type":743},"Items per page: the `limit` you sent, 20 if you sent none, and never more than 100.",100,{"description":777,"example":778,"minimum":779,"type":743},"Items across every page.",57,0,{"description":781,"example":393,"minimum":779,"type":743},"Pages at this `limit`: `total \u002F limit`, rounded up.",[741,746,783,784],"total","totalPages","object","On list operations only.",[788,789],"success","message",{"properties":791,"required":860,"type":785},{"message":792,"data":794,"pagination":853},{"example":793,"type":713},"Wallet entries fetched successfully.",{"items":795,"type":852},{"x-ref":796,"description":797,"properties":798,"required":848,"type":785},"#\u002Fcomponents\u002Fschemas\u002FWalletEntryResponse","One entry in your wallet history.",{"_id":799,"type":802,"organization":805,"organizationId":808,"credits":811,"amount":814,"currency":817,"studentId":822,"applicationId":825,"paymentId":828,"examId":831,"reference":834,"invoiceNo":837,"channel":840,"reverses":842,"createdAt":844},{"description":800,"example":801,"type":713},"The row’s id.","6650a1b2c3d4e5f6a7b8c9f2",{"description":803,"enum":804,"example":721,"type":713},"`grant`: credits added by Main Team. `adjust`: a correction by Main Team. `spend`: one credit paid an application. `reversal`: Main Team gave a spent credit back.",[719,720,721,722],{"description":806,"example":807,"type":713},"The organization’s slug.","stem",{"description":809,"example":810,"type":713},"The organization’s `_id`, as `:organizationId` takes it.","64b7f0c2a1d3e4f5a6b7c8d9",{"description":812,"example":813,"type":743},"Signed: a grant is positive, a spend `-1`, a reversal `+1`.",-1,{"description":815,"example":816,"type":743},"Cents the credit paid (a reversal repeats it negated). Absent on grants and adjustments.",5000,{"description":818,"enum":819,"example":820,"type":713},"The currency of `amount`.",[820,821],"EUR","USD",{"description":823,"example":824,"type":713},"The student, as `studentId`.","6650a1b2c3d4e5f6a7b8c9d0",{"description":826,"example":827,"type":713},"The application that was paid.","6650a1b2c3d4e5f6a7b8c9e5",{"description":829,"example":830,"type":713},"Its payment.","6650a1b2c3d4e5f6a7b8c9e6",{"description":832,"example":833,"type":713},"The exam applied for.","6650a1b2c3d4e5f6a7b8c9e1",{"description":835,"example":836,"type":713},"The transaction code (`stx-...`) of the payment, as on the application’s `payment.reference`.","stx-19a2c3d4e5f6a7b8c9",{"description":838,"example":839,"type":713},"The invoice number of the payment.","2425-10042",{"description":841,"example":562,"type":713},"Which operation spent it.",{"description":843,"example":801,"type":713},"On a reversal, the `spend` entry it gives back.",{"description":845,"example":846,"format":847,"type":713},"When the entry was written.","2026-09-01T09:30:00.000Z","date-time",[849,716,498,711,850,851],"_id","credits","createdAt","array",{"x-ref":768,"description":769,"properties":854,"required":859,"type":785},{"page":855,"limit":856,"total":857,"totalPages":858},{"description":772,"example":378,"minimum":378,"type":743},{"description":774,"example":493,"maximum":775,"minimum":378,"type":743},{"description":777,"example":778,"minimum":779,"type":743},{"description":781,"example":393,"minimum":779,"type":743},[741,746,783,784],[861,862],"data","pagination","Success: `message` is \"Wallet entries fetched successfully.\".",{"X-RateLimit-Limit":865,"X-RateLimit-Remaining":869,"X-RateLimit-Reset":872},{"description":866,"schema":867},"Requests your account may make to this operation per window (100).",{"type":868},"integer",{"description":870,"schema":871},"Requests left in the current window.",{"type":868},{"description":873,"schema":874},"Seconds until the current window ends.",{"type":868},{"content":876,"description":921},{"application\u002Fjson":877},{"examples":878,"schema":885},{"bad_request":879},{"summary":682,"value":880},{"error":881},{"code":682,"documentation_url":882,"message":883,"request_id":884},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#bad_request","The request was malformed or contained invalid parameters.","0b5c6d0e-8f7a-4b1c-9d2e-3f4a5b6c7d8e",{"x-ref":886,"description":887,"properties":888,"required":919,"type":785},"#\u002Fcomponents\u002Fschemas\u002FErrorEnvelope","How every error response is wrapped.",{"error":889},{"x-ref":890,"description":891,"properties":892,"required":915,"type":785},"#\u002Fcomponents\u002Fschemas\u002FErrorDetail","What went wrong.",{"code":893,"message":904,"documentation_url":907,"request_id":911,"details":913},{"description":894,"enum":895,"example":898,"type":713},"A stable machine code: branch on this. Each one is explained at `documentation_url`.",[896,682,897,686,690,898,899,900,901,902,700,704,903],"invalid_email","subdivision_required","not_found","conflict","payload_too_large","unsupported_media_type","unprocessable_entity","service_unavailable",{"description":905,"example":906,"type":713},"Written for a person, and may change: never branch on it.","Not found!",{"description":908,"example":909,"format":910,"type":713},"Where this code is explained.","https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#not_found","uri",{"description":912,"example":884,"type":713},"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":375,"description":914,"type":785},"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.",[916,789,917,918],"code","documentation_url","request_id",[920],"error","`bad_request`: A filter cannot be read: an id that is not 24 hexadecimal digits, an unknown `type`, an unreadable date, `from` after `to`, or an `organizationId` that is not an organization.",{"content":923,"description":943},{"application\u002Fjson":924},{"examples":925,"schema":931},{"unauthorized":926},{"summary":686,"value":927},{"error":928},{"code":686,"documentation_url":929,"message":930,"request_id":884},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#unauthorized","Authentication is required or the provided credentials are invalid.",{"x-ref":886,"description":887,"properties":932,"required":942,"type":785},{"error":933},{"x-ref":890,"description":891,"properties":934,"required":941,"type":785},{"code":935,"message":937,"documentation_url":938,"request_id":939,"details":940},{"description":894,"enum":936,"example":898,"type":713},[896,682,897,686,690,898,899,900,901,902,700,704,903],{"description":905,"example":906,"type":713},{"description":908,"example":909,"format":910,"type":713},{"description":912,"example":884,"type":713},{"additionalProperties":375,"description":914,"type":785},[916,789,917,918],[920],"`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":945,"description":968},{"application\u002Fjson":946},{"examples":947,"schema":956},{"forbidden":948,"forbidden_2":952},{"summary":693,"value":949},{"error":950},{"code":690,"documentation_url":951,"message":691,"request_id":884},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#forbidden",{"summary":698,"value":953},{"error":954},{"code":690,"details":955,"documentation_url":951,"message":697,"request_id":884},{"reason":696},{"x-ref":886,"description":887,"properties":957,"required":967,"type":785},{"error":958},{"x-ref":890,"description":891,"properties":959,"required":966,"type":785},{"code":960,"message":962,"documentation_url":963,"request_id":964,"details":965},{"description":894,"enum":961,"example":898,"type":713},[896,682,897,686,690,898,899,900,901,902,700,704,903],{"description":905,"example":906,"type":713},{"description":908,"example":909,"format":910,"type":713},{"description":912,"example":884,"type":713},{"additionalProperties":375,"description":914,"type":785},[916,789,917,918],[920],"- `forbidden`: The token is valid, but no role on your account allows `wallet\u002Fread` on `mto` (the target of operations without `:organizationId` in their path), or a role denies it.\n- `forbidden`: Your account has no wallet, or it is closed. A 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). `error.details.reason` is `wallet_not_enabled`.",{"content":970,"description":990,"headers":991},{"application\u002Fjson":971},{"examples":972,"schema":978},{"too_many_requests":973},{"summary":700,"value":974},{"error":975},{"code":700,"documentation_url":976,"message":977,"request_id":884},"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":886,"description":887,"properties":979,"required":989,"type":785},{"error":980},{"x-ref":890,"description":891,"properties":981,"required":988,"type":785},{"code":982,"message":984,"documentation_url":985,"request_id":986,"details":987},{"description":894,"enum":983,"example":898,"type":713},[896,682,897,686,690,898,899,900,901,902,700,704,903],{"description":905,"example":906,"type":713},{"description":908,"example":909,"format":910,"type":713},{"description":912,"example":884,"type":713},{"additionalProperties":375,"description":914,"type":785},[916,789,917,918],[920],"`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":992},{"description":993,"schema":994},"Seconds to wait before sending again; a request sent sooner is refused too.",{"type":868},{"content":996,"description":1016},{"application\u002Fjson":997},{"examples":998,"schema":1004},{"internal_error":999},{"summary":704,"value":1000},{"error":1001},{"code":704,"documentation_url":1002,"message":1003,"request_id":884},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#internal_error","An unexpected error occurred.",{"x-ref":886,"description":887,"properties":1005,"required":1015,"type":785},{"error":1006},{"x-ref":890,"description":891,"properties":1007,"required":1014,"type":785},{"code":1008,"message":1010,"documentation_url":1011,"request_id":1012,"details":1013},{"description":894,"enum":1009,"example":898,"type":713},[896,682,897,686,690,898,899,900,901,902,700,704,903],{"description":905,"example":906,"type":713},{"description":908,"example":909,"format":910,"type":713},{"description":912,"example":884,"type":713},{"additionalProperties":375,"description":914,"type":785},[916,789,917,918],[920],"`internal_error`: Something failed on our side. Retry later, and quote `request_id` if it goes on.","200","envelope",{"path":26},{"id":1021,"title":161,"apiPath":406,"body":1022,"deprecated":143,"description":1565,"extension":1566,"meta":1567,"method":142,"navigation":375,"operationId":404,"order":1568,"path":162,"permission":401,"public":143,"seo":1569,"stem":1570,"summary":161,"tag":92,"__hash__":1571},"apiReference\u002Fapi\u002Freference\u002Flist-wallet-entries.md",{"type":1023,"value":1024,"toc":1563},"minimark",[1025,1559],[1026,1027,1028,1078,1271],"api-code-group",{},[1029,1030,1036],"pre",{"className":1031,"code":1032,"filename":1033,"language":1034,"meta":1035,"style":1035},"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\u002Fwallet\u002Fentries?page=1&limit=20' \\\n  -H \"Authorization: Bearer $TOKEN\"\n","curl","bash","",[916,1037,1038,1046,1063],{"__ignoreMap":1035},[1039,1040,1042],"span",{"class":1041,"line":378},"line",[1039,1043,1045],{"class":1044},"sLBg1","# $TOKEN: a short-lived token you minted with your API key and secret\n",[1039,1047,1048,1051,1055,1059],{"class":1041,"line":388},[1039,1049,1033],{"class":1050},"soyes",[1039,1052,1054],{"class":1053},"s-5SL"," -sS",[1039,1056,1058],{"class":1057},"sT6z2"," 'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fwallet\u002Fentries?page=1&limit=20'",[1039,1060,1062],{"class":1061},"sHUrx"," \\\n",[1039,1064,1065,1068,1071,1075],{"class":1041,"line":393},[1039,1066,1067],{"class":1053},"  -H",[1039,1069,1070],{"class":1057}," \"Authorization: Bearer ",[1039,1072,1074],{"class":1073},"suds8","$TOKEN",[1039,1076,1077],{"class":1057},"\"\n",[1029,1079,1084],{"className":1080,"code":1081,"filename":1082,"language":1083,"meta":1035,"style":1035},"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\u002Fwallet\u002Fentries?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","Node.js","js",[916,1085,1086,1109,1114,1139,1144,1161,1166,1171,1191,1260],{"__ignoreMap":1035},[1039,1087,1088,1091,1094,1097,1100,1103,1106],{"class":1041,"line":378},[1039,1089,1090],{"class":1061},"const",[1039,1092,1093],{"class":1053}," token",[1039,1095,1096],{"class":1061}," =",[1039,1098,1099],{"class":1073}," process.env.",[1039,1101,1102],{"class":1053},"TOKEN",[1039,1104,1105],{"class":1073},"; ",[1039,1107,1108],{"class":1044},"\u002F\u002F a short-lived token you minted with your API key and secret\n",[1039,1110,1111],{"class":1041,"line":388},[1039,1112,1113],{"emptyLinePlaceholder":375},"\n",[1039,1115,1116,1118,1121,1123,1126,1130,1133,1136],{"class":1041,"line":393},[1039,1117,1090],{"class":1061},[1039,1119,1120],{"class":1053}," res",[1039,1122,1096],{"class":1061},[1039,1124,1125],{"class":1061}," await",[1039,1127,1129],{"class":1128},"sKwhi"," fetch",[1039,1131,1132],{"class":1073},"(",[1039,1134,1135],{"class":1057},"'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fwallet\u002Fentries?page=1&limit=20'",[1039,1137,1138],{"class":1073},", {\n",[1039,1140,1141],{"class":1041,"line":402},[1039,1142,1143],{"class":1073},"  headers: {\n",[1039,1145,1146,1149,1152,1155,1158],{"class":1041,"line":407},[1039,1147,1148],{"class":1073},"    Authorization: ",[1039,1150,1151],{"class":1057},"`Bearer ${",[1039,1153,1154],{"class":1073},"token",[1039,1156,1157],{"class":1057},"}`",[1039,1159,1160],{"class":1073},",\n",[1039,1162,1163],{"class":1041,"line":416},[1039,1164,1165],{"class":1073},"  },\n",[1039,1167,1168],{"class":1041,"line":421},[1039,1169,1170],{"class":1073},"});\n",[1039,1172,1173,1175,1178,1180,1182,1185,1188],{"class":1041,"line":426},[1039,1174,1090],{"class":1061},[1039,1176,1177],{"class":1053}," body",[1039,1179,1096],{"class":1061},[1039,1181,1125],{"class":1061},[1039,1183,1184],{"class":1073}," res.",[1039,1186,1187],{"class":1128},"json",[1039,1189,1190],{"class":1073},"();\n",[1039,1192,1193,1196,1199,1202,1205,1208,1211,1214,1216,1219,1222,1225,1228,1231,1234,1236,1238,1240,1242,1245,1247,1249,1251,1253,1255,1257],{"class":1041,"line":432},[1039,1194,1195],{"class":1061},"if",[1039,1197,1198],{"class":1073}," (",[1039,1200,1201],{"class":1061},"!",[1039,1203,1204],{"class":1073},"res.ok) ",[1039,1206,1207],{"class":1061},"throw",[1039,1209,1210],{"class":1061}," new",[1039,1212,1213],{"class":1128}," Error",[1039,1215,1132],{"class":1073},[1039,1217,1218],{"class":1057},"`${",[1039,1220,1221],{"class":1073},"res",[1039,1223,1224],{"class":1057},".",[1039,1226,1227],{"class":1073},"status",[1039,1229,1230],{"class":1057},"} ${",[1039,1232,1233],{"class":1073},"body",[1039,1235,1224],{"class":1057},[1039,1237,920],{"class":1073},[1039,1239,1224],{"class":1057},[1039,1241,916],{"class":1073},[1039,1243,1244],{"class":1057},"}: ${",[1039,1246,1233],{"class":1073},[1039,1248,1224],{"class":1057},[1039,1250,920],{"class":1073},[1039,1252,1224],{"class":1057},[1039,1254,789],{"class":1073},[1039,1256,1157],{"class":1057},[1039,1258,1259],{"class":1073},");\n",[1039,1261,1262,1265,1268],{"class":1041,"line":437},[1039,1263,1264],{"class":1073},"console.",[1039,1266,1267],{"class":1128},"log",[1039,1269,1270],{"class":1073},"(body.data, body.pagination);\n",[1029,1272,1277],{"className":1273,"code":1274,"filename":1275,"language":1276,"meta":1035,"style":1035},"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\u002Fwallet\u002Fentries?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","php",[916,1278,1279,1287,1308,1312,1328,1336,1347,1358,1363,1375,1380,1393,1409,1427,1432,1450,1468,1483,1499,1531,1535,1548],{"__ignoreMap":1035},[1039,1280,1281,1284],{"class":1041,"line":378},[1039,1282,1283],{"class":1061},"\u003C?",[1039,1285,1286],{"class":1053},"php\n",[1039,1288,1289,1292,1295,1298,1300,1303,1306],{"class":1041,"line":388},[1039,1290,1291],{"class":1073},"$token ",[1039,1293,1294],{"class":1061},"=",[1039,1296,1297],{"class":1053}," getenv",[1039,1299,1132],{"class":1073},[1039,1301,1302],{"class":1057},"'TOKEN'",[1039,1304,1305],{"class":1073},"); ",[1039,1307,1108],{"class":1044},[1039,1309,1310],{"class":1041,"line":393},[1039,1311,1113],{"emptyLinePlaceholder":375},[1039,1313,1314,1317,1319,1322,1324,1326],{"class":1041,"line":402},[1039,1315,1316],{"class":1073},"$ch ",[1039,1318,1294],{"class":1061},[1039,1320,1321],{"class":1053}," curl_init",[1039,1323,1132],{"class":1073},[1039,1325,1135],{"class":1057},[1039,1327,1259],{"class":1073},[1039,1329,1330,1333],{"class":1041,"line":407},[1039,1331,1332],{"class":1053},"curl_setopt_array",[1039,1334,1335],{"class":1073},"($ch, [\n",[1039,1337,1338,1341,1344],{"class":1041,"line":416},[1039,1339,1340],{"class":1053},"    CURLOPT_HTTPHEADER",[1039,1342,1343],{"class":1061}," =>",[1039,1345,1346],{"class":1073}," [\n",[1039,1348,1349,1352,1355],{"class":1041,"line":421},[1039,1350,1351],{"class":1057},"        'Authorization: Bearer '",[1039,1353,1354],{"class":1061}," .",[1039,1356,1357],{"class":1073}," $token,\n",[1039,1359,1360],{"class":1041,"line":426},[1039,1361,1362],{"class":1073},"    ],\n",[1039,1364,1365,1368,1370,1373],{"class":1041,"line":432},[1039,1366,1367],{"class":1053},"    CURLOPT_RETURNTRANSFER",[1039,1369,1343],{"class":1061},[1039,1371,1372],{"class":1053}," true",[1039,1374,1160],{"class":1073},[1039,1376,1377],{"class":1041,"line":437},[1039,1378,1379],{"class":1073},"]);\n",[1039,1381,1382,1385,1387,1390],{"class":1041,"line":443},[1039,1383,1384],{"class":1073},"$response ",[1039,1386,1294],{"class":1061},[1039,1388,1389],{"class":1053}," curl_exec",[1039,1391,1392],{"class":1073},"($ch);\n",[1039,1394,1395,1397,1400,1403,1406],{"class":1041,"line":448},[1039,1396,1195],{"class":1061},[1039,1398,1399],{"class":1073}," ($response ",[1039,1401,1402],{"class":1061},"===",[1039,1404,1405],{"class":1053}," false",[1039,1407,1408],{"class":1073},") {\n",[1039,1410,1411,1414,1416,1419,1421,1424],{"class":1041,"line":457},[1039,1412,1413],{"class":1061},"    throw",[1039,1415,1210],{"class":1061},[1039,1417,1418],{"class":1053}," RuntimeException",[1039,1420,1132],{"class":1073},[1039,1422,1423],{"class":1053},"curl_error",[1039,1425,1426],{"class":1073},"($ch));\n",[1039,1428,1429],{"class":1041,"line":462},[1039,1430,1431],{"class":1073},"}\n",[1039,1433,1434,1437,1439,1442,1445,1448],{"class":1041,"line":467},[1039,1435,1436],{"class":1073},"$status ",[1039,1438,1294],{"class":1061},[1039,1440,1441],{"class":1053}," curl_getinfo",[1039,1443,1444],{"class":1073},"($ch, ",[1039,1446,1447],{"class":1053},"CURLINFO_RESPONSE_CODE",[1039,1449,1259],{"class":1073},[1039,1451,1452,1455,1457,1460,1463,1466],{"class":1041,"line":472},[1039,1453,1454],{"class":1073},"$body ",[1039,1456,1294],{"class":1061},[1039,1458,1459],{"class":1053}," json_decode",[1039,1461,1462],{"class":1073},"($response, ",[1039,1464,1465],{"class":1053},"true",[1039,1467,1259],{"class":1073},[1039,1469,1470,1472,1475,1478,1481],{"class":1041,"line":477},[1039,1471,1195],{"class":1061},[1039,1473,1474],{"class":1073}," ($status ",[1039,1476,1477],{"class":1061},">=",[1039,1479,1480],{"class":1053}," 400",[1039,1482,1408],{"class":1073},[1039,1484,1485,1488,1490,1493,1496],{"class":1041,"line":482},[1039,1486,1487],{"class":1073},"    $error ",[1039,1489,1294],{"class":1061},[1039,1491,1492],{"class":1073}," $body[",[1039,1494,1495],{"class":1057},"'error'",[1039,1497,1498],{"class":1073},"];\n",[1039,1500,1501,1503,1505,1507,1509,1512,1515,1518,1521,1524,1526,1529],{"class":1041,"line":487},[1039,1502,1413],{"class":1061},[1039,1504,1210],{"class":1061},[1039,1506,1418],{"class":1053},[1039,1508,1132],{"class":1073},[1039,1510,1511],{"class":1057},"\"",[1039,1513,1514],{"class":1073},"$status",[1039,1516,1517],{"class":1057}," {",[1039,1519,1520],{"class":1073},"$error",[1039,1522,1523],{"class":1057},"['code']}: {",[1039,1525,1520],{"class":1073},[1039,1527,1528],{"class":1057},"['message']}\"",[1039,1530,1259],{"class":1073},[1039,1532,1533],{"class":1041,"line":493},[1039,1534,1431],{"class":1073},[1039,1536,1537,1540,1543,1546],{"class":1041,"line":499},[1039,1538,1539],{"class":1053},"print_r",[1039,1541,1542],{"class":1073},"($body[",[1039,1544,1545],{"class":1057},"'data'",[1039,1547,1379],{"class":1073},[1039,1549,1550,1552,1554,1557],{"class":1041,"line":504},[1039,1551,1539],{"class":1053},[1039,1553,1542],{"class":1073},[1039,1555,1556],{"class":1057},"'pagination'",[1039,1558,1379],{"class":1073},[1560,1561,1562],"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":1035,"searchDepth":388,"depth":393,"links":1564},[],"Needs a wallet, which Main Team opens only after an agreement and on your request (otherwise 403 walletnotenabled).","md",{},"5",{"title":161,"description":1565},"api\u002Freference\u002Flist-wallet-entries","W04Pag7ScU9YxRlrmsuU_l85i-QxDQ58rDJ1uBEXdrc",1795776468487]