Skip to content

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 ​

APICredential
Public /api/v1 employee, team, learning-path and workflow endpointsIntegration token from Settings → Integrations → API access
/api/v1/tokens managementSigned-in admin or owner browser session; writes also require a same-origin Origin or Referer header
Legacy /api?action=employee-trackOrganisation API key, supplied by your organisation owner
POST /api/callbacks/tasks/{taskId}/statusExecution-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.

bash
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 ​

MethodPathReference
GET/api/v1/employeesEmployees
GET/api/v1/employees/{employeeId}Employee overview
GET/api/v1/employees/{employeeId}/workflowsAssigned workflows
GET/api/v1/employees/{employeeId}/workflows/{assignmentId}Assigned workflow detail
GET/api/v1/employees/{employeeId}/learning-pathsAssigned learning paths
GET/api/v1/employees/{employeeId}/learning-paths/{learningPathId}Assigned learning path detail
GET/api/v1/workflowsWorkflow catalog
GET/api/v1/workflows/{workflowId}Workflow requirements
POST/api/v1/employees/{employeeId}/workflowsAssign a workflow
GET/api/v1/teamsTeams
GET/api/v1/learning-pathsLearning path catalog
GET, POST/api/v1/tokensToken management
POST/api/v1/tokens/{tokenId}/revokeRevoke a token
POST/api?action=employee-trackLegacy employee track
POST/api/callbacks/tasks/{taskId}/statusTask 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:

json
{"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.

StatusMeaning
400Invalid JSON, missing parameters, or invalid input
401Missing, invalid or revoked credential
403Inactive or locked subscription, insufficient role, or invalid browser origin; for the legacy employee track, a plan user limit
404Resource not found within the authenticated organisation
405Unsupported method
409Duplicate active workflow assignment
429V1 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.