TeachersTeachers

Teachers

Teachers · 8 operations

GET

List teachers

/api/teacher

Teachers with filters (search, subjects, status, qualification) and pagination.

list_teachers

Query parameters · 25

pagenumbermin 1 · default 1
pageSizenumber1–250 · default 20
sortBystringOne of: status name emails phones messengers links
sortOrderstringOne of: ASC DESC
teacherIdsnumber[]—
searchstringrequired—
firstNamestringrequired—
lastNamestringrequired—
Show 17 more
middleNamestringrequired—
genderstringrequiredOne of: MALE FEMALE
notestringrequired—
typesOfMessengerstring[]Channels where the teacher has a connected chat; several values are OR-ed.One of: TELEGRAM_BOT INSTAGRAM FACEBOOK IMESSAGE
subjectIdsnumber[]—
statusOfTeacherIdnumber—
statusOfTeacherIdsnumber[]—
teacherReportStatusIdsnumber[]—
qualificationSubjectIdsnumber[]—
qualificationIdsnumber[]—
teacherLevelIdsnumber[]—
classOfStudentIdsnumber[]—
teachingProgramIdsnumber[]—
typeOfLessonIdsnumber[]—
isBirthdayTodayboolean—
isArchivalobjectrequireddefault false
cfstring[]—

Response · 200

application/json

statusCodenumberrequiredexample 200
messagestringrequired—
dataobject4 fields
totalnumberrequired—
totalPagesnumberrequired—
currentPagenumberrequired—
teachersobject[]required16 fields
teacherIdnumberrequired—
firstNamestringrequired—
lastNamestringrequirednullable—
middleNamestringrequirednullable—
contactsobject[]required3 fields
typestringrequired—
valuestringrequired—
labelstringrequirednullable—
dateOfBirthstringrequirednullableformat YYYY-MM-DDTHH:mm:ss
genderstringrequiredOne of: MALE FEMALE
notestringrequirednullable—
avatarUrlstringrequirednullable—
isArchivalbooleanrequired—
updatedAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
createdAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
workloadobject2 fields
scheduledHoursnumberrequired—
workHoursnumberrequired—
statusobjectnullable3 fields
statusOfTeacherIdnumberrequired—
nameOfStatusstringrequired—
showInWorkCalendarbooleanrequired—
chatsobject[]requiredConnected chats; the table row shows their channel icons.4 fields
chatParticipantIdnumberrequired—
chatIdnumberrequired—
createdAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
chatobjectAlways present at runtime; optional because card selects are built dynamically and TS cannot prove the nested object exists.5 fields
chatIdnumberrequired—
contactNamestringrequirednullable—
avatarstringrequirednullable—
lastMessageAtstringrequirednullableformat YYYY-MM-DDTHH:mm:ss
messengerobjectrequired4 fields
messengerIdnumberrequired—
nameOfMessengerstringrequired—
typeOfMessengerstringrequiredOne of: TELEGRAM_BOT INSTAGRAM FACEBOOK IMESSAGE
capabilitiesobjectrequirednullableWhat the channel supports; null when its adapter is not registered, so the chat is read-only.
customFieldsobjectCustom field values for the columns selected in the table preset.any keys
Errors400401403429500
curl "https://your-school.rist.pro/api/teacher" \
  -H "Authorization: Bearer $RIST_API_KEY"
Response example · 200
{
  "statusCode": 200,
  "message": "Operation completed successfully",
  "data": {
    "total": 0,
    "totalPages": 0,
    "currentPage": 0,
    "teachers": [
      {
        "teacherId": 1,
        "firstName": "string",
        "lastName": "string",
        "middleName": "string",
        "contacts": [
          {
            "type": "string",
            "value": "string",
            "label": "string"
          }
        ],
        "dateOfBirth": "2026-11-09T14:30:00",
        "gender": "MALE",
        "note": "string",
        "avatarUrl": "string",
        "isArchival": false,
        "updatedAt": "2026-11-09T14:30:00",
        "createdAt": "2026-11-09T14:30:00",
        "workload": {
          "scheduledHours": 0,
          "workHours": 0
        },
        "status": {
          "statusOfTeacherId": 1,
          "nameOfStatus": "string",
          "showInWorkCalendar": false
        },
        "chats": [
          {
            "chatParticipantId": 1,
            "chatId": 1,
            "createdAt": "2026-11-09T14:30:00",
            "chat": {
              "chatId": 1,
              "contactName": "string",
              "avatar": "string",
              "lastMessageAt": "2026-11-09T14:30:00",
              "messenger": {
                "messengerId": 1,
                "nameOfMessenger": "string",
                "typeOfMessenger": "TELEGRAM_BOT",
                "capabilities": {}
              }
            }
          }
        ],
        "customFields": {}
      }
    ]
  }
}
GET

