Skip to main content

Student List API

How to read students, their classes and their related contacts from the API — and how to fetch only the students that changed since your last sync.

Written by Abdullah Al-Hussein

Overview

Read-only JSON endpoint that returns the students in your school with their classes, custom fields and related contacts — the same records as the student list in the app.

Authentication

Authenticate with the school's API key. Pass it either way:

Header: X-API-KEY: <school_api_key>
Query: ?apikey=<school_api_key>

The key identifies the school. Responses are automatically scoped to that school; there is no school_id parameter. We recommend the header form: keys passed in a URL can end up in server or proxy logs.

See Getting and using your API key if you don't have a key yet.

Endpoint

POST /api/v1/student

The older path /globalApis/student_list still works and returns the same response.

Parameters go in the request body, not the query string. Only the API key can be passed as a query parameter.

Parameters

Param

Type

Notes

id

integer

One student id. Omit → all students.

active

integer

1 → active only. 0 → inactive only. Omit → both.

search

string

Matches name, identification number, gender, email, phone, country or payment method.

updated_since

string

Date or date and time. Only students changed at or after that moment, newest id first. Invalid → 422. See below.

per_page

integer

Records per page. Default 20.

page

integer

Page number. Default 1.

Archived students are never returned.

Example

curl -H "X-API-KEY: YOUR_KEY" -d "per_page=25&active=1" "https://app.teachngo.com/api/v1/student"

Response

{
"status": "success",
"totalRecords": 245,
"limit": 25,
"page": 1,
"totalPages": 10,
"next": 2,
"previous": null,
"data": [
{
"id": 12345,
"identification_number": "S-0042",
"fname": "Jane",
"lname": "Doe",
"email_address": "jane@example.com",
"street_name_and_number": "1 Example Street",
"area": "Example Area",
"city": "Example City",
"postcode": "A00 B1C2",
"country_code": "IE",
"whole_address": "1 Example Street, Example Area, Example City, A00 B1C2, Ireland",
"custom_fields": {"Year group": "Senior"},
"classes": [],
"related_contacts": [
{
"id": 67890,
"fname": "Mary",
"lname": "Doe",
"relationship": "guardian",
"email_address": "mary@example.com",
"mobile_phonecode": "353",
"mobile_phone": "871234567",
"subscribed_to_notifications": true
}
]
}
]
}

Field reference

The address is returned as separate components as well as one combined string, so you can report on any part of it.

Field

Meaning

id

The student's Teach 'n Go id

identification_number

Your own student reference, if your school uses them

street_name_and_number, flat_floor

Address lines

area

Area or district — this is where a county is usually recorded

city

Town or city

postcode

Postcode or Eircode

country_code

Two-letter country code, for example IE

whole_address

All of the above joined into one string

custom_fields

Your school's custom fields, keyed by field name

classes

The classes the student is enrolled in, with enrolment and unenrolment dates

related_contacts

The contacts linked to this student — see below

num_enrolled_courses

How many classes are in classes

Related contacts

Each student carries a related_contacts list. A student can have several, so this is always an array — empty if the student has none.

Field

Meaning

id

The related contact's Teach 'n Go id — stable, use it to match across calls

relationship

How they relate to the student, for example mother, father, guardian, payer

fname, lname

The contact's name

identification_number

Your own contact reference, if used

email_address, mobile_phone, home_phone

Contact details, with mobile_phonecode and home_phonecode holding the dialling codes

company

Company name, if recorded

whole_address

The contact's address as one string

general_notes

Free-text notes on the contact

subscribed_to_notifications

true if the contact receives notifications about this student

Tracking equipment or assets? Some schools create a student record per item, set a custom field such as Profile Type to Asset, and use the related contact to record who currently holds it. The related_contacts list is what tells you that.

Getting only students that changed

Send updated_since to get only the students changed at or after that moment, newest id first, with the usual paging fields.

POST /api/v1/student
{ "updated_since": "2026-11-25T10:00:00Z", "per_page": 100, "page": 1 }

Accepted values: 2026-11-25 (midnight UTC), 2026-11-25T10:00:00Z, 2026-11-25T10:00:00+01:00, or a date and time with no offset, which is read as UTC. In a URL, write + as %2B.

To keep a sync up to date, store the time you made each request and send it, minus a few minutes of overlap, as the next updated_since.

  • What counts as a change — the student's last-modified time. Changes Teach 'n Go makes by itself, such as enrolment counts or overdue payment flags, also count, so compare what you store rather than assuming every returned student has new details

  • Archived students — never returned, so an archived student does not appear here either

  • Paging — page and per_page go in the request body, like the other parameters

To change a student's details, see Student Update API.

Pagination and errors

The response wraps the records in totalRecords, limit, page, totalPages, next and previous. See API error codes and pagination.

Did this answer your question?