Loading FlowZen
Getting your workspace ready...
Getting your workspace ready...
Manage visitor passes and visitor events for your office.
/api/hr/visitor/passesGet all visitor passes for the company.
/api/hr/visitor/passesCreate a new visitor pass.
| Field | Type | Required | Description |
|---|---|---|---|
visitorName | string | Required | Visitor's full name |
visitorEmail | string | Required | Visitor's email |
visitorPhone | string | Optional | Visitor's phone |
purpose | string | Optional | Visit purpose |
hostName | string | Optional | Host employee name |
validFrom | string | Optional | Valid from date (ISO) |
validUntil | string | Optional | Valid until date (ISO) |
/api/hr/visitor/passes/[id]Get a specific visitor pass.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Required | Pass ID (path param) |
/api/hr/visitor/passes/[id]Update visitor pass status or details.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Required | Pass ID (path param) |
status | string | Optional | New status (approved/rejected/active/completed) |
validFrom | string | Optional | Updated valid from date |
validUntil | string | Optional | Updated valid until date |
/api/hr/visitor/eventsGet all visitor events.
/api/hr/visitor/eventsCreate a new visitor event.
| Field | Type | Required | Description |
|---|---|---|---|
slug | string | Required | URL-friendly identifier |
visitorCompany | string | Optional | Visiting company name |
expectedDate | string | Optional | Expected date (ISO) |
purpose | string | Optional | Event purpose |
hostName | string | Optional | Host name |
hostEmail | string | Optional | Host email |
notes | string | Optional | Additional notes |
/api/hr/visitor/events/[id]Get a specific visitor event.
/api/hr/visitor/events/[id]Update a visitor event.
| Field | Type | Required | Description |
|---|---|---|---|
status | string | Optional | New status (upcoming/ongoing/completed) |
/api/hr/visitor/events/[id]Delete a visitor event.
/api/public/visitor/event/[slug]Get visitor event by slug (public, no auth required).
| Field | Type | Required | Description |
|---|---|---|---|
slug | string | Required | Event slug (path param) |
/api/public/visitor/register/[slug]Register as a visitor for an event (public, no auth required).
| Field | Type | Required | Description |
|---|---|---|---|
slug | string | Required | Event slug (path param) |
visitorName | string | Required | Your name |
visitorEmail | string | Required | Your email |
visitorPhone | string | Optional | Your phone |
purpose | string | Optional | Visit purpose |