Get teacher

/api/teacher/{id}

One teacher card with contacts, subjects and custom fields.

get_teacher

Path parameters · 1

idnumberrequired—

Response · 200

application/json

statusCodenumberrequiredexample 200
messagestringrequired—
dataobject19 fields
teacherIdnumberrequired—
firstNamestringrequired—
lastNamestringrequirednullable—
middleNamestringrequirednullable—
contactsobject[]required3 fields
typestringrequired—
valuestringrequired—
labelstringrequirednullable—
dateOfBirthstringrequirednullableformat YYYY-MM-DDTHH:mm:ss
genderstringrequiredOne of: MALE FEMALE
notestringrequirednullable—
payoutMethodstringnullablePayout details; returned only with the payoutDetails field permission.One of: CARD IBAN CASH
payoutRecipientstringnullable—
payoutDetailsstringnullable—
payoutNotestringnullable—
payoutAccountobject2 fields
accountIdnumberrequired—
nameOfAccountstringrequired—
avatarUrlstringrequirednullable—
isArchivalbooleanrequired—
updatedAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
createdAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
chatsobject[]required4 fields
chatParticipantIdnumberrequired—
chatIdnumberrequired—
createdAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
chatobjectAlways present at runtime; optional because card selects are built dynamically and TS cannot prove the nested object exists.5 fields
chatIdnumberrequired—
contactNamestringrequirednullable—
avatarstringrequirednullable—
lastMessageAtstringrequirednullableformat YYYY-MM-DDTHH:mm:ss
messengerobjectrequired4 fields
messengerIdnumberrequired—
nameOfMessengerstringrequired—
typeOfMessengerstringrequiredOne of: TELEGRAM_BOT INSTAGRAM FACEBOOK IMESSAGE
capabilitiesobjectrequirednullableWhat the channel supports; null when its adapter is not registered, so the chat is read-only.
customFieldsobjectany keys
Errors400401403429500
curl "https://your-school.rist.pro/api/teacher/1" \
  -H "Authorization: Bearer $RIST_API_KEY"
Response example · 200
{
  "statusCode": 200,
  "message": "Operation completed successfully",
  "data": {
    "teacherId": 1,
    "firstName": "string",
    "lastName": "string",
    "middleName": "string",
    "contacts": [
      {
        "type": "string",
        "value": "string",
        "label": "string"
      }
    ],
    "dateOfBirth": "2026-11-09T14:30:00",
    "gender": "MALE",
    "note": "string",
    "payoutMethod": "CARD",
    "payoutRecipient": "string",
    "payoutDetails": "string",
    "payoutNote": "string",
    "payoutAccount": {
      "accountId": 1,
      "nameOfAccount": "string"
    },
    "avatarUrl": "string",
    "isArchival": false,
    "updatedAt": "2026-11-09T14:30:00",
    "createdAt": "2026-11-09T14:30:00",
    "chats": [
      {
        "chatParticipantId": 1,
        "chatId": 1,
        "createdAt": "2026-11-09T14:30:00",
        "chat": {
          "chatId": 1,
          "contactName": "string",
          "avatar": "string",
          "lastMessageAt": "2026-11-09T14:30:00",
          "messenger": {
            "messengerId": 1,
            "nameOfMessenger": "string",
            "typeOfMessenger": "TELEGRAM_BOT",
            "capabilities": {}
          }
        }
      }
    ],
    "customFields": {}
  }
}
GET

Get teacher qualifications

/api/teacher/{id}/qualifications

Qualifications of one teacher.

get_teacher_qualifications

Path parameters · 1

idnumberrequired—

Response · 200

application/json

statusCodenumberrequiredexample 200
messagestringrequired—
dataanyThe fields of data are not described yet.
Errors400401403429500
curl "https://your-school.rist.pro/api/teacher/1/qualifications" \
  -H "Authorization: Bearer $RIST_API_KEY"
