Management — Employee Management
Navigate to: Dashboard → Employee Management
What it shows: All employees (API consumers) in your organization. Each employee has a unique API key, belongs to a team, and has individual budget limits.
Step-by-step: Add an employee
- Click Employee Management in the sidebar.
- Click Add Employee.
- Enter Name and Email.
- Select a Team (optional — defaults to organization default team).
- Set Monthly Budget and Daily Budget in USD.
- Click Save — AgentWatch generates a unique API key automatically.
- Copy the API key and share it with the employee. It is only shown once in full.
Step-by-step: Import employees via CSV
- Click Import CSV.
- Download the template CSV (columns:
name,email,team,monthly_budget,daily_budget). - Fill the template and upload it.
- Review the preview table — rows with errors are highlighted.
- Click Confirm Import.
Step-by-step: Suspend an employee
- Find the employee in the list and click their row.
- Toggle Suspended on.
- Click Save — the employee’s API key is immediately rejected at the gateway.
Step-by-step: Rotate an API key
- Open the employee record.
- Click Regenerate Key.
- Confirm — the old key is invalidated immediately.
- Copy and distribute the new key.
Budget columns:
| Column | Meaning |
|---|---|
| Daily Budget | Max spend per calendar day (UTC). Resets at midnight. |
| Monthly Budget | Max spend per calendar month. Resets on the 1st. |
| Last Active | Timestamp of the most recent API request |
| Status | Active / Suspended / Over Budget |
How to test:
- Add an employee with a $0.01 daily budget.
- Use the generated API key to call
POST /v1/chat/completions. - After the budget is exceeded, subsequent calls should return
{"error": "budget_exceeded"}. - Increase the daily budget and retry — calls should succeed immediately.
API endpoints:
| Method | Path | Purpose |
|---|---|---|
| GET | /admin/tenants/enhanced |
List all employees |
| POST | /admin/tenants/enhanced |
Create employee |
| PUT | /admin/tenants/:id |
Update info, budget, suspension |
| DELETE | /admin/tenants/:id |
Remove employee |
| POST | /admin/tenants/:id/renew-key |
Rotate API key |
| POST | /admin/tenants/import-csv |
Bulk import |