Documentation Index
Fetch the complete documentation index at: https://docs.serval.com/llms.txt
Use this file to discover all available pages before exploring further.
About Factorial
Factorial is a modern HRIS used by small and mid-sized companies to manage the full employee lifecycle: onboarding, time off, payroll, performance, documents, and reporting, from a single platform.What the Factorial integration enables
| Capability | Description |
|---|---|
| Workflow Automation | Build Serval workflows on top of any resource exposed by Factorial’s REST API |
Factorial configuration (in Factorial)
Prerequisites
- Admin access to your Factorial company
- Ability to view Settings in the Factorial UI
Understanding Factorial API authentication
Factorial exposes its public API via API keys scoped to a company (not an individual user). API keys grant full admin access on behalf of the company, so treat them with the same care as a service account credential.Factorial issues API keys as long opaque tokens. They are passed on every request via the
x-api-key header. Serval handles header injection automatically.Step 1: Generate an API key
Open API Keys settings
- Log in to Factorial as a company admin
- Navigate to Settings → Advanced configuration → API Keys
- Click Create API Key
Serval configuration
Open the Factorial integration in Serval
- In Serval, go to Applications → Available → Factorial
- Click Connect
Enter your credentials
| Field | Description | Example |
|---|---|---|
| API Key | The API key generated in Factorial | •••••••••••••••••••• |
| API URL (optional) | Custom Factorial host. Leave blank for production. | api.eu2.demo.factorial.dev |
How authentication works
Factorial uses a static API key sent on every request. When Serval calls Factorial on your behalf, it:- Looks up the encrypted API key tied to your integration install
- Injects the header
x-api-key: <your-api-key>on the proxied request - Forwards to the API URL on file (production by default)
Using Factorial in workflows
Once connected, you can use Factorial in your Serval workflows to automate HR processes:- Employee management: List, search, create, and update employees
- Teams & locations: Read company structure and team membership
- Time off: Manage leave types, balances, and requests
- Documents: Upload and manage employee documents
- Reporting: Pull HR data into downstream systems
The Factorial integration covers every endpoint in the Factorial API Reference. Browse the reference to discover all available capabilities.
Troubleshooting
401 Unauthorized
401 Unauthorized
404 Resource not found
404 Resource not found
404s usually mean the endpoint path doesn’t exist on your tenant’s Factorial API version. Confirm the resource path against the API reference. Factorial maintains multiple API versions and not every resource exists in every version.
Connection works against production but not demo (or vice versa)
Connection works against production but not demo (or vice versa)
Factorial API keys are scoped to a single cell. A key issued in production will not authenticate against
api.eu2.demo.factorial.dev and vice versa. Generate a key from the same tenant whose API URL you’re targeting.Additional Resources
Factorial API Reference
Complete API reference for Factorial
How to create API keys in Factorial
Step-by-step guide for issuing API keys
Need help? Contact support@serval.com for assistance with your Factorial integration.

