Skip to content
API documentation
View as MarkdownOpen in Claude

Reference data

Fetch one grade by its id

GET
/v1/grade/{id}

The grade with this _id, as listGrades lists it.

An id that no grade has answers 404 not_found.

Parameters

Path parameters

NameTypeDescription
idrequiredstring

The grade’s _id, from listGrades: 24 hexadecimal digits.

Responses

200 OK

Success: message is "Grade fetched successfully.".

Body

  • successbooleanrequired

    Always true on a success.

    one oftrue

  • messagestringrequired

    exampleGrade fetched successfully.

  • dataobject · GradeResponserequired

    A school grade: a student has one, an exam accepts a set.

    4 fields of data
    • _idstringrequired

      The grade’s id: what grade takes when you register or update a student. A grade has the same id in every organization.

      example6650a1b2c3d4e5f6a7b8c9d4

    • namestring

      The grade, as a number in a string, 1 to 12. grade accepts this name as well as the id.

      example10

    • createdAtstring

      When the record was created. The grade list is in this order.

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

    • updatedAtstring

      When the record 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": "Grade fetched successfully.",
  "data": {
    "_id": "6650a1b2c3d4e5f6a7b8c9d4",
    "name": "10",
    "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/grade/<id>' \
  -H "Authorization: Bearer $TOKEN"

Search the API documentation

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