Loading FlowZen
Getting your workspace ready...
Getting your workspace ready...
Manage security scanning, entry logs, emergency contacts, and lost card reports.
/api/hr/security/scanScan an identity code for entry/exit (Security only).
| Field | Type | Required | Description |
|---|---|---|---|
identityCode | string | Required | Identity code to scan |
/api/hr/security/membersGet all security team members.
/api/hr/security/entry-logsGet entry/exit logs with optional filters.
| Query Param | Type | Required | Description |
|---|---|---|---|
from | string | Optional | Start date (YYYY-MM-DD) |
to | string | Optional | End date (YYYY-MM-DD) |
userId | string | Optional | Filter by user ID |
/api/hr/security/entry-logsManually create an entry/exit log.
| Field | Type | Required | Description |
|---|---|---|---|
userId | string | Optional | User ID (for employees) |
visitorPassId | string | Optional | Visitor pass ID (for visitors) |
type | string | Required | Entry type (entry/exit) |
method | string | Optional | Scan method (qr-scan/manual/id-card) |
/api/hr/security/emergency-contactsGet all emergency contacts for the company.
/api/hr/security/lost-cardsGet all lost card reports.
/api/hr/security/lost-cardsReport a lost/stolen/damaged ID card.
| Field | Type | Required | Description |
|---|---|---|---|
userId | string | Required | User reporting the lost card |
reason | string | Required | Reason (lost/stolen/damaged/not-working) |
lastLocation | string | Optional | Last known location |
lostDateTime | string | Optional | When card was lost (ISO) |
policeComplaintNumber | string | Optional | Police complaint number (if stolen) |
isEmergency | boolean | Optional | Mark as emergency |
/api/hr/security/lost-cards/[id]Update lost card report status.
| Field | Type | Required | Description |
|---|---|---|---|
status | string | Required | New status |
/api/hr/security/lost-cards/[id]/open-ticketOpen a ticket for lost card replacement.
| Field | Type | Required | Description |
|---|---|---|---|
assignedJuniorSecurityId | string | Optional | Assign to junior security |
/api/hr/security/lost-cards/[id]/accept-ticketAccept a lost card ticket for processing.
/api/hr/security/lost-cards/[id]/complete-ticketMark a lost card ticket as completed.
| Field | Type | Required | Description |
|---|---|---|---|
notes | string | Optional | Completion notes |
/api/hr/security/lost-cards/[id]/disable-accessDisable access for a lost card.
| Field | Type | Required | Description |
|---|---|---|---|
disabledZones | string[] | Optional | Zones to disable access for |
/api/hr/security/lost-cards/[id]/foundMark a lost card as found.
| Field | Type | Required | Description |
|---|---|---|---|
oldCardFound | boolean | Optional | Whether old card was found |
oldCardDestroyed | boolean | Optional | Whether old card was destroyed |