Human resources · create_employee
Create employee
Register a new employee.
- Price
- included
- Requirements
- No connector
- runs on platform keys
- Human approval
- No
- read or internal write
Input
| Field | Type | Description |
|---|---|---|
| employees | array | Batch mode: the FULL list of employees to create in one call (preferred whenever there is more than one). When provided, the top-level single-employee fields are ignored. |
| firstName | string | First name |
| lastName | string | Last name |
| string | Professional email — the idempotency key (same email = same employee, no duplicate) | |
| jobTitle | string | Job title / position |
| department | string | Department / team |
| startDate | string | Start date (YYYY-MM-DD) |
| endDate | string | Contract end date for CDD/stage/interim (YYYY-MM-DD) |
| managerId | string | employeeId of the line manager (from list_employees) |
| managerEmail | string | Alternative to managerId: the manager's email, resolved against the directory |
| contractType | cdi | cdd | stage | alternance | freelance | interim | Contract type |
| status | active | onboarding | leaving | left | on_leave | Initial status (default: onboarding when startDate is in the future or missing, active otherwise) |
Call this tool
Through the HTTP API, or from the MCP server with the run meta-tool.
curl https://api.ezyagents.fr/gateway/v1/run \
-H "Authorization: Bearer ezk_…" -H "Content-Type: application/json" \
-d '{"tool":"create_employee","input":{"employees":[],"firstName":"…","lastName":"…","email":"…"}}'$
run({ "tool": "create_employee", "input": {"employees":[],"firstName":"…","lastName":"…","email":"…"} })