OAuth 2

This guide explains OAuth 2.0 authentication with Factorial HR and the two token types available. For step-by-step setup with Postman examples, see the Company Token and User Token guides.

Prerequisites

Before starting, make sure you have:

  • Admin access to Factorial HR
  • Access to the correct environment: Production or Demo
  • Postman access through browser or application
  • For the user token: a user assigned a specified permissions group

How to choose your environment: Environments: Production and Demo


Understanding Token Types

🏢 Company Token

A Company Token provides company-wide access to Factorial data. All actions are performed on behalf of the company, not a specific user.

PropertyDetails
LifetimeDoes not expire (but can be revoked)
Use caseIntegrations that need full company data without user interaction
PermissionsFull access to all company data

👤 User Token

A User Token provides user-scoped access. All actions are performed on behalf of a specific employee, and access is limited by that employee's permission group.

PropertyDetails
Lifetime1 hour (requires refresh token to renew)
Use caseIntegrations with restricted access, hiding sensitive data from third parties
PermissionsLimited to the employee's permission group

Support

If you have any issues or questions about the API, don't hesitate to get in touch with our Tech Support team by filling out one of the following forms:

➡️ Partner Developers Tech Support

➡️ Clients Customer Support



Did this page help you?