Core
  1. Users
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
      GET
    • Retrieve an Existing Staff
      GET
    • Create a Staff
      POST
    • Delete an Existing Staff
      DELETE
    • Update an Existing Staff
      PATCH
  • 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
    • 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. Users

Get Current User

Developing
GET
/users/me
Retrieves the authenticated user's information along with their associated profile (student, teacher, or staff).

Request

None

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/users/me'

Responses

🟢200OK
application/json
Body

Examples
{
    "success": true,
    "message": "OK.",
    "meta": {},
    "errors": [],
    "result": {
        "user": {
            "id": "68f44e907ede1684986ca3ef",
            "name": "Fauzan Gifari",
            "email": "00001@sekolah.sch.id",
            "emailVerified": true,
            "secondaryEmail": "fauzan@gmail.com",
            "image": "988x1264/b79f5c/71dccb.jpg",
            "active": true,
            "createdAt": "2026-01-08T06:30:19.936Z",
            "updatedAt": "2026-01-08T06:30:19.941Z"
        },
        "profile": {
            "id": "3cf33fcd1f9bd2e1fb5bcb6d",
            "userId": "4ca8a8a2bc4fcb7ffa3ff2a2",
            "nisn": "0011730411",
            "nipd": "12345",
            "nik": "5145582839135344",
            "skhun": "IX-A-12345-2021-123",
            "birthCertificateNumber": "3578-LU-28112012-0018",
            "familyCardNumber": "0544084984998035",
            "father": null,
            "mother": null,
            "guardian": {
                "name": "Saputri Queen",
                "nik": "3421159309812666",
                "birthPlace": "Slawi",
                "birthDate": "2026-01-08T06:30:19.945Z",
                "education": "S1",
                "phone": "6281234567890",
                "occupation": "Central Operations Strategist",
                "income": "Rp. 5,000,000 - Rp. 20,000,000",
                "specialNeeds": [
                    "NETRA"
                ]
            },
            "residenceType": "ASRAMA",
            "transportationMode": "SEPEDA MOTOR",
            "height": 143,
            "weight": 82,
            "headCircumference": 59,
            "distance": 11314,
            "travelTime": 20,
            "siblings": 0,
            "numberOfSiblings": 2,
            "phone": "6281234567890",
            "religion": "ISLAM",
            "address": {
                "street": "Jl. Beruang",
                "rt": "001",
                "rw": "069",
                "subDistrict": "Sempaja Utara",
                "district": "Samarinda Utara",
                "city": "Samarinda",
                "province": "Kalimantan Timur",
                "country": "ID",
                "postalCode": "75124",
                "location": {
                    "type": "POINT",
                    "coordinates": [
                        1,
                        21
                    ]
                }
            },
            "birthDate": "2026-01-08T06:30:19.951Z",
            "birthPlace": "Banyumas",
            "birthOrder": 1,
            "bloodType": null,
            "gender": "FEMALE",
            "landline": "0541123456",
            "hobby": "Membaca",
            "dream": null,
            "specialNeeds": [
                "RUNGU",
                "RUNGU"
            ]
        },
        "type": "STUDENT"
    }
}
🟠401Unauthorized
🟠403Forbidden
🔴500Server Error
Modified at 2026-01-29 08:27:32
Previous
Update an Existing User
Next
Update Current User
Built with