HR & payroll
Deel mock API
Deel API: contracts and tasks, people, invoices and payments, timesheets, time off and webhooks with signed delivery.
At a glance
- Operations
- 609
- Stateful operations
- 28
- Stateful resources
- 6
- Webhook events
- 2
- Vendor API version
- REST 2026-01-01 (stable; spec info.version 1.0.0)
- Verification
- Spec-verified
How it works
Use Deel without calling Deel, Inc.
- 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 deel_YourApiToken State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Contracts and tasks | 7 |
| People | 3 |
| Invoices and payments | 3 |
| Timesheets | 5 |
| Time off | 4 |
| Webhooks | 6 |
Webhooks
Events your handlers can receive
- contract.status.updated
- contract.created
Deliveries are signed with the hmac scheme, so your verification code runs unchanged.
Coverage
609 operations
28 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 581 |
| Contracts and tasks | 7 |
| Webhooks | 6 |
| Timesheets | 5 |
| Time off | 4 |
| Invoices and payments | 3 |
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.
9 operations cannot be checked against the specification.
Source and limits
License, source and limits
- Generated from the Deel, Inc. API description, licensed under No licence published (developer.deel.com OpenAPI files carry no redistribution licence); schemas are fetched at test time, never committed.
- Deel, Inc. API documentation
- Source specification
Each collection (contracts, contract tasks, people, invoices, payments, timesheets, time off, webhooks) holds up to 1 MiB of objects per API token; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Everything is served under the /rest base path. Stateful: contracts (create with the {data} envelope — missing data.title or data.worker answers 400 — plus list with after_cursor, limit, statuses, types, external_id, search and order_direction, get, patch of external_id) and contract tasks (create, list, delete); people (create a direct employee, list with search, hiring_statuses, offset and limit, get); invoices and payments are seeded read-only (invoice status filter and offset paging; the date filters, cursor and include parameters are accepted but ignored); timesheets (create, list with contract_id, statuses, offset and limit, get, patch of quantity and description, delete); time off (create, list with status, start_date, page_size and a next cursor, patch, delete; page_size is accepted below the vendor minimum of 5); webhooks (create, list with status, search, limit and cursor, get, patch, delete, and the seeded event types contract.created, contract.status.updated and contract.terminated). Contract status moves through PATCH data.status (in_progress, completed or cancelled; completed and cancelled are terminal; a contract cannot complete before it is signed) — an extension, because the vendor patch only takes external_id and the real lifecycle runs through the signature and termination endpoints, which answer schema-valid samples. Webhook create reads its fields at the top level (as the spec declares) or inside {data}; a signing_key shorter than 32 characters answers 400 and an omitted one is generated (40 characters). Deliveries: contract.created (POST /contracts) and contract.status.updated (a PATCH that carries data.status) are signed with the webhook's signing_key as x-deel-signature = hex(HMAC-SHA256(signing_key, "POST" + raw body)), plus x-deel-hmac-label and x-deel-webhook-version; the seeded webhook is disabled and contract.terminated and every other Deel event are listed but never emitted. Array query parameters (statuses, types) accept a single value. Only 401 carries a failure container with the request object; 403 and rate limits are not produced. The seeded timesheet and the seeded webhook share one id so a single conformance path parameter id fits both. Every other operation answers a schema-valid sample.
MaxoPerf is not affiliated with, endorsed by, or sponsored by Deel, Inc. Deel is a trademark of its owner.