Overview
PEPData's API can be used to carry out searches and operations related with validations, beneficial owners and users of the platform.
This documentation is technical and programmer-oriented. If you just want to read about the application, you can do so in the corresponding section.
Authentication
Authentication through PEPData's API v0.1 can only be performed via an authentication key.
Each user can view and change their authentication key on their profile page. A key can be changed but the new one will invalidate the old one. There is, therefore, only one active key at any given time, per user.
The active key must be used in the Headers
section of the HTTP request. Exemplifying:
Structure
All communication with the API must be carried out through JSON objects. All the responses are encoded in UTF-8.
In case of success, the API will send the following response structure:
Label
data: object that contains the requested information.
version: current API version.
timestamp: represents when the server response was made, in the form of the number of milliseconds since January 1, 1970 00:00:00 UTC.
Dates
The dates that appear in the properties mentioned hereinafter follow the following formats:
Properties with the suffix "_at" or the timestamp name represent unix millisecond timestamps (milliseconds since January 1, 1970 00:00:00 UTC)
Properties suffixed with "_date" represent calendar dates in ISO 8601 YYYY-MM-DD format.
Pagination
Some endpoints return multiple results, being able to do so in a paginated way. In this case, the formatting of the data parameter object will be as follows:
Label
items: the items corresponding to the requested information.
page: number of the page to which the items belong.
max_results_per_page: maximum number of results per page.
total: the number of existing results.
Errors
PEPData uses conventional HTTP response codes to indicate the success or failure of each API request.
As a general rule:
Codes in the
2xx
range indicate success.Codes in the
4xx
range indicate incorrect or incomplete use of parameters (examples: a mandatory parameter was omitted, the endpoint does not exist, the authentication token is not valid).Codes in the
5xx
range indicate an error on the PEPData servers.
PEPData returns the error message in the following format:
Configuration for Postman
If you want to do a quick test on the PEPData API endpoints, we have created a configuration for Postman that contains some basic examples.
Once the configuration is imported into Postman, you will need to set the API_KEY variable in the Authorization tab.
FAQs
Last updated
Was this helpful?