Docs API & Developer GET /api/v1/attendance

GET /api/v1/attendance

Fetch staff attendance and clock-in records.


GET /api/v1/attendance

Returns staff attendance records including clock-in, clock-out, and hours worked.

Query parameters

ParameterTypeDescription
fromdate (Y-m-d)Start date (default: today)
todate (Y-m-d)End date (default: today)
per_pageintegerResults per page (max 100)

Request

curl -X GET "https://app.6xcom.com/api/v1/attendance?from=2026-06-01&to=2026-06-30" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Response

{
  "data": [
    {
      "id": 12,
      "staff_name": "Yomade Amuda",
      "clock_in": "2026-06-20T08:02:00.000000Z",
      "clock_out": "2026-06-20T17:05:00.000000Z",
      "hours": 9.05,
      "status": "present"
    }
  ],
  "total": 22,
  "per_page": 20,
  "current_page": 1,
  "last_page": 2
}
Was this article helpful?