List attendance profiles
GET
/attendance_settingsRead token is enoughView attendance profiles
attendance_profile/viewRequires feature attendance_profileAvailable in Claudeattendance_profiles.listReturns the company's attendance profiles, newest first. Each one carries its working hours, days off, day shifts, grace period and request rules, and how many employees are on it today.
When to use: to see which working-time rules exist, or to find a profile's id for the other profile operations and for moving employees between profiles.
Prerequisites: none.
Side effects: none. Up to 50 profiles per page.
Parameters
| Name | In | Type | Description | Example |
|---|---|---|---|---|
page | query | integer | Page number, starting at 1. min 1 | 1 |
per_page | query | integer | Records per page. Each list states its maximum. min 1 | 20 |
Accept-Language | header | string | Language of messages and translated labels. English when omitted. Allowed values: ar, en | ar |
Response
200 A page of profiles.
| Field | Type | Description |
|---|---|---|
recordsRequired | array<object> | The profiles on this page, newest first. |
records[].id | integer | Profile id; null only for the built-in default of a company with no saved profile. |
records[].name | string | Name in the requested language. |
records[].name_en | string | Name in English, unique in the company. |
records[].name_ar | string | Name in Arabic, unique in the company. |
records[].is_default | boolean | True for the company's default profile, used by every employee with no other profile. |
records[].work_start_time | string | Work starts, HH:MM, company time. |
records[].work_end_time | string | Work ends, HH:MM; earlier than the start means a night shift ending the next day. |
records[].daily_target_hours | number | Hours owed on a working day. |
records[].weekly_target_hours | number | Hours owed in a week, derived from the days off and day shifts. |
records[].weekly_target_days | integer | Working days in a week (7 minus the days off). |
records[].days_off | array<integer> | The profile's days off, 0 (Sunday) to 6 (Saturday). |
records[].correction_requests_enabled | boolean | Employees may ask to correct a missed or wrong check-in. |
records[].correction_request_limit_days | integer | How many days back a correction may be asked for. |
records[].correction_approved_by | string | Who approves correction and permission requests: manager, hr or manager_and_hr (the manager, then HR).Allowed values: manager, hr, manager_and_hr |
records[].permission_requests_enabled | boolean | Employees may ask permission to arrive late or leave early. |
records[].grace_period_enabled | boolean | A late arrival within the grace period is not counted late. |
records[].grace_period_minutes | integer | Grace period in minutes. |
records[].auto_absent_after_minutes | integer | Minutes after the start with no check-in before the day is marked absent. |
records[].track_breaks | boolean | Breaks are recorded and deducted from the hours worked. |
records[].allowed_break_minutes | integer | Break minutes a day allowed when breaks are tracked. |
records[].assigned_employees_count | integer | Employees on this profile today. |
records[].day_shifts | array<object> | Per-weekday shifts; a weekday with none uses the work start and end times. |
records[].day_shifts[].id | integer | Day shift id; send it back to change or remove this shift. |
records[].day_shifts[].name | string | Shift name, e.g. Morning. |
records[].day_shifts[].day_of_week | integer | Weekday, 0 (Sunday) to 6 (Saturday). min 0 · max 6 |
records[].day_shifts[].kind | string | rigid (fixed start) or flexible (hours only).Allowed values: rigid, flexible |
records[].day_shifts[].start_time | string | Start, HH:MM, company time; null on a flexible day. |
records[].day_shifts[].required_hours | number | Hours the day lasts. |
records[].day_shifts[].location_id | integer | Location the shift is worked at, if any. |
records[].day_shifts[].location_name | string | That location's name. |
paginationRequired | object | |
pagination.current_pageRequired | integer | This page's number. |
pagination.per_pageRequired | integer | Records per page. |
pagination.total_entriesRequired | integer | Records across all pages. |
pagination.pagesRequired | integer | Number of pages. |
Errors
| HTTP | Code | Meaning | How to fix |
|---|---|---|---|
| 401 | token_missing | No Authorization: Bearer … header, or it is malformed. | Send Authorization: Bearer qhr_… with the full token. |
| 401 | token_invalid | The token is unknown or wrong, or its owner's account is locked. | Check the token was copied in full, or create a new one in QHR › Settings › API & Integrations. |
| 401 | token_expired | The token is past its expiry date. | Create a new token. |
| 401 | token_revoked | The token was revoked by its owner or an admin, or the owner was removed from the company (which revokes all their tokens). | Create a new token, or ask your admin. If the owner was removed, they must be re-invited to the company first. |
| 401 | tenant_inactive | The company account is suspended. | Contact QHR support. |
| 403 | forbidden | The token owner's role lacks the permission this operation needs. | Ask an admin to grant the permission shown on this operation (x-permission). |
| 403 | employee_inactive | The token owner's employee record is not active. | HR must reactivate the employee record. |
| 403 | tenant_access_revoked | The token's owner is no longer an active member of this company. Rare: removing a member normally revokes their tokens, which answers 401 token_revoked instead. | The owner must be re-invited to the company, then create a new token. If the owner is still a member, contact QHR support. |
entitlement_blocked · 429 rate_limited · 500 internal_error