Response example · 200
{
  "statusCode": 200,
  "message": "Operation completed successfully",
  "data": …
}
GET

Get teacher work schedule

/api/teacher/{id}/work-schedule

Working hours of one teacher by weekday (when the teacher is available for lessons).

get_teacher_work_schedule

Path parameters · 1

idnumberrequired—

Response · 200

application/json

statusCodenumberrequiredexample 200
messagestringrequired—
dataobject—
Errors400401403429500
curl "https://your-school.rist.pro/api/teacher/1/work-schedule" \
  -H "Authorization: Bearer $RIST_API_KEY"
Response example · 200
{
  "statusCode": 200,
  "message": "Operation completed successfully",
  "data": {}
}
GET

Find free teachers for a time slot

/api/teacher/work-schedule/available

Teachers whose work schedule covers the slot (dateTimeStart/dateTimeEnd, school local time) and who have no lesson then; cancelled lessons do not count. Optional subjectIds and typeOfLessonIds keep only qualified teachers.

find_available_teachers

Query parameters · 4

dateTimeStartstringrequiredSlot start, school local time (YYYY-MM-DDTHH:mm).
dateTimeEndstringrequiredSlot end, school local time.
subjectIdsnumber[]Only teachers qualified for these subjects.
typeOfLessonIdsnumber[]Only teachers qualified for these lesson types.

Response · 200

application/json

statusCodenumberrequiredexample 200
messagestringrequired—
dataobject[]—
Errors400401403429500
curl "https://your-school.rist.pro/api/teacher/work-schedule/available?dateTimeStart=string&dateTimeEnd=string" \
  -H "Authorization: Bearer $RIST_API_KEY"
Response example · 200
{
  "statusCode": 200,
  "message": "Operation completed successfully",
  "data": [
    {}
  ]
}
GET

Teachers working on a day

/api/teacher/work-schedule/day

Teachers with working hours on a school day (date, YYYY-MM-DD): their hours and how many lessons (not cancelled) they have that day.

list_teachers_working_on_day

Query parameters · 2

datestringrequiredSchool-local calendar day, YYYY-MM-DD.
subjectIdsnumber[]Only teachers qualified for these subjects.

Response · 200

application/json

statusCodenumberrequiredexample 200
messagestringrequired—
dataobject[]—
Errors400401403429500
curl "https://your-school.rist.pro/api/teacher/work-schedule/day?date=string" \
  -H "Authorization: Bearer $RIST_API_KEY"
Response example · 200
{
  "statusCode": 200,
  "message": "Operation completed successfully",
  "data": [
    {}
  ]
}
POST

Create teacher

/api/teacher

Create a teacher card. Look the teacher up with GET /api/teacher first to avoid duplicates.

create_teacher

Request body

application/json · object

firstNamestringrequiredlength 1–30
lastNamestringnullablelength max 30
middleNamestringrequirednullablelength max 30
subjectIdsnumber[]requiredmin 1
contactsobject[]required3 fields
typestringrequiredOne of: PHONE EMAIL MESSENGER URL
valuestringrequiredlength 1–255
labelstringrequirednullablelength max 50
dateOfBirthstringrequirednullableformat YYYY-MM-DDTHH:mm:ss
genderstringrequiredOne of: MALE FEMALE
meetingLinkIdnumberrequirednullablemin 1
statusOfTeacherIdnumberrequirednullablemin 1
teacherReportStatusIdnumberrequirednullablemin 1
notestringrequirednullablelength max 1500
payoutMethodstringnullableOne of: CARD IBAN CASH
payoutRecipientstringnullablelength max 150
payoutDetailsstringnullablelength max 100
payoutNotestringnullablelength max 500
payoutAccountIdnumbernullableSchool account the salary is paid from.min 1
customFieldsobjectany keys

Response · 201

application/json

