Search

API v1 - Get documents from Employees

In this article, you can read step by step how to get documents on an employee from the employee folder, using Emply's API.

 

Skærmbillede 2023-08-10 kl. 10.42.27.png

 

Preparation

In order to use Emply's public API, you need to do the following:

  • Generate API key from the Emply platform (Menu > Settings > Integrations > API > New API key)
  • Log on to api.emply.com

 

Using Emply's API

1. First, you will have to find the employee UID. You will find this in the Employee endpoint

Sk_rmbillede_2022-07-26_kl._09.56.59.png

The API call will return all the employees registered on your platform with their unique ID's. Find the ID you need and copy it. You can use the other parameters to only find the one employee you're looking for. 

 

2. Next you will have to find the document ID still from the Employee endpoint

Sk_rmbillede_2022-07-26_kl._10.00.40.png

 

3. When you have both the document ID and the employee ID you can get the document content

Sk_rmbillede_2022-07-26_kl._10.28.00.png

 

Now you have the data you need to recreate the file by converting the base64 string content to a file. 

Was this article helpful?

Was this article helpful?

Want to get in touch?

We got you. Fill out a request and we'll get back to you as soon as possible.

Submit a request