Overview

The Time Off API enables you to manage time-off policies, user balances, and time-off requests programmatically. Integrate with your HR systems to automate leave management.

Key Concepts

Policy Types

Policy types are categories of time off (e.g., Vacation, Sick Leave, Personal Days). Each policy type can contain multiple policies with different accrual rules.

Policies

Policies define the rules for a specific time-off type, including:

  • Name (e.g., "Vacation - Full-time Employees")
  • Unit (hours or days)
  • Accrual and balance rules

Balances

Each user assigned to a policy has a balance - the amount of time off available to them.

Requests

Time-off requests are submitted by users (or on their behalf) and can be approved, pending, or denied.


Available Endpoints

Policy Types

MethodEndpointDescription
GET/time-off/v1/policy-typesGet all policy types and their policies

Balances

MethodEndpointDescription
GET/time-off/v1/policy-types/{policyTypeId}/balancesGet user balances for a policy type
PUT/time-off/v1/policy-types/{policyTypeId}/balances/{userId}Update a user's balance

Requests

MethodEndpointDescription
POST/time-off/v1/requestsCreate a time-off request
PUT/time-off/v1/requests/{requestId}Update a time-off request

Policy Assignments

MethodEndpointDescription
PUT/time-off/v1/time-off-policies/{timeOffPolicyId}/assignmentsAssign user to a policy

Request Statuses

StatusDescription
approvedRequest has been approved
pendingRequest is awaiting approval
deniedRequest has been denied

Balance Units

UnitDescription
hoursBalance tracked in hours
daysBalance tracked in days

Constraints

ConstraintValue
Max balances per GET100
Date formatYYYY-MM-DD
Time formatHH:MM:SS
TimezoneTz format (e.g., America/New_York)

Authentication

All endpoints require authentication via API key or OAuth 2.0.

Required Scopes

ScopeOperations
time_off.readGET policy types, GET balances
time_off.writePUT balances, POST/PUT requests, policy assignments

Workflow

  1. Get policy types to understand available time-off categories
  2. Assign users to policies with initial balances
  3. Create requests for time off (as approved or pending)
  4. Manage balances by updating as needed
📝

Note

Users must be assigned to a policy before you can create time-off requests or manage their balances for that policy type.


Guide Pages

PageDescription
Policy Types & BalancesGet policies and manage user balances
Time Off RequestsCreate and update time-off requests
Policy AssignmentsAssign users to policies

API Reference