# POST /api/attendance > Attendance - Add Attendance Record - **Endpoint:** `POST /api/attendance` - **Group:** Attendance - **Since:** v1.0.0 - **Defined in:** `RestApi/Controllers/AttendanceController.php` ## Headers | Field | Type | Description | | --- | --- | --- | | `authtoken` | String | Authentication token, generated from admin area | ## Parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `user_id` | number | yes | Mandatory User ID | | `in_time` | string | yes | Mandatory Clock-in time (Y-m-d H:i:s) | | `out_time` | string | no | Optional Clock-out time (Y-m-d H:i:s) | | `note` | string | no | Optional Note | ## Request example ```bash curl -X POST "https://yoursite.com/index.php/api/attendance" \ -H "authtoken: YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "user_id": "...", "in_time": "..." }' ``` ## Responses ### Success - Success-Response: ```json HTTP/1.1 201 Created { "status": 200, "messages": {"success": "Attendance add success"}, "id": 1 } ``` --- Part of the [REST API for RISE CRM](https://risecrm.themesic.com/apiguide/) documentation. Full page: https://risecrm.themesic.com/apiguide/attendance/create-attendance/