How to Send Data to Plecto's API
A guide on how to set up a custom integration and send data to Plecto's API.
Last updated: Jan. 4, 2023
What is Plecto API?
The Plecto API allows developers to create a custom advanced integration that enables other software to communicate with Plecto and export their data to Plecto. If you want to test the Plecto API manually, you can use a free piece of software like Postman, but any other software capable of sending HTTP requests is also supported.
Authentication
The authentication scheme used for the Plecto API is Basic Authentication. This authentication scheme includes sending your username (email) and password along with the request.
We recommend you to create a new user (new employee profile) per integration in your Plecto organization – this way, you'll avoid sharing the same password across integrations.
- Go to Organization > Employees > + New employee.
The user must have access to the relevant areas of Plecto to succeed with most API endpoints. If you have access to advanced permission management, you can create a specific permission profile for the user account. We always recommend to create a user with the minimum required level of access for the purpose of your integration.
Learn more about permissions
Read about permissions in Plecto and learn how to create custom permission profiles (available for Large and Enterprise plans).
Endpoints
Plecto API has the following base URL: https://app.plecto.com/api/v2/
This URL is the basis for all endpoints of the Plecto API. If you are logged into your Plecto account, you can see the list of API endpoints directly in the browser.
How to create a Plecto API data source
Go to Data management > Data sources > + New data source > Plecto API. From there, you can customize your data source settings, add fields (optional), and see example API integration code in Python, Ruby, PHP, and C#.

An example of an API data source settings.
How to send data to Plecto
To send data to the Plecto API, you need to choose an endpoint and use the POST method. A POST request allows you to send information in the request body. The request body contains all the relevant data that allow to create or update a registration.
Request body and the mandatory keys
There are 3 mandatory keys that must be included in the request body for every request that you send. The keys are the following:
- data_source,
- member (or member_api_provider, member_api_id, and member_name), and
- external_id.
Here below we've listed, in detail, what each of the keys consists of.
Mandatory key #1 – Indicate the data source
The data_source
key requires your data source's UUID. The UUID is an alphanumerical string that you can find in the URL when you open a data source.

An example of where to locate the UUID of a data source. The highlighted string in the URL is the UUID of the data source.
Mandatory key #2 – Provide information about the member (the one sending data)
Each piece of data you send to Plecto needs to be linked to a user. So the member key here refers to the user (an employee profile in Plecto). When sending an API request, choose one of the two options:
- 🔸 Use a combination of member_api_provider, member_api_id, and member_name (will create a new employee profile)
– or –
- 🔹 Use a member UUID (requires an existing employee profile in Plecto)
🔶🔶🔶
The more common way is to use the member_api_provider
, member_api_id
, and member_name
keys. With this option, Plecto will create a new employee profile when you send the data, and the employee will continue to be managed by your system.
- member_api_provider refers to the name of your system. In the image below, the displayed system name is Postman.
- member_api_id refers to the member ID of your system. In Plecto, it is displayed under the External ID field. In the image below,
101032
represents themember_api_id
. The member_api_provider and member_api_id together identify an employee in Plecto. - member_name is the name of the member. This name will be displayed in the Employee field in your Plecto data source and can be updated, provided that you use the same member_api_provider and member_api_id values.

An example of an employee page. At the bottom of the page, you can see the external accounts the employee is connected to.
The request body would look like the following (JSON). The values in the request body are relative to our example data source "API Data Source." If you copy the body, make sure to use the values relevant to your organization.
{
"data_source": "70a0d1kg780a4cd98f541c214601030e",
"member_api_provider": "Postman",
"member_api_id": "101032",
"member_name": "Employee X",
"external_id": "0p23oi5"
}
Naming conventions – don't get confused!
The member_api_id
key in your request body represents the External ID shown in the employee profile in Plecto, and the external_id
key represents the Registration ID in a Plecto data source.
If you want to assign multiple registrations to the same user, you can use the same member_api_id
. However, the external_id
key needs to be different for each registration, unless you want to overwrite an existing registration with new data.
🔷🔷🔷
Using member UUID
requires to have an existing employee profile in Plecto. To find the member UUID, go to Organization > Employees and click on a name. You'll see the UUID in the URL.
The request body would look like the following (JSON). The data source and member UUIDs, as well as the external ID value, are relative to our example data source "API Data Source." If you copy the body, make sure to use the values relevant to your organization.
{
"data_source": "70a0d1kg780a4cd98f541c214601030e",
"member": "d40b0139bc7a48e09128521ac5ed089d",
"external_id": "0p23oi5"
}
Mandatory key #3 – External ID
The external_id
is a number or a string of characters that has to be unique for each registration. It could be something like 123, abc or anything you can think of. This is important as it will be the reference of the created registration. The external ID values in your request body are displayed in the "ID" field in your Plecto data source (see the image below).

An example of a data source in Plecto.
Can I use the same external ID?
If you send a request with the same external ID as you have already used, it will overwrite an existing registration in Plecto and display the new updated information.
How to update registrations, names, or dates
- The
data_source
andexternal_id
identify a registration in a data source in Plecto. The external_id represents the registration ID in Plecto. If you want to update the registration values, send a request using the same data_source and external_id keys but change the field values. - The
member_api_provider
andmember_api_id
identify an employee in Plecto. If you want to update the employee name, you can send the same request but change the member_name value from, for example, "Employee X" to "Curtis Miller." - You can send a
date
field to Plecto (optional). It will show in the Created date field in your data source. Whenever you send a registration, Plecto automatically adds the current date and time to it. If you want to update a registration but keep the original date and time, add the following key to your request body:"date": "2022-12-31T10:22:55"
{
"data_source": "70a0d1kg780a4cd98f541c214601030e",
"member": "d40b0139bc7a48e09128521ac5ed089d",
"external_id": "0p23oi5",
"date": "2022-12-31T10:22:55"
}
Basic example
In this example, we will create a registration in a data source in Plecto through Postman.
- The request to create a registration in a data source has to use the URL for the registrations endpoint, which is the following: https://app.plecto.com/api/v2/registrations/
- The POST request body must include the mandatory keys plus a key called "Value," since the data source in Plecto has a custom field added to it called Value.

An example of a data source that has no registrations.
The request body would look like the following (JSON):
{
"data_source": "70a0d1ef780a4cd98f541c214601030e",
"member_api_provider": "Postman",
"member_api_id": "101032",
"member_name": "Employee X",
"external_id": "12345",
"Value": "100"
}
If the authentication passes and the request is correct, Plecto will accept the registration and return a successful response. In the response, the "id" is the UUID of the newly-created or updated registration in Plecto.
Take a look at the requesting process below:
Bulk insertion
The Plecto API supports sending a list of registrations in a single request body. However, the API also enforces limits for how many registrations you can send in a single request. Go to this article to learn more about API limits.
Here's an example of what a request body could look like:
[
{
"data_source": "70a0d1kg780a4cd98f541c214601030e",
"member_api_provider": "Postman",
"member_api_id": "101032",
"member_name": "Employee X",
"external_id": "0p23oi5",
"Value": "100"
},
{
"data_source": "70a0d1kg780a4cd98f541c214601030e",
"member_api_provider": "Postman",
"member_api_id": "101032",
"member_name": "Employee X",
"external_id": "3ae89oq",
"Value": "150"
}
]
Note on external IDs
You cannot send multiple registrations with the same external_id in the same bulk requisition. If that happens, you will get the following error:
{
"message": "Duplicated registrations found",
"id": "<your id>"
}
Was this article helpful?
Please leave a comment to help us improve.