Super People Docs
API Reference

Attendance

Checking in and out for the day, today's record, and attendance history.

Checking in and out for the day, today's record, and attendance history.

Generated from the OpenAPI spec by npm run docs:api -w api. Do not edit this page — change the decorators in apps/api/src/ and regenerate.

Conventions

  • Auth — a session on every route: the cookie on web, the bearer token on mobile. See Authentication.
  • Errors — every non-2xx response has the body described in Errors.
  • Types — a ? after a field name means it is optional; | null means it is present but may be null.

Endpoints

GET /api/v1/attendance/today — Today's attendance for the signed-in member

Returns 200 → TodayAttendanceResponse

ErrorWhen
401No valid session. Clear the stored token and sign in again.
403Signed in, but not allowed to do this.

POST /api/v1/attendance/check-in — Check in for today

Returns 201 → AttendanceRecordResponse

ErrorWhen
401No valid session. Clear the stored token and sign in again.
403Signed in, but not allowed to do this.

POST /api/v1/attendance/check-out — Check out for today

Returns 201 → AttendanceRecordResponse

ErrorWhen
401No valid session. Clear the stored token and sign in again.
403Signed in, but not allowed to do this.

GET /api/v1/attendance/history — Attendance history

Employees see only their own records. Super admins and reporting managers can filter all employees.

QueryTypeRequiredNotes
fromstringno
tostringno
employeeIdstringno

Returns 200 → AttendanceRecordResponse[]

ErrorWhen
400The request was rejected. message is an array of field errors when validation failed.
401No valid session. Clear the stored token and sign in again.
403Signed in, but not allowed to do this.

GET /api/v1/attendance/employees — Employees available to attendance filters

Super admins and reporting managers only.

Returns 200 → AttendanceEmployeeResponse[]

ErrorWhen
401No valid session. Clear the stored token and sign in again.
403Signed in, but not allowed to do this.

Data models

TodayAttendanceResponse

FieldTypeNotes
meAttendanceRecordResponse
canViewAllboolean
currentlyPresentCountnumber
employeesAttendanceRecordResponse[]

AttendanceRecordResponse

FieldTypeNotes
employeeIdstring
employeeNamestring
datestring
checkInstring ISO 8601 | null
checkOutstring ISO 8601 | null
statusNOT_CHECKED_IN | PRESENT | CHECKED_OUT

AttendanceEmployeeResponse

FieldTypeNotes
idstring
namestring

On this page