Overview
The Company Policies API lets you manage the policy families that govern how employees are paid and how they can be scheduled. Integrators and the Connecteam agent use the same endpoints: the agent relies on this surface to help admins attach the right policies during setup.
Three families, one APIPay rules, scheduling rules, and working hours. Same
company_policiesscopes. Different assignment rules. Use the guide for the family you are integrating.
Key Concepts
Pay Rule Policies
Pay rule policies determine how employee work hours are calculated for payroll:
- Overtime calculation rules
- Shift differentials and premiums
- Regular vs overtime hour thresholds
- Additional hourly rate conditions
Each user is assigned to a pay rule policy with an effective date. If the new effective date is earlier than an existing assignment, the old assignment is replaced. Historical assignments affect payroll calculations retroactively. You can list the reusable pay rules, see which rules sit in each policy, add or remove a rule, list who is assigned, and remove an assignment. The Connecteam agent uses this surface to help admins attach the right pay structure during setup.
Effective dates change payrollAssign and unassign are dated. A date that lands on approved or locked timesheet days is rejected. Composition changes (add or remove a rule) apply immediately to everyone on the policy.
Scheduling Rule Policies
Scheduling rule policies are named bundles of labor constraints that Job Schedule enforces:
- Maximum hours or shifts per day and per week
- Minimum hours or shifts per week
- Minimum rest between shifts (
minHoursBetweenShifts)
Assignments take effect immediately (no effective date). An employee can also have custom scheduling rules on their profile; those are returned only on the per-user GET. Create and edit policy contents in the dashboard; use the API to list policies, look up who they apply to, assign users, and delete a policy. The Connecteam agent uses these same endpoints to help admins attach the right policy during setup.
Immediate, not datedThere is no public unassign. Move someone to a different policy, or delete the policy (which drops every assignment). Custom profile rules stay in place.
Working Hours Policies
Working hours policies define an employee's expected week:
- Which days are work days
- Allowed time windows on each day
- Expected daily duration
- Timezone the windows are evaluated in
A user has at most one working hours configuration: a shared policy or custom hours on their profile. Assignments take effect immediately. Create and edit shared policy contents in the dashboard; use the API to list policies, read a user's hours, assign or unassign users, and set or remove custom hours. The Connecteam agent uses this surface to help admins set expected hours during setup.
One configuration per userShared policy or custom hours, never both. Assigning a shared policy replaces custom hours. Setting custom hours replaces a shared assignment.
Available Endpoints
Pay Rule Policies
| Method | Endpoint | Description |
|---|---|---|
| GET | /company-policies/v1/pay-rules | List reusable pay rules |
| GET | /company-policies/v1/pay-rule-policies | List policies, including the rules in each one |
| PUT | /company-policies/v1/pay-rule-policies/{payRulePolicyId}/pay-rules/{payRuleId} | Add a pay rule to a policy |
| DELETE | /company-policies/v1/pay-rule-policies/{payRulePolicyId}/pay-rules/{payRuleId} | Remove a pay rule from a policy |
| PUT | /company-policies/v1/pay-rule-policies/{payRulePolicyId}/assignments | Assign a user, with an effective date |
| GET | /company-policies/v1/pay-rule-policies/{payRulePolicyId}/assignments | List assignments in effect on a date |
| DELETE | /company-policies/v1/pay-rule-policies/{payRulePolicyId}/assignments/{assignmentId} | Remove one assignment |
Scheduling Rule Policies
| Method | Endpoint | Description |
|---|---|---|
| GET | /company-policies/v1/scheduling-rule-policies | List company scheduling rule policies |
| GET | /company-policies/v1/users/{userId}/scheduling-rule-policies | Get policies governing one employee |
| GET | /company-policies/v1/scheduling-rule-policies/{schedulingRulePolicyId}/assignments | List assignments for a policy |
| PUT | /company-policies/v1/scheduling-rule-policies/{schedulingRulePolicyId}/assignments | Assign users to a policy |
| DELETE | /company-policies/v1/scheduling-rule-policies/{schedulingRulePolicyId} | Delete a policy and its assignments |
Working Hours Policies
| Method | Endpoint | Description |
|---|---|---|
| GET | /company-policies/v1/working-hours-policies | List shared working hours policies |
| GET | /company-policies/v1/users/{userId}/working-hours | Get a user's working hours |
| PUT | /company-policies/v1/users/{userId}/working-hours | Set custom working hours for a user |
| DELETE | /company-policies/v1/users/{userId}/working-hours | Remove a user's custom working hours |
| PUT | /company-policies/v1/working-hours-policies/{workingHoursPolicyId}/assignments | Assign users to a shared policy |
| DELETE | /company-policies/v1/working-hours-policies/{workingHoursPolicyId}/assignments/{userId} | Unassign a user from a shared policy |
Start with the family guideCurl examples, field tables, and errors live on Pay Rule Policies, Scheduling Rule Policies, and Working Hours Policies.
Authentication
All endpoints require authentication via API key or OAuth 2.0.
Required Scopes
| Scope | Operations |
|---|---|
| company_policies.read | GET pay rules and pay rule policies; GET scheduling rule, working hours, and pay rule assignments; GET user scheduling rules and working hours |
| company_policies.write | PUT pay rule, scheduling rule, and working hours assignments; PUT add pay rule to policy; PUT custom working hours |
| company_policies.delete | DELETE pay rule from policy; DELETE pay rule assignment; DELETE scheduling rule policy; DELETE custom working hours; DELETE a working hours assignment |
Plan limitationsPay rules need the Time Clock API. Scheduling rules and working hours need the Schedule API. Working hours also need Regular Working Hours enabled on the account.
Use Cases
Onboarding New Employees
Automatically assign new hires to the appropriate pay rule policy (with an effective date), scheduling rule policy, and working hours policy based on their role, location, or department. The Connecteam agent can do the same during first-time setup.
Policy Updates
When compensation rules change, bulk-update pay rule assignments with a new effective date. When labor constraints change, assign employees to a different scheduling rule policy immediately.
Department Transfers
When employees transfer, update their pay rule policy, scheduling rule policy, and working hours so payroll and Job Schedule stay in sync.
Compliance lookup
Answer which scheduling rules apply to an employee, including custom profile rules, without opening the dashboard.
Agent-assisted setup
The Connecteam agent uses these endpoints to look up existing policies and attach people during account or employee setup, so admins do not have to walk through the dashboard by hand.
Same surface as the agentIf you are building an integration, you are calling the same endpoints the Connecteam agent uses during setup. List policies first, then assign.
Guide Pages
| Page | Description |
|---|---|
| Pay Rule Policies | List pay rules, compose policies, assign users, and unassign |
| Scheduling Rule Policies | List policies, look up an employee, assign users, and delete a policy |
| Working Hours Policies | List policies, read a user's hours, assign users, and set custom hours |
Updated 1 day ago
