Skip to content
API documentation
View as MarkdownOpen in Claude

Applications

List one of your students’ applications in this organization

GET
/v1/{organizationId}/application/student-applications/{studentId}

Lists every application one of your students holds in this organization, with exam, payment and the student (user) resolved into records. Applications for closed and past exams are included.

A page at a time: limit is 20 by default and at most 100. No order is guaranteed, so to take a complete snapshot walk every page and remove duplicates by _id.

Your students are the ones your account registered: anyone else’s student answers 404, exactly as an unknown id does. A student who has never signed in to this organization answers 409, since they can hold no application there yet.

Filters. externalRef keeps the applications carrying that reference (the one you gave createApplication). paymentStatus keeps the ones whose payment is pending, paid or canceled: paymentStatus=pending is the list of entries still to be paid. Both only narrow the list, and they combine. pagination.total counts what they match.

A settled payment carries reference, the transaction code Main Team quotes when it confirms a payment (for a bank transfer, the code in its confirmation); payments settled together share one.

Parameters

Path parameters

NameTypeDescription
organizationIdrequiredstringpattern ^[0-9a-f]{24}$

The organization’s _id: 24 hexadecimal digits, as listOrganizations (GET /v1/organization) lists it.

Example 64b7f0c2a1d3e4f5a6b7c8d9

studentIdrequiredstring

The student’s _id: the id registerStudent returned, which an application carries as user.mainId.

Query parameters

NameTypeDescription
externalRefoptionalstring

Only the applications carrying this externalRef, the reference you gave createApplication. Matched exactly, after trimming, and with regard to case. Refused with 400 when it is empty, given twice, longer than 64 characters or holds a control character.

Example INV-2026-0042

paymentStatusoptionalstringone ofpendingpaidcanceled

Only the applications whose payment has this status: pending for the ones still to be paid, paid for the settled ones and the free ones, canceled. Anything else is refused with 400.

pageoptionalnumber

Page number. Defaults to 1.

Example 1

limitoptionalnumber

Items per page. Defaults to 20, max 100.

Example 20

Responses

200 OK

Success: message is "Applications fetched successfully.".

