Create the API key
A Standalone API Key reads the employees, teams and companies that its access level and permissions allow.
Sign in to Pleo
Sign in to your Pleo Web App for Production as an admin or bookkeeper.
- Select Settings in the main left-hand menu.
- Scroll down and select API Keys.
Name the key and set its expiry
Select Create API Key, then fill in the first fields.
- Name:
StackOne Integration - Expiration: choose how long the key stays valid. Pleo shows the date the key expires next to your choice and disables the key after that date. The connection then stops working until you create a new key and paste it into StackOne Hub, so pick the longest period your security policy allows.
Choose the access level and permissions
Under Access level, select Only this entity to limit the key to the company you are working in. Select All entities in multi-entity organisation only when the connection must read several companies.
- Under Permissions, tick only the permissions below. This connector only reads, so leave every other permission unticked.
users:readreads employees. The connection test needs it.team:readreads teams. The connection test needs it.companies:readis needed only for the Get Company action. Leave it unticked if you do not use that action.
Create the key and copy it
Select Create API Key, then select Copy API Key and store the key securely for use later.
- The key is shown once. Pleo says “We can display it only once.” There is no regenerate option, so create a new key if it is lost.
- Paste it into the API Key field in StackOne Hub.
- Format:
pls_followed by letters, digits and underscores - Example:
pls_example_key
Choose a company
The Company ID limits StackOne to one Pleo company. It is optional. Set it only when the
key’s access level is All entities in multi-entity organisation and StackOne should read
one company.
- Leave it empty to read every company the key reaches. With Only this entity, leave it empty.
- Pleo returns the ID as
companyIdon each employee in its Employees API. - Format:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - Example:
00000000-0000-0000-0000-000000000000 - The connection test fails if the key reads no employee in that company.
- Paste it into the Company ID field in StackOne Hub.
Revoke the key
To stop StackOne from reading your Pleo data, delete the key.
- Navigate to Settings > API Keys.
- Select the key’s row, then select Delete.
Linking the Account from the Hub
Navigate to the Hub
Fill out the fields
- API Key
- Company ID (Optional)
Connect
- Click Connect
- If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
- Once authorization is successful, you will see a confirmation popup
If the account linking is successful, you will see the newly linked account on your Accounts page.