Skip to content

Developer Documentation

This hub gathers the ways to build against the platform. OAuth2 handles authorization, a REST API provides read and write access, Zapier triggers support webhook workflows, and an MCP server serves AI assistants. Each section below explains what a surface is for and how to choose between them.

What each surface is for

Five integration surfaces are documented here, and they are not interchangeable. OAuth2 handles authorization so a third-party application can act on behalf of a user. REST API v2 provides read and write access with scoped API keys and webhooks. REST API v1 is a read-only API covering departments, locations, labels, leave types, leaves, and users, authenticated via API key. Zapier connects the product to 5,000+ apps and delivers triggers for leave request events with real-time webhook payloads. The MCP server connects Claude Desktop, Cursor, and other AI assistants over the Model Context Protocol, with read and manage access to leaves, people, holidays, and workspace settings.

Choosing a surface by job

Use this checklist to match a task to a surface before you write code:

  • Need to act on behalf of a signed-in user? Start with OAuth2 Authorization Code Grant.
  • Need to read departments, locations, labels, leave types, leaves, or users with an API key? REST API v1 is the read-only option.
  • Need to write data, or need scoped keys plus webhooks? REST API v2.
  • Need no-code triggers on leave request events and delivery to other apps? Zapier.
  • Need an AI assistant to read and manage leaves, people, holidays, and workspace settings? MCP server.
  • Need step-by-step walkthroughs for common jobs such as reading leave balances? Start with the Guides section.

Worked example: reading leave balances

Suppose the job is to read leave balances for reporting. REST API v1 exposes leaves and users read-only with an API key, which fits a straightforward read. REST API v2 is the choice when the same workflow also needs to write or to receive webhooks. If the consumer is an AI assistant, the MCP server covers reading and managing leaves and people. OAuth2 is the right starting point when the read must happen on behalf of a specific user rather than with a workspace API key. The Guides section covers this and other common jobs step by step.

Read-only vs write: a common failure distinction

A frequent source of confusion is treating REST API v1 as a general-purpose API. It is read-only and authenticated via API key, so write attempts belong on REST API v2, which uses scoped API keys and webhooks. Similarly, OAuth2 is about authorization on behalf of users, not a substitute for an API key on workspace-level reads. Pick the surface by the operation type first, then by who the caller acts for.

On-page controls

The documentation page exposes two controls: a Copy Markdown button that copies the page content as Markdown, and a dialog trigger button (aria-haspopup="dialog") that opens an additional panel. Both are inside the main content area.

Frequently asked questions

When should I use OAuth2 instead of an API key?

Use OAuth2 with the Authorization Code Grant flow when a third-party application needs to act on behalf of a user. Use API keys for workspace-level access: REST API v1 uses an API key for read-only access, and REST API v2 uses scoped API keys for read and write.

What is the difference between REST API v1 and v2?

REST API v1 is read-only and covers departments, locations, labels, leave types, leaves, and users, authenticated via API key. REST API v2 provides read and write access with scoped API keys and webhooks.

What can an AI assistant do through the MCP server?

Over the Model Context Protocol, assistants such as Claude Desktop and Cursor can read and manage leaves, people, holidays, and workspace settings.

How do I react to leave request events without writing a server?

Use the Zapier integration: it connects to 5,000+ apps, sets up triggers for leave request events, and delivers real-time webhook payloads.