OAuth2 Authorization Server
It covers the supported grant, the two client types, self-service registration, metadata discovery and how long tokens last. Use it to choose your client shape, then follow the linked walkthrough for the actual request sequence.
What the authorization server provides
The authorization server issues tokens to applications acting on behalf of a platform user. Both server-side (confidential) and user-installed (public) applications use the same server. The supported capabilities are:
- Authorization Code Grant (RFC 6749 §4.1) for confidential and public clients.
- PKCE (RFC 7636, S256 only). Required for public clients, optional for confidential ones.
- Dynamic Client Registration (RFC 7591) at POST /oauth/register. Public clients only, rate-limited.
- Authorization Server Metadata (RFC 8414) at GET /.well-known/oauth-authorization-server. Reading this document lets a client learn which endpoints and capabilities the server exposes instead of hard-coding them.
- Refresh tokens valid for 365 days.
- Access and ID tokens valid for 60 minutes.
The authorization sequence
The flow has five steps. First, your application — or a public client that auto-registered — redirects the user to /oauth/authorize with a PKCE code_challenge. Second, the user authenticates with the platform and grants the requested scopes on the consent screen. Third, the platform redirects back to your registered redirect_uri with an authorization code. Fourth, your application exchanges the code plus the code_verifier at /oauth/token for access and refresh tokens. Fifth, you use the Bearer token against any protected endpoint (/oauth/me, MCP tools, and so on).
Base URL and the older host
The authorization server base URL is supplied as a protected contract value and is reproduced exactly in the accompanying module. The original host $API_APP_BASE_URL/oauth/* still works and will keep working: it points at the same API. New integrations should use {{AUTH_BASE_URL}}, which is what the RFC 8414 metadata advertises.
Choosing a client type
The client-type table below is the supplied reference for credentials, PKCE and registration. Read it as a decision aid: a server-side integration that can keep a secret is confidential; anything that ships to a user's device or browser is public and must use PKCE with S256. Public clients do not carry a secret; they authenticate the token exchange with a PKCE verifier instead.
Integrations that use this flow
The MCP server is the main example: AI clients (Claude Desktop, Cursor, Claude Code and others) connect as public clients, auto-register via DCR, then run a PKCE authorization code flow. Custom confidential clients are registered by contacting the developer team; the contact address is supplied as a configuration value rather than printed here.
Legacy integrations
The Zapier integration predates this flow and still uses the original confidential-client shape: no PKCE, served under $API_APP_BASE_URL. It is documented on the legacy flow page, and its continued availability is a policy question for the platform operator to state explicitly rather than something this page can promise. New integrations should not use it.
Where to go next
The authorization code walkthrough gives the step-by-step request sequence with PKCE. The endpoints reference covers DCR and metadata. The scopes page lists available permission scopes. The legacy flow page documents the deprecated confidential-client flow used by Zapier. A separate guide covers keeping users in sync with an HRIS via the REST API, MCP or directory import.
| Client type | Credentials | PKCE | Registration |
|---|---|---|---|
| Confidential (server-side) | client_id + client_secret | Optional | Manual (contact us) or Dynamic |
| Public (desktop, mobile, browser) | client_id only | Required (S256) | Dynamic (self-service via /oauth/register) |
Supplied reference table; reproduce every row exactly. The 'contact us' registration path uses the developer contact configuration variable.
Frequently asked questions
Is PKCE required for every client?
No. PKCE with S256 is required for public clients and optional for confidential ones. A public client that omits it cannot complete the token exchange.
How long do tokens last?
Access and ID tokens are valid for 60 minutes. Refresh tokens are valid for 365 days.
Can any client self-register?
Dynamic Client Registration is available for public clients only and is rate-limited. Confidential clients are registered manually or through the dynamic path.
Does the older API host still work?
Yes. The original host $API_APP_BASE_URL/oauth/* still works and will keep working; it points at the same API. New integrations should use {{AUTH_BASE_URL}}, which is what the RFC 8414 metadata advertises.
{{AUTH_BASE_URL}}