Reference

Agent guide

A compact reference for AI assistants and automation, covering every app route, the role each task needs, the order of operations, task recipes with exact UI labels, and the data model.

This page is written for AI assistants that answer questions about SecureForce or help a user operate it. It condenses the rest of the docs into lookups. Fetch the full docs as plain text from /llms-full.txt, or one page at /docs/md/<slug>.md.

Ground rules

  • All data belongs to a workspace; a user acts in their current workspace (top-bar switcher).
  • What a user can do depends on their role and data scope. If a page or button is missing for them, it's a role or scope issue, not a bug. See Roles and access.
  • UI labels below are exact. Buttons are in bold.
  • Setup has a strict order. When a user is stuck, walk back up the dependency chain in Core concepts before suggesting anything else.

App routes

RoutePageNeeds
/authSign in (email or mobile number + password), sign up, GooglePublic
/accept-inviteAccept an email invitationPublic (invite link)
/docs, /docs/<slug>These docsPublic
/approval-pendingStatus of an org admin's workspace registration (pending / rejected)Signed in, workspace not yet approved
/super-adminSuper Admin Console: approve / reject workspace registrationsSecureForce super admins (public.platform_admins)
/dashboardDashboardAny member
/company-overviewCompany Overviewtenant.manage (Admin, IT Admin)
/employeesEmployee directory, document types, Import CSVemployees (view/manage)
/employees/bulk-onboardingBulk onboarding from CSVemployees.manage, onboarding.manage
/employees/<id>Employee profileemployees view
/employees/<id>/onboardingSix-step onboarding wizardonboarding.manage
/kycKYC case listkyc view
/kyc/<caseId>One KYC casekyc.manage to change
/onboardingOnboarding trackeronboarding view
/document-rulesStaff categories, designations and mandatory document rulesdocuments.manage for rules; master_data.manage or documents.manage for categories
/deploymentDeploymentsdeployments view/manage
/field-attendanceMy shift, Today, Muster, Performance, SetupLinked employee (My shift); attendance view (others); attendance.manage or deployments.manage (Setup)
/attendanceShifts, roster assignments, attendance recordsrosters.manage, attendance.manage
/leave-managementLeave requests and balancesleave view/manage
/clients-sitesCustomer groups, clients, contracts and sitesmaster_data.manage to change
/hr-approvalHR approval board and settings; /hr-approval/<employee id> to approve and Approve & Deployonboarding.manage or deployments.manage
/salary-structuresThe pre-approved salary tablepayroll.manage to change
/sign/<agreement id>Read and e-sign a contract or client NDAonboarding.manage / deployments.manage, or the worker
/employees/<id>/id-cardPrintable ID cardemployee view
/customer-setupWizard: group, companies, contracts, sites, headcount in one transactionmaster_data.manage (+ deployments.manage for headcount)
/daily-reportDaily Report (DMR)headcount view (incl. Client)
/client-portalClient PortalClient or staff
/payroll-prepPayroll Preppayroll.manage
/billing-prepBilling Prepbilling.manage
/reportsReportsView access to attendance, payroll, billing or compliance
/complianceCompliance taskscompliance view/manage
/notificationsNotificationsAny member
/activity-tracking, /devices/<id>Activity trackingtenant.manage (Admin, IT Admin)
/security-alertsSoftware Securitysoftware.manage
/organizationCompanies, branches, departments, service lines, gradesmaster_data.manage
/administrationMembers, invitations, scopes, numbering, audittenant.manage or audit.read
/profileOwn profileAny member