statusCodenumberrequiredexample 201
messagestringrequired—
dataobject16 fields
teacherIdnumberrequired—
firstNamestringrequired—
lastNamestringrequirednullable—
middleNamestringrequirednullable—
contactsobject[]required3 fields
typestringrequired—
valuestringrequired—
labelstringrequirednullable—
dateOfBirthstringrequirednullableformat YYYY-MM-DDTHH:mm:ss
genderstringrequiredOne of: MALE FEMALE
notestringrequirednullable—
avatarUrlstringrequirednullable—
isArchivalbooleanrequired—
updatedAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
createdAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
workloadobject2 fields
scheduledHoursnumberrequired—
workHoursnumberrequired—
statusobjectnullable3 fields
statusOfTeacherIdnumberrequired—
nameOfStatusstringrequired—
showInWorkCalendarbooleanrequired—
chatsobject[]requiredConnected chats; the table row shows their channel icons.4 fields
chatParticipantIdnumberrequired—
chatIdnumberrequired—
createdAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
chatobjectAlways present at runtime; optional because card selects are built dynamically and TS cannot prove the nested object exists.5 fields
chatIdnumberrequired—
contactNamestringrequirednullable—
avatarstringrequirednullable—
lastMessageAtstringrequirednullableformat YYYY-MM-DDTHH:mm:ss
messengerobjectrequired4 fields
messengerIdnumberrequired—
nameOfMessengerstringrequired—
typeOfMessengerstringrequiredOne of: TELEGRAM_BOT INSTAGRAM FACEBOOK IMESSAGE
capabilitiesobjectrequirednullableWhat the channel supports; null when its adapter is not registered, so the chat is read-only.
customFieldsobjectCustom field values for the columns selected in the table preset.any keys
Errors400401403429500
curl -X POST "https://your-school.rist.pro/api/teacher" \
  -H "Authorization: Bearer $RIST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "firstName": "string",
    "lastName": "string",
    "middleName": "string",
    "subjectIds": [
      1
    ],
    "contacts": [
      {
        "type": "PHONE",
        "value": "string",
        "label": "string"
      }
    ],
    "dateOfBirth": "2026-11-09T14:30:00",
    "gender": "MALE",
    "meetingLinkId": 1,
    "statusOfTeacherId": 1,
    "teacherReportStatusId": 1,
    "note": "string",
    "payoutMethod": "CARD",
    "payoutRecipient": "string",
    "payoutDetails": "string",
    "payoutNote": "string",
    "payoutAccountId": 1,
    "customFields": {}
  }'
Response example · 201
{
  "statusCode": 201,
  "message": "Operation completed successfully",
  "data": {
    "teacherId": 1,
    "firstName": "string",
    "lastName": "string",
    "middleName": "string",
    "contacts": [
      {
        "type": "string",
        "value": "string",
        "label": "string"
      }
    ],
    "dateOfBirth": "2026-11-09T14:30:00",
    "gender": "MALE",
    "note": "string",
    "avatarUrl": "string",
    "isArchival": false,
    "updatedAt": "2026-11-09T14:30:00",
    "createdAt": "2026-11-09T14:30:00",
    "workload": {
      "scheduledHours": 0,
      "workHours": 0
    },
    "status": {
      "statusOfTeacherId": 1,
      "nameOfStatus": "string",
      "showInWorkCalendar": false
    },
    "chats": [
      {
        "chatParticipantId": 1,
        "chatId": 1,
        "createdAt": "2026-11-09T14:30:00",
        "chat": {
          "chatId": 1,
          "contactName": "string",
          "avatar": "string",
          "lastMessageAt": "2026-11-09T14:30:00",
          "messenger": {
            "messengerId": 1,
            "nameOfMessenger": "string",
            "typeOfMessenger": "TELEGRAM_BOT",
            "capabilities": {}
          }
        }
      }
    ],
    "customFields": {}
  }
}
PATCH

Update teacher

/api/teacher/{id}

Change fields of a teacher card. Send only the fields to change: contacts and subjectIds, when sent, replace the whole list.

update_teacher

Path parameters · 1

idnumberrequired—

Request body

application/json · object

firstNamestringlength 1–30
lastNamestringnullablelength max 30
middleNamestringnullablelength max 30
subjectIdsnumber[]min 1
contactsobject[]3 fields
typestringrequiredOne of: PHONE EMAIL MESSENGER URL
valuestringrequiredlength 1–255
labelstringrequirednullablelength max 50
dateOfBirthstringnullableformat YYYY-MM-DDTHH:mm:ss
genderstringOne of: MALE FEMALE
meetingLinkIdnumbernullablemin 1
statusOfTeacherIdnumbernullablemin 1
teacherReportStatusIdnumbernullablemin 1
notestringnullablelength max 1500
payoutMethodstringnullableOne of: CARD IBAN CASH
payoutRecipientstringnullablelength max 150
payoutDetailsstringnullablelength max 100
payoutNotestringnullablelength max 500
payoutAccountIdnumbernullableSchool account the salary is paid from.min 1
customFieldsobjectany keys

