WeekOne API reference
Use WeekOne APIs to read employee onboarding progress, discover workflow templates and assign workflows to employees. Replace https://YOUR-INSTANCE in examples with your WeekOne deployment origin.
Authentication
| API | Credential |
|---|---|
Public /api/v1 employee, team, learning-path and workflow endpoints | Integration token from Settings → Integrations → API access |
/api/v1/tokens management | Signed-in admin or owner browser session; writes also require a same-origin Origin or Referer header |
Legacy /api?action=employee-track | Organisation API key, supplied by your organisation owner |
POST /api/callbacks/tasks/{taskId}/status | Execution-scoped callback key delivered by the API task |
Send integration tokens as Authorization: Bearer YOUR_TOKEN. The Bearer prefix is required. Store credentials securely and never put them in URLs.
An owner or admin opens Settings at the bottom of the left sidebar, then Integrations → API access. Select Create Token, copy the secret when shown, and use it from your server. Secrets start with w1r_. View full API docs on the same page opens the in-app API Access Docs summary.
curl -H 'Authorization: Bearer YOUR_INTEGRATION_TOKEN' \
'https://YOUR-INSTANCE/api/v1/employees?page=1&pageSize=50'Public v1 endpoints only return data from the token's organisation, and they reject requests when the organisation's subscription is inactive or its access is locked, for example after an expired trial. Tokens can be revoked in settings. Optional employee fields are hidden unless enabled in the token's field allowlist. Passwords are never exposed.
Endpoint directory
| Method | Path | Reference |
|---|---|---|
| GET | /api/v1/employees | Employees |
| GET | /api/v1/employees/{employeeId} | Employee overview |
| GET | /api/v1/employees/{employeeId}/workflows | Assigned workflows |
| GET | /api/v1/employees/{employeeId}/workflows/{assignmentId} | Assigned workflow detail |
| GET | /api/v1/employees/{employeeId}/learning-paths | Assigned learning paths |
| GET | /api/v1/employees/{employeeId}/learning-paths/{learningPathId} | Assigned learning path detail |
| GET | /api/v1/workflows | Workflow catalog |
| GET | /api/v1/workflows/{workflowId} | Workflow requirements |
| POST | /api/v1/employees/{employeeId}/workflows | Assign a workflow |
| GET | /api/v1/teams | Teams |
| GET | /api/v1/learning-paths | Learning path catalog |
| GET, POST | /api/v1/tokens | Token management |
| POST | /api/v1/tokens/{tokenId}/revoke | Revoke a token |
| POST | /api?action=employee-track | Legacy employee track |
| POST | /api/callbacks/tasks/{taskId}/status | Task status callbacks |
Application endpoints for the flow designer, connection administration, test requests, execution history and recovery use browser authentication. They are internal application APIs rather than integration contracts. For how workflow API Call tasks complete, see API tasks. External systems can report progress or completion through task callbacks, using an execution-scoped callback key rather than an organisation integration token.
Pagination and filtering
GET /employees, /teams and /learning-paths accept page (default 1) and pageSize (default 50, maximum 200; larger values are capped). Responses contain data and pagination:
{"data":[],"pagination":{"page":1,"pageSize":50,"total":0,"hasNext":false}}Employee lists and employee detail/nested assignment GET endpoints accept includeArchived=true (also 1). This includes archived employees and their archived workflow and learning-path assignments. Employee lists normally include EMPLOYEE and HIRING_MANAGER users; includePrivileged=true (also 1) also includes ADMIN and OWNER users. Direct employee-ID lookups and workflow assignment creation accept all four roles without that flag. The team and learning-path catalogs exclude deleted records.
Errors and rate limits
V1 failures return {"error":"message"}. Workflow assignment validation and duplicate errors also provide code, and validation errors provide fields.
| Status | Meaning |
|---|---|
| 400 | Invalid JSON, missing parameters, or invalid input |
| 401 | Missing, invalid or revoked credential |
| 403 | Inactive or locked subscription, insufficient role, or invalid browser origin; for the legacy employee track, a plan user limit |
| 404 | Resource not found within the authenticated organisation |
| 405 | Unsupported method |
| 409 | Duplicate active workflow assignment |
| 429 | V1 integration token rate limit exceeded |
V1 integration tokens allow 100 requests per 60-second window per token. The window starts with the first request it counts. A 429 response includes Retry-After (seconds) and X-RateLimit-Reset (ISO timestamp). Back off until the indicated time. Browser token management and the legacy endpoints do not use this v1 token rate limit. Do not blindly retry workflow assignment POST requests: check existing assignments after an ambiguous network result.