Skip to content
API documentation
View as MarkdownOpen in Claude

Applications

List your students’ applications for one exam

GET
/v1/{organizationId}/application/exam-applications/{examId}

Lists your students’ applications for one exam, with payment and the student (user) resolved into records. exam stays the id you asked about. It covers the same students as listApplications.

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.

The exam itself is not looked up: an id that matches no exam answers an empty list rather than 404, and past sittings work too.

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

examIdrequiredstring

The exam’s _id in this organization, from listExams, listAvailableExams or an application’s exam.

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 ExamApplicationResponserequired

    17 fields of each item
    • _idstringrequired

      The application’s id: what applicationId takes.

      example6650a1b2c3d4e5f6a7b8c9e5

    • examstringrequired

      The id of the exam applied for: the one you asked about.

      example6650a1b2c3d4e5f6a7b8c9e1

    • 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": "6650a1b2c3d4e5f6a7b8c9e1",
      "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/exam-applications/<examId>?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.