In this article, you can read step by step how to get documents from an onboarding profile, using Emply's API.
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 form ID. You will find this in the Forms endpoint
The API call will return all the forms registered on your platform, with their unique ID's. Find the ID you need and copy it.
2. Next you will have to find the ID of the onboarding profile. This can be found in the Employee endpoint
3. When you have both the form ID and the ID of the onboarding profile, you can get the form content on the FormData endpoint
Now you have the data you need to recreate the file by converting the base64 string content to a file.