Response · 200

application/json

statusCodenumberrequiredexample 200
messagestringrequired—
dataobject16 fields
teacherIdnumberrequired—
firstNamestringrequired—
lastNamestringrequirednullable—
middleNamestringrequirednullable—
contactsobject[]required3 fields
typestringrequired—
valuestringrequired—
labelstringrequirednullable—
dateOfBirthstringrequirednullableformat YYYY-MM-DDTHH:mm:ss
genderstringrequiredOne of: MALE FEMALE
notestringrequirednullable—
avatarUrlstringrequirednullable—
isArchivalbooleanrequired—
updatedAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
createdAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
workloadobject2 fields
scheduledHoursnumberrequired—
workHoursnumberrequired—
statusobjectnullable3 fields
statusOfTeacherIdnumberrequired—
nameOfStatusstringrequired—
showInWorkCalendarbooleanrequired—
chatsobject[]requiredConnected chats; the table row shows their channel icons.4 fields
chatParticipantIdnumberrequired—
chatIdnumberrequired—
createdAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
chatobjectAlways present at runtime; optional because card selects are built dynamically and TS cannot prove the nested object exists.5 fields
chatIdnumberrequired—
contactNamestringrequirednullable—
avatarstringrequirednullable—
lastMessageAtstringrequirednullableformat YYYY-MM-DDTHH:mm:ss
messengerobjectrequired4 fields
messengerIdnumberrequired—
nameOfMessengerstringrequired—
typeOfMessengerstringrequiredOne of: TELEGRAM_BOT INSTAGRAM FACEBOOK IMESSAGE
capabilitiesobjectrequirednullableWhat the channel supports; null when its adapter is not registered, so the chat is read-only.
customFieldsobjectCustom field values for the columns selected in the table preset.any keys
Errors400401403429500
curl -X PATCH "https://your-school.rist.pro/api/teacher/1" \
  -H "Authorization: Bearer $RIST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "firstName": "string",
    "lastName": "string",
    "middleName": "string",
    "subjectIds": [
      1
    ],
    "contacts": [
      {
        "type": "PHONE",
        "value": "string",
        "label": "string"
      }
    ],
    "dateOfBirth": "2026-11-09T14:30:00",
    "gender": "MALE",
    "meetingLinkId": 1,
    "statusOfTeacherId": 1,
    "teacherReportStatusId": 1,
    "note": "string",
    "payoutMethod": "CARD",
    "payoutRecipient": "string",
    "payoutDetails": "string",
    "payoutNote": "string",
    "payoutAccountId": 1,
    "customFields": {}
  }'
Response example · 200
{
  "statusCode": 200,
  "message": "Operation completed successfully",
  "data": {
    "teacherId": 1,
    "firstName": "string",
    "lastName": "string",
    "middleName": "string",
    "contacts": [
      {
        "type": "string",
        "value": "string",
        "label": "string"
      }
    ],
    "dateOfBirth": "2026-11-09T14:30:00",
    "gender": "MALE",
    "note": "string",
    "avatarUrl": "string",
    "isArchival": false,
    "updatedAt": "2026-11-09T14:30:00",
    "createdAt": "2026-11-09T14:30:00",
    "workload": {
      "scheduledHours": 0,
      "workHours": 0
    },
    "status": {
      "statusOfTeacherId": 1,
      "nameOfStatus": "string",
      "showInWorkCalendar": false
    },
    "chats": [
      {
        "chatParticipantId": 1,
        "chatId": 1,
        "createdAt": "2026-11-09T14:30:00",
        "chat": {
          "chatId": 1,
          "contactName": "string",
          "avatar": "string",
          "lastMessageAt": "2026-11-09T14:30:00",
          "messenger": {
            "messengerId": 1,
            "nameOfMessenger": "string",
            "typeOfMessenger": "TELEGRAM_BOT",
            "capabilities": {}
          }
        }
      }
    ],
    "customFields": {}
  }
}