Integration API Reference
The TitanGrid backend provides a strictly authenticated REST API built with Django REST Framework (DRF). This layer facilitates interaction between the presentation frontend, mobile applications, and external reporting integrations.
All endpoints require bearer token authorization.
1. Core Ingestion Endpoint
Used by external multi-vendor network translators to stream normalized events directly into the core validation queue.
Operation Details
- Endpoint:
POST /api/biometric/ingest/ - Headers:
Content-Type: application/jsonandAuthorization: Token YOUR_SECRET_KEY - Action: The system receives the flat JSON object, validates the device serial against the registered hardware table, checks the employee code against active personnel, and commits the transaction to the immutable AttendanceLog.
➔
2. Dynamic Timesheet Gateway
Fetches the dynamically computed data matrices used to populate the premium A4 printable timesheet preview screen on the frontend.
Operation Details
- Endpoint:
GET /api/attendance-records/report-employee-timesheet/ - Query Parameters:
?employee_id=EMP-9042&start_date=2026-06-01&end_date=2026-06-07 - Action: The background engine queries the AttendanceRecord matrix. It calculates total grace periods, identifies late punches, formats the math into readable hour/minute strings, and bundles the history into an array for the React frontend to map over.
➔