Body

  • successbooleanrequired

    Always true on a success.

    one oftrue

  • messagestringrequired

    exampleApplications fetched successfully.

  • paginationobject · PaginationMetarequired

    Where one page sits in the whole list.

    4 fields of pagination
    • pagenumberrequired

      The page returned, counting from 1.

      min1example1

    • limitnumberrequired

      Items per page: the limit you sent, 20 if you sent none, and never more than 100.

      min1max100example20

    • totalnumberrequired

      Items across every page.

      min0example57

    • totalPagesnumberrequired

      Pages at this limit: total / limit, rounded up.

      min0example3

  • dataarray of ApplicationResponserequired

    17 fields of each item
    • _idstringrequired

      The application’s id: what applicationId takes.

      example6650a1b2c3d4e5f6a7b8c9e5

    • examobject · ExamRecordResponsenullablerequired

      The exam applied for. Its own session, category and language are ids. null if the exam no longer exists.

      15 fields of exam
      • _idstringrequired

        The exam’s id: the examId that createApplication and moveApplication take.

        example6650a1b2c3d4e5f6a7b8c9e1

      • sessionstring

        The id of the sitting the exam is on.

        example6650a1b2c3d4e5f6a7b8c9e2

      • categorystring

        The id of the exam’s category.

        example6650a1b2c3d4e5f6a7b8c9e3

      • languagestring

        The id of the language the exam is sat in, when it has one.

        example6650a1b2c3d4e5f6a7b8c9e4

      • gradesarray of string

        The grades that may sit the exam. A student in any other grade is not offered it and cannot apply to it. Grade ids are the same in every organization.

        example["6650a1b2c3d4e5f6a7b8c9d4"]

      • countriesarray of string

        The countries the exam is restricted to; empty or absent, it is open to every country. Ids from listCountries; compare by iso2 when in doubt.

        example[]

      • subdivisionsarray of string

        The subdivisions (states) the exam is restricted to. Empty or absent, the exam is open to every state of the countries it names. When it lists states of a country, a student of that country is offered it only if their own subdivision is among them; a student of that country with no subdivision is not offered it. Listing states of one country does not restrict the other countries the exam names. Ids from listCountrySubdivisions.

        example[]

      • examTypestring

        standard or essay.

        one ofstandardessay

        examplestandard

      • examTimenumber

        The time limit, in minutes, from when the student starts.

        example75

      • durationnumber

        How many hours the exam can be started in, counted from the start of the sitting.

        example15

      • questionCountnumber

        How many questions the exam has.

        example30

      • pricenumber

        What an application costs, in the smallest unit of the currency (cents for euro): 2500 is 25.00. No currency is given: Main Team charges in euro unless it has told you otherwise. Absent when the exam has no price: an application to it is charged 0.

        example2500

      • preventApplicationboolean

        Whether the exam is closed to new applications. A closed exam is never listed, so on the exam reads this is false or absent.

        examplefalse

      • createdAtstring

        When the record was created.

        formatdate-timeexample2026-09-01T09:30:00.000Z

      • updatedAtstring

        When the record last changed.

        formatdate-timeexample2026-09-02T14:05:00.000Z

    • userobject · StudentRefResponserequired

      The student the application is for.

      4 fields of user
      • _idstringrequired

        The organization’s own id for the student. It differs from the id you registered them with: match on mainId.

        example6650a1b2c3d4e5f6a7b8c9e9

      • mainIdstringrequired

        The student’s id: the one you registered them with, and what every studentId takes.

        example6650a1b2c3d4e5f6a7b8c9d0

      • firstNamestring

        The student’s first name.

        exampleJane

      • lastNamestring

        The student’s surname.

        exampleDoe

    • paymentobject · PaymentResponsenullable

      The application’s payment. null if the stored reference no longer resolves; absent when none is set.

      9 fields of payment
      • _idstringrequired

        The payment’s id.

        example6650a1b2c3d4e5f6a7b8c9e6

      • statusstringrequired

        pending: not paid yet. paid: settled; a free exam’s payment is paid from the start, with amount 0. canceled: will not be paid. An application whose payment is paid with an amount above 0 cannot be deleted, and can move only to an exam of the same price.

        one ofpendingpaidcanceled

        examplepending

      • amountnumber

        What is due, or was paid, in the smallest unit of the currency (cents for euro): 2500 is 25.00, the exam’s price. No currency is given. 0 for a free exam. Moving an unpaid application to another exam changes it to that exam’s price.

        example2500

      • referencestring

        Only on a paid payment that was settled through a transaction: the transaction’s code, the one Main Team quotes when it confirms a payment (for a bank transfer you made, the code in Main Team’s confirmation). Payments settled together share one code. Absent on a pending or canceled payment and on a free entry this API marked paid itself. Returned by the application reads only, not by createApplication, moveApplication or deleteApplication, whose payment is an id.

        examplestx-6718a2f4c1d3e

      • applicationstring

        The id of the application it pays for.

        example6650a1b2c3d4e5f6a7b8c9e5

      • examstring

        The id of the exam it pays for.

        example6650a1b2c3d4e5f6a7b8c9e1

      • forstring

        The organization’s own id for the student it is for.

        example6650a1b2c3d4e5f6a7b8c9e9

      • createdAtstring

        When the payment was created.

        formatdate-timeexample2026-09-01T09:30:00.000Z

      • updatedAtstring

        When the payment last changed.

        formatdate-timeexample2026-09-02T14:05:00.000Z

    • partnersarray of ApplicationPartnerResponserequired

      On a team exam, the other members of the team. Empty for an exam sat alone.

      2 fields of each item
      • userstring

        The team member’s id in this organization. Not one of your students’ ids, and not resolved.

        example6650a1b2c3d4e5f6a7b8c9d6

      • acceptedboolean

        Whether they have accepted the invitation to the team.

        exampletrue

    • participatedbooleanrequired

      Whether the student has started the exam. A started application cannot be moved to another exam.

      examplefalse

    • examStartstring

      When the student started the exam; absent until then.

      formatdate-timeexample2026-11-14T10:04:12.000Z

    • examSubmittedboolean

      Whether the student has handed the exam in. A handed-in application cannot be moved to another exam.

      examplefalse

    • submitDatestring

      When the student handed the exam in; absent until then.

      formatdate-timeexample2026-11-14T11:12:40.000Z

    • simulationStartedbooleanrequired

      Whether the student has started the practice run.

      examplefalse

    • simulationStartstring

      When the student started the practice run; absent until then.

      formatdate-timeexample2026-11-07T10:00:00.000Z

    • simulationSubmittedbooleanrequired

      Whether the student has handed the practice run in.

      examplefalse

    • removeAfterstring

      Only on an application to an exam on a make-up sitting: when it will be removed, 6 hours after it was made.

      formatdate-timeexample2026-09-02T14:05:00.000Z

    • uuidstringrequired

      A short reference code for the application.

      examplea3f-09c-7e1

    • externalRefstring

      Your own reference for the application, as you gave it to createApplication; absent when you gave none. Filter the lists by it with ?externalRef=.

      exampleINV-2026-0042

    • createdAtstringrequired

      When the application was made.

      formatdate-timeexample2026-09-01T09:30:00.000Z

    • updatedAtstringrequired

      When the application last changed.

      formatdate-timeexample2026-09-02T14:05:00.000Z