Order of operations (new workspace → first check-in)

  1. Sign up (/auth → Sign up: Full name, Organisation name, Work email, Password → Create workspace admin). The workspace is Approval Pending (/approval-pending) until a super admin approves it at /super-admin (users in public.platform_admins).
  2. /organization: company, branch, department, service line, grade.
  3. /clients-sites: Add client, then Add site with Latitude, Longitude, Geofence radius. The Site location box above them fills latitude/longitude from a place search, Use current location, or a tap on the map.
  4. /employees: Add employee with Email = their future login email. Optional Document Types.
  5. /kyc: Start a KYC case → Open case → open the card → set each check Verified/Waived (Aadhaar and PAN need the number typed) → Clear for deployment → Clear candidate.
  6. /employees/<id> → Start onboarding → six steps → step 6 Add deployment (Client, Site, Role title, Pay rate, Bill rate) → Create deployment.
  7. /attendance: Add shift (status Published); Add roster assignment (Employee, Deployment, Shift, Site, Roster Date = today, Published).
  8. /administration → Add member (same email, role Field Employee, Generate) → confirm "Linked to their employee record".
  9. /field-attendance → Setup: Location check Enforce, photo on, Save; Approved headcount: pick the Site, Add designation = role title, number, save.
  10. The guard, on the phone: /field-attendance → Check in → Take photo → Use photo.

Task recipes

GoalSteps
Give an employee a login/administration → Add member → email = employee's email → role → Generate → Add member → check "Linked to their employee record" → Copy sign-in details.
Limit a supervisor to one site/administration → Data Scopes → Member = supervisor, Scope type = site, Scope target = the site → Assign.
Give a customer their daily reportAdd member with role Client → scope type client → their client. They open /daily-report.
Fix "not linked to an employee record"Make the employee's email exactly the login email (unique) → Add member again with that email.
Fix "No shift rostered"/attendance → Add roster assignment for today.
Mark several people absent/field-attendance → Muster → tick them → Mark as… → Absent.
Check in a guard with no smartphone/field-attendance → Muster → Check in a guard → guard's mobile number → Find → Check in (same again for Check out). Needs Supervisor, Operations Manager or Admin; own sites only.
Correct a missed check-outMuster → click the person → Correct the times → enter the time and a reason → save.
Approve a dayMuster → Approve day (or per person).
Move a guard to another site/deployment → edit the old deployment: End Date, status completed → Add deployment at the new site → roster them there.
Run monthly payroll/payroll-prep → Period start/end → Generate → check the summary → Approve drafts → Export → Mark exported → Lock exported.
Import staff from a spreadsheet/employees/bulk-onboarding → Get the template → fill → upload → Import & onboard → verify documents → Deploy all verified.
Add a deadline/compliance → Add compliance task (Title, Category, Due date, links).
RecordKey fieldsLinks to
tenant (workspace)name, country_codeeverything
tenant_membershipuser, role, statustenant, login
data_scopescope_type (all/branch/client/site/employee), scope_idmembership
employeeemployee_code, first_name, last_name, email, phone, status, user_idcompany, branch, department, grade, login (user_id)
client / client_sitename, code; site: geo_lat, geo_lng, geofence_radius_mbranch
deploymentrole_title, starts_on, ends_on, status, pay_rate, bill_rateemployee, client, site, service line
shiftname, starts_at, ends_at, crosses_midnight, break_minutes, statussite (optional)
roster_assignmentroster_date, statusemployee, deployment, shift, site
attendance_recordattendance_date, status, check_in_at, check_out_at, check-in geo and photoemployee, roster_assignment, shift, site
attendance_policygeofence_mode (off/warn/block), late grace, half-day, radius, time zone, photo, self-service, require checkoutworkspace
site_headcount_requirementdesignation, required_countsite
leave_request / leave_balancetype, dates, days, status / opening, accrued, used, adjusted, closingemployee
kyc_case / kyc_check / kyc_employment_recordstatus, valid_until / title, status, reference / company, dates, statusemployee, documents
payroll_input / billing_inputperiod, days, OT hours, gross, deductions, net, status / units, amounts, statusemployee / client, site
compliance_tasktitle, category, status, due_dateemployee, client, site (optional)

Status vocabularies

attendance: present, late, half_day, absent, leave, holiday, weekly_off, exception · deployment: planned, active, completed, cancelled · shift: draft, published, locked, cancelled · leave: requested, approved, rejected, cancelled · payroll: draft, approved, exported, locked · billing: draft, approved, invoiced, locked · KYC case: draft, in_review, on_hold, cleared, rejected · KYC check: pending, in_progress, passed (shown as Verified), failed, waived · compliance: open, in_progress, completed, overdue, waived.