API - Get documents from Employees

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

 

To do this, you need the following:

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

 

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. 

 

 

 

 

Comments

0 comments
Please sign in to leave a comment.