A Service account API key lets you connect external services to PeopleForce while controlling which employee data and company-level actions are available through the API. Unlike a Company (legacy) API key, access for a Service account is managed through a dedicated role in Roles & permissions.
🚀 Service accounts are generally available on the Professional plan and during a trial. You no longer need to ask support to enable them.
🔑 Generate a Service account API key
Go to Settings → API keys.
Click + New.
Enter a name for the key.
Under Type, keep Service account selected. It is selected by default. The other option, Company (legacy), is the older key type. The third, Careers, gives limited access for a careers site or job board.
Click Generate. Copy the generated API key and save it in a secure location. For security reasons, PeopleForce will not display the full key again after it has been generated.
💡 A list of allowed IP addresses can be set only on a Company (legacy) key. A Service account key is limited by its role instead.
👤 Create a Service account role
After generating the key, create a role that defines its access.
Go to Settings → Roles & permissions.
Click New role and select Service account.
Enter the role name and, optionally, a description.
Under Who is assigned this role?, select the Service account API key you created.
Then configure permissions for this role to determine what the Service account can access through the API.
🔐 Configure access to employee data
Open the People tab to define which employees and information the Service account can access.
Under Whose data can members access?, choose the employees whose data should be available:
Specific people – use conditions to define which employees the Service account can access.
Everyone – allow access to all employees.
You can also choose whether terminated employees should be included.
Then configure What can this role see? for the required employee data. Depending on the permission, you can provide:
None – no access;
View – read access;
Edit – permission to make changes.
If the role does not include a particular employee, that employee will not be returned through the API. If the role does not have access to a specific field, that field will be omitted from the API response.
🏢 Configure company permissions
Use the Company tab to grant access to company-level functionality.
Enable the required Manage … permissions depending on what the integration needs to do, for example, when working with company-wide data such as departments or locations.
Grant only the permissions required for your integration.
🔌 Use the key with API v4
Service account keys are used with PeopleForce API v4.
Pass the generated key in the request header: X-API-KEY
API v4 currently does not include all endpoints available in API v3. Before setting up an integration, check whether the required endpoints are available in the API v4 reference.
📚 For more information about authentication, see API v4 authentication.
🤖 Use the key with the MCP server
A Service account key also lets an AI agent with no person behind it connect to the PeopleForce MCP server. Send the key in the X-API-KEY header. The agent acts with the key's role and gets a smaller set of tools: search people, list people fields, people leave balances and who's out (up to 92 days at a time). A Company (legacy) key is refused. See Connect an AI assistant with MCP.






