Employer Dashboard
The employer application lives under/dashboard. It combines operational routes for payroll admins with a developer-facing API access section for machine clients.
Route map
| Route | Purpose | Primary data sources |
|---|---|---|
/dashboard | Overview page with treasury, team, yield, and payroll summary cards | Supabase, YieldRouter, payment_items, payroll_runs |
/dashboard/team | Team roster and CSV import entry point | employees |
/dashboard/team/add | Add-employee flow | employees, invite and KYC APIs |
/dashboard/team/[id] | Individual employee details | employees, compliance state |
/dashboard/payroll | Payroll history surface | payroll_runs |
/dashboard/payroll/new | Payroll creation wizard | employees, payroll prep APIs |
/dashboard/payroll/[runId] | Single payroll run detail | payroll_runs, payment_items |
/dashboard/treasury | Treasury balance, deposits, yield, and transaction history | PayrollTreasury, YieldRouter, payment_items |
/dashboard/treasury/deposit | Funding instructions and deposit readiness | employers, Bridge virtual-account state, treasury hints |
/dashboard/cards | Employer-managed employee card program | employees, /api/employees/[id]/card |
/dashboard/compliance | KYC and TIP-403 review surface | employees, compliance_events, TIP-403 |
/dashboard/api-access | MPP pricing, receipts, sessions, and agent demo | mpp_sessions, MPP routes |
/dashboard/settings | Organization profile and controls | employers |
/dashboard/settings/billing | Subscription, payroll volume, and MPP spend | employers, payroll_runs, mpp_sessions |
/dashboard/demo | Demo agent experience | /api/demo/run-agent SSE |
Core employer workflows
Team onboarding
- Create an employer record through
POST /api/employers. - Add employees through
POST /api/employeesorPOST /api/employers/[id]/team. - Generate employee KYC links through
POST /api/employees/[id]/kyc. - Track employee onboarding, wallet creation, and KYC state from the team and compliance routes.
Payroll preparation
POST /api/employers/[id]/payroll is the pre-flight route. It does four jobs:
- Checks employer treasury balance in
PayrollTreasury - Runs TIP-403 authorization checks for every recipient wallet
- Builds 32-byte payroll memos
- Persists the draft run and payment items in Supabase
Treasury
/dashboard/treasury reads live treasury and yield state, then combines it with transaction history. The page depends on:
GET /api/employers/[id]/treasuryGET /api/yield- transaction queries and realtime invalidation hooks
API access
The API access section is the operator console for machine clients. It surfaces:- MPP route pricing
- Session history
- Recent receipts
- The live demo agent terminal
Additional dashboard behavior
- Team management includes CSV import, filters, column visibility, and row actions for salary updates, manual review holds, and removal.
- Team detail includes overview, payment history, and compliance tabs plus employer actions and card issuance when Bridge prerequisites are satisfied.
- API Access includes one-time agent key generation, receipt history, session history, and the live demo terminal.