Core
  1. Teachers
Core
  • Introduction
    • What is Core
    • HTTP Statuses
    • Request
    • Responses
    • Meta
    • Limit & Pagination
    • Query Parameters
  • Quick Start
    • Letters
  • Auth
    • Sign In with Email and Password
      POST
    • Get the Current Session
      GET
    • Sign Out the Current User
      POST
  • Users
    • Get All Users
      GET
    • Create a User
      POST
    • Retrieve an Existing User
      GET
    • Delete an Existing User
      DELETE
    • Update an Existing User
      PATCH
    • Get Current User
      GET
    • Update Current User
      PATCH
    • Get Current User Devices
      GET
    • Retrieve User Devices by User ID
      GET
    • Update Own Profile Image
      POST
    • Update User Image
      POST
    • Reset User Password
      PATCH
    • Get User Login History
      GET
  • Staff
    • Get All Staff
    • Retrieve an Existing Staff
    • Create a Staff
    • Delete an Existing Staff
    • Update an Existing Staff
  • Teachers
    • Get All Teachers
      GET
    • Retrieve an Existing Teacher
      GET
    • Create a Teacher
      POST
    • Delete an Existing Teacher
      DELETE
    • Update an Existing Teacher
      PATCH
  • Students
    • Get All Students
    • Retrieve an Existing Student
    • Create a Student
    • Delete an Existing Student
    • Update an Existing Student
    • Import Bulk Students
  • Roles
    • Get All Roles
    • Create a Role
    • Retrieve an Existing Role
    • Update an Existing Role
    • Delete an Existing Role
    • Get All Eligible Users for Role
    • Get All Members of Role
    • Add Bulk Member to Role
    • Remove Bulk Members from Role
  • Classes
    • Get All Classes
    • Create a Class
    • Delete an Existing Student Copy
    • Create a Class Copy
  • Statistics
    • Teachers
      • Get Teacher Gender Stats
      • Get Teacher Religion Distribution
      • Get Teacher Employment Stats
      • Get Teacher Age Stats
    • Students
      • Get Student Gender Stats
      • Get Student Religion Distribution
      • Get Student Weight Stats
      • Get Student Height Stats
      • Get Student Age Stats
      • Get Student Transportation Stats
      • Get Student Class Stats
    • Staffs
      • Get Staffs Gender Stats
      • Get Staffs Religion Distribution
      • Get Staffs Age Stats
      • Get Staffs Employment Stats
    • Users
      • Retrieve User Summary
    • Get All Stats
  • Letters
    • Get All Letters
    • Retrieve an Existing Letter
    • Create a Letter
    • List User Letter
    • List Current User Letter
    • List Recipients
  • Letter Actions
    • Initiate a Letter Action
  • Files
    • Create a Presigned URL
  • Schemas
    • Schemas
      • Letter
        • LetterHistory
        • LetterStatus
        • LetterType
      • User
        • UserProfile
      • Address
      • Meta
      • Base
      • bloodType
      • Religion
      • Gender
      • ParentInfo
      • Error
      • GenderStats
      • ReligionDistribution
      • WeightStats
      • HeightStats
      • AgeStats
      • TransportationStats
      • ClassStats
      • EducationHistoryObject
      • EmploymentStats
      • Location
      • EconomyStats
      • Actor
    • Model
      • User
      • Teacher
      • Staff
      • Student
      • Letter
      • Class
      • Roles
    • LoginHistory
  1. Teachers

Get All Teachers

Designing
GET
/teachers
To list all Teachers in your app, send a GET request to /teachers
The response body will be a JSON object with a key of result. This will be set to an array containing objects each representing a Teacher. These will contain the standard Teacher attributes.

Request

Query Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://sims.sman1samarinda.sch.id/api/teachers?page=1&limit=100&search=fauzan'

Responses

🟢200OK
application/json
A JSON object with a key of result.
Body

Example
{
    "success": true,
    "message": "OK.",
    "meta": {
        "total": 664,
        "page": 1,
        "limit": 10000
    },
    "errors": [],
    "result": [
        {
            "id": "6939240a9e6b6fc73f8c85ec",
            "user": {
                "name": "Daniel Treutel",
                "image": "core/profile/1768059805474-fd700a5ea560fe3d/alfrdzley.jpeg",
                "email": "teacher3@sekolah.sch.id"
            },
            "gender": "FEMALE",
            "birthPlace": "East Stephonshire",
            "birthDate": "1990-08-20T10:33:06.408Z",
            "mother": {
                "name": "Randolph Goyette"
            },
            "employmentStatus": "PPPK",
            "address": {
                "street": "28679 E 9th Street",
                "rt": "613",
                "rw": "813",
                "subDistrict": "Grant County",
                "district": "East Sussex",
                "city": "Semarang",
                "province": "Jawa Tengah",
                "country": "Indonesia",
                "postalCode": "26291",
                "location": {
                    "type": "POINT",
                    "coordinates": [
                        110.3774378963981,
                        -6.919662452676573
                    ]
                }
            },
            "nip": "720629215443100335"
        },
        {
            "id": "6939240a9e6b6fc73f8c85ee",
            "user": {
                "name": "Juan Klein",
                "image": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR9SRRmhH4X5N2e4QalcoxVbzYsD44C-sQv-w&s",
                "email": "teacher5@sekolah.sch.id"
            },
            "gender": "MALE",
            "birthPlace": "North Adellfield",
            "birthDate": "1976-12-11T07:08:52.717Z",
            "mother": {
                "name": "Grady Bins"
            },
            "employmentStatus": "PROVINCIAL_HONOR",
            "address": {
                "street": "149 Jamaal River",
                "rt": "116",
                "rw": "341",
                "subDistrict": "County Antrim",
                "district": "East Sussex",
                "city": "Yogyakarta",
                "province": "DI Yogyakarta",
                "country": "Indonesia",
                "postalCode": "88448",
                "location": {
                    "type": "POINT",
                    "coordinates": [
                        110.4015776393638,
                        -7.886454335519887
                    ]
                }
            },
            "nip": "473763277463994878"
        }
    ]
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🔴500Server Error
Modified at 2026-01-08 12:41:32
Previous
Update an Existing Staff
Next
Retrieve an Existing Teacher
Built with