Skip to content

Build your own connections with the Open API

The Open API lets your own tools read and write leave data, users, locations, departments and leave types. Access is controlled with scoped API keys, and signed webhooks notify your system when leave changes. This guide explains the connection steps, the scope model, the webhook events and the on-behalf-of capability so you can decide whether the integration fits your workflow.

Illustrative workplace handover discussion
Illustrative time off beside a lake
Illustrative team coverage planning

What the Open API exposes

Read details
What the Open API exposes

What the Open API exposes

What the Open API exposes

Connection steps

Read details
Connection steps

Connection steps

Connection steps

Key controls and scope map

Read details
Key controls and scope map

Key controls and scope map

Key controls and scope map

Signed webhooks for leave events

Read details
Signed webhooks for leave events

Signed webhooks for leave events

Signed webhooks for leave events

What the Open API exposes

The API covers leave records, users, locations, departments and leave types. You can read and update these from scripts or internal tools. Beyond leave requests, the API also supports automations, notifications and scheduled reports. The reference is a REST API v2, and the developer documentation includes webhooks, OAuth2 and rate limits. A typical read request returns leave entries with user, leave type, start and end dates, and a working-day duration. A write request can create leave for a specific person when you send the on-behalf-of header.

Workplace and time-off editorial photography

Connection steps

  1. Create a workspace through the free trial using a work email, Microsoft Teams, Slack or Google account. No credit card is required for the trial.
  2. An administrator opens Add-ons and turns on Open API. The add-on is included at no extra cost.
  3. Create an API key: give it a name, set an expiry, and choose only the scopes the integration needs. Available scopes include leaves:read, leaves:write, users:read and locations:read. A key never exceeds its owner's role.
  4. Use the key in your own tools to call the API, or subscribe to webhooks to receive leave events. The developer docs hold the full reference.
Workplace and time-off editorial photography

Key controls and scope map

Each key has a name, an expiry date, a set of scopes, and can be rotated or revoked. The scope list is the main control: a payroll export key might need leaves:read and users:read, while a booking tool needs leaves:write as well. Because a key cannot exceed its owner's role, the person who creates the key should have the permissions the integration will need. Treat expiry as a review point rather than a permanent setting.

Workplace and time-off editorial photography

Signed webhooks for leave events

Webhooks notify your system when leave is requested, approved, denied, changed, cancelled or expired. The payload includes an event type such as leave.approved and an apiVersion field. Because the webhook is signed, your endpoint can verify that the event came from the leave system before acting on it. Use webhooks when you need near-real-time reactions; use polling reads when you need a full reconciliation.

Workplace and time-off editorial photography

Acting on behalf of a team member

When your own tool books leave, the request can be sent as a specific user through the on-behalf-of header. That keeps the record attributed to the right person instead of a generic integration account. The header value is a user identifier, and the request body carries the leave type and dates. Confirm that the key's scopes and the owner's role allow writing leave for that user before relying on this in production.

Workplace and time-off editorial photography

Decision checklist

Use this checklist before you build:

  • Do you need to read leave data, write it, or both? Choose scopes accordingly.
  • Do you need event-driven updates? If yes, plan a webhook endpoint and signature verification.
  • Will your tool book leave for other people? If yes, confirm the on-behalf-of header and the key owner's role.
  • Do you need automations, notifications or scheduled reports? Those are separate API areas from leave requests.
  • Have you set an expiry and a rotation plan for each key?
Workplace and time-off editorial photography

Common failure distinction

A request that fails because the key lacks a scope is different from a request that fails because the key has expired. Scope failures usually mean the key was created without leaves:write or users:read; fix them by creating a new key with the right scopes rather than widening an existing one. Expiry failures mean the key passed its expiry date; rotate it and update the client. A third case is a role limit: the key cannot do more than its owner's role, so check the owner's permissions before changing scopes.

Workplace and time-off editorial photography

Worked example: reading leave for a date range

A request to GET /v2/leaves with a startDate parameter returns a data array. Each entry includes a userId, a leaveTypeId, a startDate, an endDate and a durationWorkingDays value. In the supplied example, the response shows a three-working-day leave starting on 2026-08-24. If you need the user and leave type expanded, add expand=user,leaveType to the request. Use this shape to map the response into your own reporting or payroll export.

Workplace and time-off editorial photography

Frequently asked questions

What can I do with the Open API?

You can read and write leave data, users, locations, departments and leave types from your own tools, and receive signed webhooks when leave changes. The API also covers automations, notifications and scheduled reports.

Who can create API keys?

Administrators create keys from Add-ons, then Open API, and choose which scopes each key gets. A key never exceeds its owner's role.

Is the Open API included in my plan?

There is no separate charge for the Open API on the Core or Complete plans. To begin using it, an administrator enables it from the Add-ons area of the workspace.

Where can I find the API documentation?

The developer docs contain the full REST API v2 reference, webhooks, OAuth2 and rate limits.

Can I try the Open API during the free trial?

Yes. The 14-day free trial includes every integration, so you can set up Open API before choosing a plan.