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.
Create the OAuth Application
Register a new OAuth application in Factorial as an admin.
- Log in to Factorial with your admin account and navigate to the OAuth applications page:
- Click the "New Application" button to create a new application.

Configure Application Settings
Fill in the application details with the Redirect URI and scopes.
-
Enter the Application Name (for example, the name of the software you're integrating).
-
Enter the Redirect URI:
- Postman in browser:
https://oauth.pstmn.io/v1/browser-callback - Postman desktop:
https://oauth.pstmn.io/v1/callback
- Postman in browser:
-
Select the scopes you will need for your integration.
If you have doubts about which scopes to apply, you can contact Factorial support.
-
Click "Submit".
Save Client ID and Client Secret
Copy the credentials — the Client Secret is only shown once.
- Copy and save the Client Secret in a safe location — it cannot be regenerated if lost.
- The Client ID will always be accessible from the application settings.
- Verify the Redirect URI and Scopes are saved correctly.

Generate Authorization Code
The Authorization Code will be needed in the next step.
- Click the green "Authorize" button next to the Company Token.
- You will be redirected to a Factorial page where you need to authorize the application to access data for the applied scopes.

- After clicking the "Authorize" button, you will be redirected to your Redirect URI page.
- The URL of that page contains your Authorization Code. For example:
https://oauth.pstmn.io/v1/browser-callback?code=elX2bzbV85mS90PU8319-mqxLcl-1MgSmuQlas33gw
In this example, the code is: elX2bzbV85mS90PU8319-mqxLcl-1MgSmuQlas33gw
Exchange Code for Access Token
Use Postman to request the token.
- In Postman, go to My Collection → Get data → Authorization.
- Set the Auth Type to
OAuth 2.0.
- Fill in the Configure New Token section with the following values:
| Field | Production | Demo |
|---|---|---|
| Auth URL | https://api.factorialhr.com/oauth/authorize | https://api.eu2.demo.factorial.dev/oauth/authorize |
| Access Token URL | https://api.factorialhr.com/oauth/token | https://api.eu2.demo.factorial.dev/oauth/token |
| Client ID | Your Client ID from the application | Your Client ID from the application |
| Client Secret | Your Client Secret from the application | Your Client Secret from the application |

- Scroll down to Auth Request and add a query parameter:
- Key:
code - Value: Your Authorization Code from step A4
- Key:
- Click the orange "Get new access token" button.
- In the pop-up window, click "Authorize" again.

- After authorization, a pop-up in Postman will return your Access Token.
Updated 20 days ago

