---
title: "Get Employee Details from Workline API"
url: "https://getknit.dev/blog/get-employee-details-from-workline-api-kpcct4/"
date: "2024-07-23T10:21:52+00:00"
modified: "2024-07-23T10:23:10+00:00"
type: "post"
---

# Get Employee Details from Workline API

[Blog](https://getknit.dev/blog) / [Tutorials](https://getknit.dev/blogs/tutorials/) / Get Employee Details from Workline API [Tutorials](https://getknit.dev/blogs/tutorials/) · July 23, 2024 

Get Employee Details from Workline API
======================================

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

3 min read

 

 

 [](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fgetknit.dev%2Fblog%2Fget-employee-details-from-workline-api-kpcct4%2F) [](https://twitter.com/intent/tweet?url=https%3A%2F%2Fgetknit.dev%2Fblog%2Fget-employee-details-from-workline-api-kpcct4%2F&text=Get%20Employee%20Details%20from%20Workline%20API)  

 

 

 

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

This article is a part of a series of articles covering the Workline API in depth, and covers the specific use case of using the Workline API to Get Employee Details from Workline API.
You can find all the other use cases we have covered for the Workline API along with a comprehensive deep dive on its various aspects like authentication, rate limits etc [here.](https://www.getknit.dev/blog/workline-guide)

Get Employee Details from Workline API
--------------------------------------

### Overview

The Workline API provides various endpoints to retrieve detailed information about employees. To get the first name, last name, and email for all employees, you can utilize multiple APIs provided by Workline. Below is a step-by-step guide using Python to achieve this.

### Step-by-Step Guide

#### 1. Set Up Basic Authentication

All API requests require basic authentication. Ensure you have your `AppID`, `Username`, and `Password` ready.

#### 2. Define API Endpoints

We will use the following API endpoints:

- `https://{domain}.workline.hr/api/GetEmployeesData`
- `https://{domain}.workline.hr/api/GetEmpDetails`

#### 3. Fetch Employee Data

First, we will fetch the basic employee data using the `GetEmployeesData` endpoint.

```python
import requests
from requests.auth import HTTPBasicAuth

domain = 'your_domain'
app_id = 'your_app_id'
username = 'your_username'
password = 'your_password'
start_date = '10-Apr-2019'
end_date = '25-May-2019'

url = f'https://{domain}.workline.hr/api/GetEmployeesData'
headers = {
    'AppID': app_id,
    'StartDate': start_date,
    'EndDate': end_date
}

response = requests.post(url, headers=headers, auth=HTTPBasicAuth(username, password))
employees = response.json()

for employee in employees:
    print(employee['FirstName'], employee['LastName'], employee['Emailid'])
```

#### 4. Fetch Additional Employee Details

For more detailed information, you can use the `GetEmpDetails` endpoint.

```python
for employee in employees:
    email_id = employee['Emailid']
    url = f'https://{domain}.workline.hr/api/GetEmpDetails'
    headers = {
        'AppID': app_id,
        'EmailID': email_id
    }
    
    response = requests.post(url, headers=headers, auth=HTTPBasicAuth(username, password))
    emp_details = response.json()
    
    for detail in emp_details:
        print(detail['FirstName'], detail['LastName'], detail['Emailid'])
```

#### 5. Combine Data

To combine data from both endpoints, you can store the results in a list or a dictionary.

```python
combined_data = []

for employee in employees:
    email_id = employee['Emailid']
    url = f'https://{domain}.workline.hr/api/GetEmpDetails'
    headers = {
        'AppID': app_id,
        'EmailID': email_id
    }
    
    response = requests.post(url, headers=headers, auth=HTTPBasicAuth(username, password))
    emp_details = response.json()
    
    for detail in emp_details:
        combined_data.append({
            'FirstName': detail['FirstName'],
            'LastName': detail['LastName'],
            'Emailid': detail['Emailid']
        })

print(combined_data)
```

### Conclusion

By following the above steps, you can efficiently retrieve the first name, last name, and email of all employees using the Workline API.

Knit for Workline API Integration
---------------------------------

For quick and seamless access to [Workline](/integration/workline/) 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 [Workline](/integration/workline/) API.

Building a Workline integration?

Knit gives you one way to build it. Pick the one that fits.

- [Workline on Unified API](https://getknit.dev/integration/workline/)
    
    Your customers want Workline and the other HRIS tools they use. Build one integration and get normalised read and write data with real-time webhooks.
    
    [Try free](https://dashboard.getknit.dev/signup)

Knit's Unified API connects to 190+ apps across HRIS, ATS, CRM, accounting and more.

Knit never stores your end users' data and is SOC 2, GDPR and ISO 27001 compliant: [How Knit handles security](/security/) · [Security Center](https://compliance.getknit.dev/)

Not sure which fits? [Talk to a human](/book-demo/)

 

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

Coding chaos into innovation and building from zero to scale

 

 

 

 

 

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

  ![How to Build a Reliable GoHighLevel API Integration](https://storage.googleapis.com/knit-website-media/2026/08/blog-banner-green-640x400.png) [Tutorials](https://getknit.dev/blogs/tutorials/) 

### [How to Build a Reliable GoHighLevel API Integration](https://getknit.dev/blog/how-to-build-a-reliable-gohighlevel-api-integration/)

A GoHighLevel API integration connects B2B applications directly to this CRM platform. This connection allows developers to sync contacts, trigger…

 November 13, 2026 · 7 min read 

 

   ![How to Read and Write Data with the Google Sheets API](https://storage.googleapis.com/knit-website-media/2026/08/blog-banner-yellow-scaled-640x400.png) [Tutorials](https://getknit.dev/blogs/tutorials/) 

### [How to Read and Write Data with the Google Sheets API](https://getknit.dev/blog/how-to-read-and-write-data-google-sheets-api/)

The Google Sheets API is a RESTful interface that lets you read and modify a spreadsheet’s data. Engineers build integrations…

 November 3, 2026 · 6 min read 

 

   ![How to Build a Google Calendar API Integration for B2B SaaS](https://storage.googleapis.com/knit-website-media/2026/08/blog-banner-red-scaled-640x400.png) [Tutorials](https://getknit.dev/blogs/tutorials/) 

### [How to Build a Google Calendar API Integration for B2B SaaS](https://getknit.dev/blog/how-to-build-a-google-calendar-api-integration/)

B2B SaaS engineers build a Google calendar integration to power scheduling tools, synchronize events, and automate meeting workflows for their…

 October 29, 2026 · 7 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)