Headers

X-RateLimit-Limit integer

Requests your account may make to this operation per window (100).

X-RateLimit-Remaining integer

Requests left in the current window.

X-RateLimit-Reset integer

Seconds until the current window ends.

Example

{
  "success": true,
  "message": "Applications fetched successfully.",
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 57,
    "totalPages": 3
  },
  "data": [
    {
      "_id": "6650a1b2c3d4e5f6a7b8c9e5",
      "exam": {
        "_id": "6650a1b2c3d4e5f6a7b8c9e1",
        "session": "6650a1b2c3d4e5f6a7b8c9e2",
        "category": "6650a1b2c3d4e5f6a7b8c9e3",
        "language": "6650a1b2c3d4e5f6a7b8c9e4",
        "grades": [
          "6650a1b2c3d4e5f6a7b8c9d4"
        ],
        "countries": [],
        "subdivisions": [],
        "examType": "standard",
        "examTime": 75,
        "duration": 15,
        "questionCount": 30,
        "price": 2500,
        "preventApplication": false,
        "createdAt": "2026-09-01T09:30:00.000Z",
        "updatedAt": "2026-09-02T14:05:00.000Z"
      },
      "user": {
        "_id": "6650a1b2c3d4e5f6a7b8c9e9",
        "mainId": "6650a1b2c3d4e5f6a7b8c9d0",
        "firstName": "Jane",
        "lastName": "Doe"
      },
      "payment": {
        "_id": "6650a1b2c3d4e5f6a7b8c9e6",
        "status": "pending",
        "amount": 2500,
        "reference": "stx-6718a2f4c1d3e",
        "application": "6650a1b2c3d4e5f6a7b8c9e5",
        "exam": "6650a1b2c3d4e5f6a7b8c9e1",
        "for": "6650a1b2c3d4e5f6a7b8c9e9",
        "createdAt": "2026-09-01T09:30:00.000Z",
        "updatedAt": "2026-09-02T14:05:00.000Z"
      },
      "partners": [
        {
          "user": "6650a1b2c3d4e5f6a7b8c9d6",
          "accepted": true
        }
      ],
      "participated": false,
      "examStart": "2026-11-14T10:04:12.000Z",
      "examSubmitted": false,
      "submitDate": "2026-11-14T11:12:40.000Z",
      "simulationStarted": false,
      "simulationStart": "2026-11-07T10:00:00.000Z",
      "simulationSubmitted": false,
      "removeAfter": "2026-09-02T14:05:00.000Z",
      "uuid": "a3f-09c-7e1",
      "externalRef": "INV-2026-0042",
      "createdAt": "2026-09-01T09:30:00.000Z",
      "updatedAt": "2026-09-02T14:05:00.000Z"
    }
  ]
}

Example request

# $TOKEN: a short-lived token you minted with your API key and secret
curl -sS 'https://api.main-team.org/v1/<organizationId>/application/student-applications/<studentId>?externalRef=INV-2026-0042&page=1&limit=20' \
  -H "Authorization: Bearer $TOKEN"

Search the API documentation

Guides, endpoints by name, path or permission, and error codes such as not_found.