Get an employee

One employee profile with the fields your role may read.

GET https://cotlet.dev/api/v1/personio/employees/{employee_id}

read

Returns the Personal Info fields of one profile that your role may read, such as name, work email, team, position, supervisor and employment dates. Fields hidden from your role, for example salary without the right permission, are left out, not blanked. The result is the same data the profile page shows you.

Parameters

Parameters: get_employee
NameTypeDescription
employee_id string required string Employee ID from list_employees.

Request

cURL
curl https://cotlet.dev/api/v1/personio/employees/employee_8c41d2 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("personio", "get_employee", {"employee_id":"employee_8c41d2"})
Node.js
const result = await cotlet.call('personio', 'get_employee', {"employee_id":"employee_8c41d2"});
CLI
cotlet call personio get_employee --data '{"employee_id":"employee_8c41d2"}'

Example response

JSON

{
  "employee_id": "emp_2041",
  "name": "Maja Kowalska",
  "email": "maja.kowalska@example.com",
  "team": "Marketing",
  "position": "Content Lead",
  "supervisor": "Tom Becker",
  "employment_start": "2024-03-01",
  "weekly_hours": 40
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.