Core
  1. Classes
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
    • Retrieve an Existing Teacher
    • Create a Teacher
    • Delete an Existing Teacher
    • Update an Existing Teacher
  • 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
      GET
    • Create a Class
      POST
    • Delete an Existing Student Copy
      DELETE
    • Create a Class Copy
      PATCH
  • 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. Classes

Get All Classes

GET
/classes
To list all classes in your app.
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 classes. These will contain the standard classes 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/classes?limit=100&page=1'

Responses

🟢200OK
application/json
Body

Example
{
    "success": true,
    "message": "OK.",
    "meta": {},
    "errors": [],
    "result": [
        {
            "id": "833d2f3ed4e65ea36dbafe36",
            "nisn": "0011730411",
            "nipd": "12345",
            "nik": "4147581167623706",
            "skhun": "IX-A-12345-2021-123",
            "birthCertificateNumber": "3578-LU-28112012-0018",
            "familyCardNumber": "9832906747682963",
            "father": {
                "name": "Adhiarja Adhiarja Nainggolan",
                "nik": "5423831290091375",
                "birthPlace": "Brebes",
                "birthDate": "2025-10-21T07:42:19.267Z",
                "education": "S1",
                "phoneNumber": "6281234567890",
                "occupation": "Customer Security Facilitator",
                "income": "Rp. 5,000,000 - Rp. 20,000,000",
                "specialNeeds": [
                    "NETRA"
                ]
            },
            "mother": {
                "name": "Hendri Hendri Satria",
                "nik": "9505146726718238",
                "birthPlace": "Buranga",
                "birthDate": "2025-10-21T07:42:19.276Z",
                "education": "S1",
                "phoneNumber": "6281234567890",
                "occupation": "Future Functionality Orchestrator",
                "income": "Kurang dari Rp. 500,000",
                "specialNeeds": [
                    "GRAHITA RINGAN",
                    "NETRA"
                ]
            },
            "guardian": {
                "name": "Nadia Ananda",
                "nik": "4087971048510632",
                "birthPlace": "Nganjuk",
                "birthDate": "2025-10-21T07:42:19.277Z",
                "education": "S1",
                "phoneNumber": "6281234567890",
                "occupation": "Human Markets Officer",
                "income": "Lebih dari Rp. 20,000,000",
                "specialNeeds": [
                    "RUNGU"
                ]
            },
            "residenceType": "ASRAMA",
            "transportationMode": "SEPEDA MOTOR",
            "height": 177,
            "weight": 70,
            "headCircumference": 55,
            "distance": 3578783581736117,
            "travelTime": 108,
            "siblings": "2",
            "numberOfSiblings": "2",
            "phoneNumber": "6281234567890",
            "religion": "KHONGHUCU",
            "address": {
                "street": "Jl. Beruang",
                "rt": "055",
                "rw": "052",
                "subDistrict": "Sempaja Utara",
                "district": "Samarinda Utara",
                "city": "Samarinda",
                "province": "Kalimantan Timur",
                "country": "ID",
                "postalCode": "75124",
                "location": {
                    "type": "LINESTRING",
                    "coordinates": [
                        [
                            -54961600.352274776,
                            -81921736.14538687
                        ],
                        [
                            46106254.420505315,
                            -73906173.16778356,
                            -86630045.29693125
                        ]
                    ]
                }
            },
            "birthDate": "2025-10-21T07:42:19.281Z",
            "birthPlace": "Pare-Pare",
            "birthOrder": 1,
            "bloodType": null,
            "gender": null,
            "landline": "0541123456",
            "specialNeeds": [
                "GRAHITA RINGAN",
                "RUNGU"
            ],
            "hobby": "Membaca",
            "name": "Fauzan Gifari"
        },
        {
            "id": "3ebbddb7ae4b65ffeadf7472",
            "nisn": "0011730411",
            "nipd": "12345",
            "nik": "7335679695994365",
            "skhun": "IX-A-12345-2021-123",
            "birthCertificateNumber": "3578-LU-28112012-0018",
            "familyCardNumber": "2678718958571632",
            "father": null,
            "mother": {
                "name": "Purnama Luluh",
                "nik": "5071341103090530",
                "birthPlace": "Indramayu",
                "birthDate": "2025-10-21T07:42:19.282Z",
                "education": "S1",
                "phoneNumber": "6281234567890",
                "occupation": "Customer Tactics Orchestrator",
                "income": "Tidak Berpenghasilan",
                "specialNeeds": [
                    "GRAHITA RINGAN"
                ]
            },
            "guardian": {
                "name": "Ratih Puspasari",
                "nik": "6259449769393539",
                "birthPlace": "Mamasa",
                "birthDate": "2025-10-21T07:42:19.283Z",
                "education": "S1",
                "phoneNumber": "6281234567890",
                "occupation": "Legacy Brand Coordinator",
                "income": "Rp. 500,000 - Rp. 999,999",
                "specialNeeds": [
                    "NETRA"
                ]
            },
            "residenceType": "WALI",
            "transportationMode": "SEPEDA MOTOR",
            "height": 150,
            "weight": 52,
            "headCircumference": 59,
            "distance": 1543483215107,
            "travelTime": 98,
            "siblings": "3",
            "numberOfSiblings": "2",
            "phoneNumber": "6281234567890",
            "religion": "KRISTEN",
            "address": {
                "street": "Jl. Beruang",
                "rt": "008",
                "rw": "099",
                "subDistrict": "Sempaja Utara",
                "district": "Samarinda Utara",
                "city": "Samarinda",
                "province": "Kalimantan Timur",
                "country": "ID",
                "postalCode": "75124",
                "location": {
                    "type": "POINT",
                    "coordinates": [
                        65644686.21209794,
                        65663189.515800446
                    ]
                }
            },
            "birthDate": "2025-10-21T07:42:19.284Z",
            "birthPlace": "Purworejo",
            "birthOrder": 1,
            "bloodType": "A",
            "gender": "MALE",
            "landline": "0541123456",
            "specialNeeds": [
                "RUNGU"
            ],
            "hobby": "Membaca",
            "name": "Syera"
        }
    ]
}
🟠401Unauthorized
🟠403Forbidden
🔴500Server Error
Modified at 2025-12-21 10:55:38
Previous
Remove Bulk Members from Role
Next
Create a Class
Built with