Setup Guide
This guide walks you through creating a People HR account and obtaining the API key required to use the People HR connector.
Prerequisites
- An active People HR account. If you do not have one, sign up at People HR.
Step 1: Navigate to API settings
- Log in to your People HR account.
- Select on Settings in the bottom-left sidebar menu.
- Select API from the Settings sidebar menu.
note
If you do not see the API option, contact People HR support to request API access for your account.
Step 2: Create a new API key
- On the API Key Management page, select the + icon to add a new API key.
- Enter a descriptive Key Name (e.g.,
Ballerina PeopleHR Connector). - Under Application Actions, select the permissions the key should have access to. For full connector functionality, select all actions for Employee, Salary, Absence, Holiday, and any other modules you need.
- Select Save.
Step 3: Copy and store the API key
- After saving, copy the generated API Key from the API Key Management page.
- Store the API key securely; this is the
apiKeyvalue you will use to configure the connector.
tip
Store the API key securely. Do not commit it to source control. Use Ballerina's configurable feature and a Config.toml file to supply it at runtime.
Step 4: Optionally restrict by IP address
For enhanced security, you can restrict the API key to specific IP addresses:
- In the API Key Management page, locate the IP Restriction settings for your key.
- Add the IP addresses from which the connector will make requests.
- Save your changes.
tip
IP restriction is recommended for production environments to prevent unauthorized use of the API key.
What's next
- Action reference: Available operations