The Plecto API is a way for other software to communicate with Plecto. In a nutshell, the API allows Plecto to be integrated directly in other systems.
The Plecto API can be used for posting new data to Plecto. In other words, this means that other systems can export their data to Plecto.
To manually use the Plecto API, a free piece of software like Postman is useful, but any software capable of sending HTTP requests is supported.
The Plecto API has the base URL of: https://app.plecto.com/api/v2/
If you’re logged in with your account, you can browse the API directly in the browser. This URL is the basis for all endpoints to the Plecto API.
It is possible to send any data to Plecto, and we recommend you post data to an API data source.
To send data to the Plecto API, a POST method has to be used. A POST request allows you to send additional information in the request body (consider it a multi-row text field). This request body contains all the relevant data to create (or update) a registration.
The request body has a few mandatory fields which all have to be included in every request:
Example of the data source detail page and where to find the unique UUID of a data source.
On an API data source you can see example API integration code for Python, Ruby, PHP and C#.
Here is a Pyton example:
The request to create a registration for the data source has to use the URL for the registrations endpoint: https://app.plecto.com/api/v2/registrations/
The mandatory fields have to be included in the post body as well as an entry for 'value'.
Assume the data source has a UUID of 0703ac00280e41f8b8ecef57a36e85be, the member has a UUID of 3b7aaf488d774de6804c7a2af1498509 and the external ID is 1337. Then the code for a registration with a 'value' of 100 would become (Python example):
If the authentication passes and the request is correct, Plecto will accept the registration and return a success response (where 'id' is the UUID of the newly created (or updated) registration).
This is what the registration will look like in the registration list of the data source.
The date format has to be of the standard ISO 8601 with both date and time. The format has to look like: 2018-12-31T22:33:44+00:00
Where the last part after + is an optional time zone. If not set, the timezone is assumed to be UTC.
The Plecto API supports sending a list of registrations in a single request body. In effect the request body will look like:
The Plecto API enforces limits for how many registrations can be in a single request.
Important: 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>”