---
title: "Get employee details from Personio API"
url: "https://lb.getknit.dev/blog/get-employee-details-from-personio-api-rhovmw/"
date: "2026-08-13T12:59:59+00:00"
modified: "2026-08-22T15:43:54+00:00"
type: "post"
---

# Get employee details from Personio API

[Blog](https://lb.getknit.dev/blog) / [Tutorials](https://lb.getknit.dev/blogs/tutorials/) / Get employee details from Personio API [Tutorials](https://lb.getknit.dev/blogs/tutorials/) · August 13, 2026 

Get employee details from Personio API
======================================

 ![](https://storage.googleapis.com/knit-website-media/2026/08/64c34c8eb1ffc79e7f787ecd_Akshat-3-150x150.png)Akshat Jain

2 min read

 

 

 [](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Flb.getknit.dev%2Fblog%2Fget-employee-details-from-personio-api-rhovmw%2F) [](https://twitter.com/intent/tweet?url=https%3A%2F%2Flb.getknit.dev%2Fblog%2Fget-employee-details-from-personio-api-rhovmw%2F&text=Get%20employee%20details%20from%20Personio%20API)  

 

 

 

  Table of Contents - [Introduction](#introduction)
- [Get Employee Details from Personio API](#get-employee-details-from-personio-api)
- [Overview](#overview)
- [Step-by-Step Guide](#step-by-step-guide)
- [Knit for Personio API Integration](#knit-for-personio-api-integration)
 
  Introduction
------------

This article is a part of a series of articles covering the Personio API in depth, and covers the specific use case of using the Personio API to Get employee details from Peronio API.
You can find all the other use cases we have covered for the Personio API along with a comprehensive deep dive on its various aspects like authentication, rate limits etc [here.](/blog/personio-api-directory-lw5f1o/)

Get Employee Details from Personio API
--------------------------------------

### Overview

To retrieve employee details such as first name, last name, and date of joining from the Personio API, you can utilize the `listEmployees` endpoint. Below is a step-by-step guide with Python code snippets to achieve this.

### Step-by-Step Guide

#### 1. Set Up Your Environment

Ensure you have the necessary libraries installed:

```
pip install requests
```

#### 2. Define API Credentials

Set your API credentials for authentication:

```
api_url = "https://api.personio.de/v1/company/employees"
headers = {
    "X-Personio-Partner-ID": "your_partner_id",
    "X-Personio-App-ID": "your_app_id",
    "accept": "application/json"
}
```

#### 3. Make the API Request

Send a GET request to the `listEmployees` endpoint to fetch the required details:

```
import requests

params = {
    "attributes[]": ["first_name", "last_name", "hire_date"]
}

response = requests.get(api_url, headers=headers, params=params)

if response.status_code == 200:
    employees = response.json().get("data", [])
    for employee in employees:
        first_name = employee["attributes"].get("first_name")
        last_name = employee["attributes"].get("last_name")
        hire_date = employee["attributes"].get("hire_date")
        print(f"First Name: {first_name}, Last Name: {last_name}, Date of Joining: {hire_date}")
else:
    print(f"Failed to retrieve data: {response.status_code}")
```

#### 4. Handle the Response

Process the response to extract and display the employee details:

```
if response.status_code == 200:
    employees = response.json().get("data", [])
    for employee in employees:
        first_name = employee["attributes"].get("first_name")
        last_name = employee["attributes"].get("last_name")
        hire_date = employee["attributes"].get("hire_date")
        print(f"First Name: {first_name}, Last Name: {last_name}, Date of Joining: {hire_date}")
else:
    print(f"Failed to retrieve data: {response.status_code}")
```

Knit for Personio API Integration
---------------------------------

For quick and seamless access to [Personio](/integration/personio/) API, Knit API offers a convenient solution. By integrating with Knit just once, you can streamline the entire process. Knit takes care of all the authentication, authorization, and ongoing integration maintenance, this approach not only saves time but also ensures a smooth and reliable connection to your [Personio](/integration/personio/) API.

---

**Ready to build this integration?**
Explore Knit’s [Personio integration](/integration/personio/) or read more about our [Unified HRIS API](/integration-categories/unified-hris-api/).

 

 ![](https://storage.googleapis.com/knit-website-media/2026/08/64c34c8eb1ffc79e7f787ecd_Akshat-3-150x150.png)Written by Akshat Jain

Coding chaos into innovation and building from zero to scale

 

 

 

 

 

   Keep Reading
------------

  ![](https://storage.googleapis.com/knit-website-media/2026/08/blog-banner-green-640x400.png) [API Directory](https://lb.getknit.dev/blogs/api-directory/) 

### [Personio API Directory](https://lb.getknit.dev/blog/personio-api-directory-lw5f1o/)

Learn about the common Personio API data models and API end points in this comprehensive Personio API directory

 August 13, 2026 · 15 min read 

 

   ![](https://storage.googleapis.com/knit-website-media/2026/08/blog-banner-green-640x400.png) [Tutorials](https://lb.getknit.dev/blogs/tutorials/) 

### [How to Create a Slack Bot in 5 Minutes: A to Z Guide](https://lb.getknit.dev/blog/how-to-create-a-slack-bot/)

You can create your own Slack Bot in just a few minutes with the Knit Unified API. Read this step-by-step…

 August 13, 2026 · 3 min read 

 

   ![](https://storage.googleapis.com/knit-website-media/2026/08/blog-banner-green-640x400.png) [Tutorials](https://lb.getknit.dev/blogs/tutorials/) 

### [How to Build and Deploy a Microsoft Teams Bot](https://lb.getknit.dev/blog/how-to-build-and-deploy-a-microsoft-teams-bot/)

You can either build Microsoft Teams Bot on your own or you can use Knit's Unified API to create it…

 August 13, 2026 · 4 min read 

 

  

 

  \#1 in Ease of Integrations
---------------------------

![4.9 out of 5 stars](/wp-content/themes/knit/assets/images/g2/g2-star-rating.svg)

4.9 out of 5 stars on G2

![G2 Leader, Spring 2026](/wp-content/themes/knit/assets/images/g2/g2-leader.svg)![G2 Fastest Implementation, Spring 2026](/wp-content/themes/knit/assets/images/g2/g2-fastest-implementation.svg)![G2 High Performer, Spring 2026](/wp-content/themes/knit/assets/images/g2/g2-high-performer.svg)![G2 Best Est. ROI, Spring 2026](/wp-content/themes/knit/assets/images/g2/g2-best-roi.svg)

 

  Put Integrations on Autopilot. Talk to Experts.
-----------------------------------------------

Knit is loved by customers across the globe due to our seamless product and white glove support. You'll love us too!

 [Talk to a Human](/book-demo)
