HR & payroll
Personio mock API
Personio API v2: OAuth client-credentials tokens, persons with cursor pagination, absence and attendance periods, projects, org units and signed webhooks.
At a glance
- Operations
- 75
- Stateful operations
- 38
- Stateful resources
- 5
- Webhook events
- 7
- Vendor API version
- v2
- Verification
- Spec-verified
How it works
Use Personio without calling Personio SE & Co. KG
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
Authorization: Bearer example_personio_access_token State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Persons | 11 |
| Absence periods | 7 |
| Attendance periods | 5 |
| Projects | 8 |
| Webhooks | 8 |
Webhooks
Events your handlers can receive
- person.deleted
- person.updated
- person.created
- absence-period.updated.status
- absence-period.created
- attendance-period.created
- ping
Deliveries are signed with the hmac scheme, so your verification code runs unchanged.
Coverage
75 operations
38 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 36 |
| Persons | 11 |
| Projects | 8 |
| Webhooks | 8 |
| Absence periods | 7 |
| Attendance periods | 5 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
Source and limits
License, source and limits
- Generated from the Personio SE & Co. KG API description, licensed under none declared.
- Personio SE & Co. KG API documentation
- Source specification
- Source specification
- Source specification
- Source specification
- Source specification
- Source specification
- Source specification
- Source specification
- Source specification
- Source specification
- Source specification
- Source specification
- Source specification
- Source specification
- Source specification
- Source specification
- Source specification
- Source specification
Each collection (persons, absence periods and their day index, attendance periods, projects and members, webhooks) holds up to 1 MiB per API key; writes beyond that are dropped (x-maxoperf-vs-state: capacity). POST /v2/auth/token returns the deterministic token personio_token_<client_id> for any client_secret; because that token is the Authorization header, each client_id is its own isolated tenant, and any other bearer value is its own tenant too. Persons are stateful: create (duplicate email 409), get, patch (204), delete (204), cursor pages (limit default 10, _meta.links.next.href) and filters email, first_name, last_name, preferred_name, status and created_at/updated_at gt/lt at day granularity; employments and org units are seeded reads. Absence periods are stateful; overlap detection (409) is a per-day index written at create and cleared at delete for the first 14 days of a period, so it detects a new period whose start or end day falls inside an existing one and does not re-index on PATCH of dates. PATCH of an absence period returns it to PENDING and fires absence-period.updated.status. Attendance periods, projects and project members (array body, delete by person_id) are stateful. Webhooks: the signing secret value is returned once on create and on secret rotation; rotation replaces the active secret and reports the previous one as retiring (the retiring secret is not used for signing, so one signature is sent); the status filter and enabled_events filter work on the list; auth_type TOKEN sends the stored token as the Authorization header, CUSTOM headers are stored but not sent; deliveries person.created, person.updated, person.deleted, absence-period.created, absence-period.updated.status, attendance-period.created, ping and test-event are signed (X-Personio-Webhook-Signature: hex HMAC-SHA256 over <ISO timestamp>.<raw body>, X-Personio-Webhook-Timestamp, X-Personio-Webhook-Signature-Key-Ids with the active secret id); ping and test-event report is_delivered true without waiting for the receiver. A webhook URL is only rejected when it has a non-http(s) scheme. Recruiting, documents, reports, compensations, cost centers, workplaces, jobs, salary bands and holidays are schema-valid stateless samples. Errors are application/problem+json. Rate limits (429) are not modelled.
MaxoPerf is not affiliated with, endorsed by, or sponsored by Personio SE & Co. KG. Personio is a trademark of its owner.