EasyLPDAPI documentationopenapi.json

EasyLPD API

Connect your own systems to EasyLPD, the data protection platform for Swiss and European organizations. An HR system or ERP (for example Odoo) can start what a hiring calls for: the person in the staff list, the authorization of the collaborator, the acknowledgment of the privacy notice. A form or ticketing tool can record data subject requests and breaches. And everything in the organization's records can be read: processing activities, vendors, documents, the action plan.

REST over HTTPS, JSON in and out, described in OpenAPI 3.1 for tools that generate clients. Version 1.0.

Getting started

  1. The API is part of the Business plan. Each key belongs to one organization and sees only its data.
  2. An owner or admin of the organization makes a key in EasyLPD under Settings, Integrations (/app/integrations): a name, whether it may only read or may also record, and when it expires.
  3. The key is shown once. Keep it as a secret on your server.
  4. Call the API with it:
curl https://easylpd.ch/api/v1/organization \
  -H "Authorization: Bearer elpd_…"

Authentication

  • Every call sends the key in the header Authorization: Bearer elpd_…. Keys start with elpd_ followed by 40 characters.
  • A key is either read-only or allowed to record (requests, breaches, staff, authorizations, people to sign). A read-only key that tries to write gets 403 read_only.
  • A key expires after 30, 90 or 365 days, or never, as chosen when it was made, and can be revoked at any time. An organization holds at most 10 active keys.
  • We keep only a hash of the key: a lost key cannot be shown again. Make a new one and revoke the old.
  • Never put a key in a browser, a mobile app or a repository. Answers hold personal data of the organization.

Conventions

  • Base address: https://easylpd.ch/api/v1. Bodies are JSON (Content-Type: application/json), at most 64 KB.
  • One record answers { "data": { … } }. A list answers { "data": [ … ], "total": 42, "limit": 100, "offset": 0 }: page with limit (1 to 500, default 100) and offset.
  • Moments are ISO 8601 in UTC (2026-12-02T09:30:00.000Z), days are YYYY-MM-DD. Ids are UUIDs.
  • ?lang=it|de|fr|en chooses the language of titles in the answer; the default is the organization's.
  • Every write is recorded in the organization's change log with the name of the key; reads are logged once an hour per key.
  • A record made through the API is the same as one made on the pages: members of the organization see it, change it and carry it on in EasyLPD.

Errors and limits

An error answers with its HTTP status and a body that says what went wrong:

{ "error": { "code": "invalid", "message": "email: Invalid email address" } }
StatuscodeMeaning
400invalidThe body is not valid JSON or a field is wrong; the message names each field.
401unauthorizedNo key, or a key that is not valid, revoked or expired.
403planThe organization is not on Business (or is being deleted).
403read_onlyThe key may only read.
404not_foundNo such record in this organization.
409closed / fullThe collection of consents is closed (a newer version has its own) or has reached its limit of people.
429rate_limitedMore than 120 calls in a minute with this key. Wait the seconds in Retry-After.

Sending a record twice

Requests, staff, authorizations and people added to a collection take an externalId: the id the record has in your system (1 to 100 characters, unique in the organization; for people, in the collection). A second POST with an id already known records nothing and answers 200 with the record made the first time; a new record answers 201. So a call that timed out can simply be sent again.

Staff and people to sign are also found again by e-mail address. Breaches have no externalId: check GET /breaches before sending one again.

Guide: an HR system or ERP

What happens in EasyLPD when someone joins or leaves, started from the system where the hiring is recorded. The examples use the employee's id in the HR system as externalId.

1. Once: read what you will refer to

The processing activities a collaborator may work on, and the open collection where staff acknowledge the privacy notice (kind: "ack", open: true). A collection is opened in EasyLPD by a member, from the final version of the notice; a newer version opens a new collection.

curl https://easylpd.ch/api/v1/activities -H "Authorization: Bearer elpd_…"
curl https://easylpd.ch/api/v1/consents   -H "Authorization: Bearer elpd_…"

2. A person is hired

Start the authorization of the collaborator. EasyLPD writes its document as a draft from the organization's template, puts the person in the staff list and tells the owners and admins, who make it final and have it signed (in EasyLPD, or by e-mail through a simple electronic signature).

curl -X POST https://easylpd.ch/api/v1/appointments \
  -H "Authorization: Bearer elpd_…" \
  -H "Content-Type: application/json" \
  -d '{
    "kind": "authorized",
    "name": "Marco Rossi",
    "email": "marco.rossi@example.com",
    "department": "Sales",
    "activityIds": [
      "5b7c1e2a-9d4f-4c1b-8a51-0f3e2d6c7b90"
    ],
    "startsOn": "2027-01-04",
    "language": "it",
    "externalId": "hr.employee:381"
  }'

The answer carries the appointment's id and its state: draft, then unsigned, signing and active once signed.

3. The person acknowledges the privacy notice

Add them to the open collection: EasyLPD e-mails them their own link; they confirm with a code sent to the same address. Send invite: false to add them without the e-mail.

curl -X POST https://easylpd.ch/api/v1/consents/3f1c9a52-7e4b-4d2a-9c61-8b0e5f2a7d14/people \
  -H "Authorization: Bearer elpd_…" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Marco Rossi",
    "email": "marco.rossi@example.com",
    "invite": true,
    "externalId": "hr.employee:381"
  }'

4. Follow where things stand

EasyLPD does not call your system: read the states when you need them, for example every hour or once a night, within 120 calls a minute.

curl https://easylpd.ch/api/v1/appointments/{id} -H "Authorization: Bearer elpd_…"          # state: active
curl https://easylpd.ch/api/v1/consents/{id}/people -H "Authorization: Bearer elpd_…"     # state: signed

5. The person leaves

End the authorization with a day and a reason. It stays in the register as ended, as the record of who had access and until when.

curl -X POST https://easylpd.ch/api/v1/appointments/3f1c9a52-7e4b-4d2a-9c61-8b0e5f2a7d14/revoke \
  -H "Authorization: Bearer elpd_…" \
  -H "Content-Type: application/json" \
  -d '{
    "on": "2027-06-30",
    "reason": "Left the company"
  }'

Also: requests and breaches

A request from a data subject that arrived in your ticketing tool goes to POST /requests: the 30-day term starts at receivedAt. An incident from monitoring goes to POST /breaches, and the owners and admins are told at once.

Testing

  • Build against a test organization, never the one with real data. Sign up at easylpd.ch with your own work address and ask us to put the test organization on Business; then make its key in Settings, Integrations.
  • There is no separate sandbox: the API is the same one your production integration will use.
  • E-mails are real: links to sign and acknowledge go to the addresses you send. Use addresses you control, or invite: false.
  • Records cannot be told apart from real ones, and appointments are ended rather than deleted: keep test data in the test organization.

Changes

  • 10 November 2026: staff list, authorizations of collaborators and their end, people added to collections of consents; externalId on requests, staff, authorizations and people.
  • 22 October 2026: version 1.0: reading the records, the action plan and documents; recording requests and breaches.

Fields may be added to answers; existing fields and their meaning do not change within version 1.

Endpoints

Organization and plan

get/organization

The organization, its laws, the latest assessment scores and the progress of the action plan.

curl https://easylpd.ch/api/v1/organization \
  -H "Authorization: Bearer elpd_…"

Answer: { data: { … } } with one Organization.

  • 200OK
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 429Too many calls: see Retry-After

get/actions

The action plan: one row per control, with stage, importance, status and the articles.

curl https://easylpd.ch/api/v1/actions \
  -H "Authorization: Bearer elpd_…"

Answer: { data: [ … ], total, limit, offset }, a list of Action.

  • 200OK
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 429Too many calls: see Retry-After

Records

get/activities

The record of processing activities.

curl https://easylpd.ch/api/v1/activities \
  -H "Authorization: Bearer elpd_…"

Answer: { data: [ … ], total, limit, offset }, a list of Activity.

  • 200OK
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 429Too many calls: see Retry-After

get/vendors

Vendors and processors, with the state of their agreement.

curl https://easylpd.ch/api/v1/vendors \
  -H "Authorization: Bearer elpd_…"

Answer: { data: [ … ], total, limit, offset }, a list of Vendor.

  • 200OK
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 429Too many calls: see Retry-After

get/documents

Documents, generated and uploaded, with version and status.

curl https://easylpd.ch/api/v1/documents \
  -H "Authorization: Bearer elpd_…"

Answer: { data: [ … ], total, limit, offset }, a list of Document.

  • 200OK
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 429Too many calls: see Retry-After

get/documents/{id}/pdf

The PDF kept when the current version became final (a redirect valid for one minute).

curl https://easylpd.ch/api/v1/documents/3f1c9a52-7e4b-4d2a-9c61-8b0e5f2a7d14/pdf \
  -H "Authorization: Bearer elpd_…"
  • 302Redirect to the PDF
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 404Not found, or not of this organization
  • 429Too many calls: see Retry-After

Staff and authorizations

get/staff

The staff list: the people to train and authorize.

curl https://easylpd.ch/api/v1/staff \
  -H "Authorization: Bearer elpd_…"

Answer: { data: [ … ], total, limit, offset }, a list of StaffMember.

  • 200OK
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 429Too many calls: see Retry-After

post/staffkey that can record

Add a person to the staff list (a hiring in your HR system). A person already listed, by externalId or e-mail address, is answered with 200.

curl -X POST https://easylpd.ch/api/v1/staff \
  -H "Authorization: Bearer elpd_…" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Marco Rossi",
    "email": "marco.rossi@example.com",
    "externalId": "hr.employee:381"
  }'

Body: NewStaffMember

FieldTypeDescription
namestring(at most 200 characters)
emailrequiredstring (email)
externalIdstringThe id in your own system; sending it again does not record it twice (at most 100 characters)

Answer: { data: { … } } with one StaffMember.

  • 200Already recorded with this externalId (or e-mail address)
  • 201Created
  • 400The body is not valid: the message names each field
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 429Too many calls: see Retry-After

get/appointments

The register of appointments: processors, authorized collaborators, internal roles, DPO, EU representative, with where each stands.

curl https://easylpd.ch/api/v1/appointments \
  -H "Authorization: Bearer elpd_…"

Answer: { data: [ … ], total, limit, offset }, a list of Appointment.

  • 200OK
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 429Too many calls: see Retry-After

post/appointmentskey that can record

Start the authorization of a collaborator: its document is written as a draft, owners and admins are told, and a member makes it final and has it signed in EasyLPD. With an e-mail address the person also goes into the staff list.

curl -X POST https://easylpd.ch/api/v1/appointments \
  -H "Authorization: Bearer elpd_…" \
  -H "Content-Type: application/json" \
  -d '{
    "kind": "authorized",
    "name": "Marco Rossi",
    "email": "marco.rossi@example.com",
    "department": "Sales",
    "activityIds": [
      "5b7c1e2a-9d4f-4c1b-8a51-0f3e2d6c7b90"
    ],
    "startsOn": "2027-01-04",
    "language": "it",
    "externalId": "hr.employee:381"
  }'

Body: NewAppointment

FieldTypeDescription
kindrequiredone of: authorizedAn authorized collaborator; the other kinds are made in EasyLPD
namerequiredstring(at most 200 characters)
emailstring (email)Also adds the person to the staff list
departmentstring(at most 120 characters)
activityIdsarray of string (uuid)Processing activities the person works on (GET /activities)
startsOnstring (date)
languageone of: it, de, fr, enLanguage of the document; default the organization's
externalIdstringThe id in your own system; sending it again does not record it twice (at most 100 characters)

Answer: { data: { … } } with one Appointment.

  • 200Already recorded with this externalId (or e-mail address)
  • 201Created
  • 400The body is not valid: the message names each field
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 429Too many calls: see Retry-After

get/appointments/{id}

One appointment.

curl https://easylpd.ch/api/v1/appointments/3f1c9a52-7e4b-4d2a-9c61-8b0e5f2a7d14 \
  -H "Authorization: Bearer elpd_…"

Answer: { data: { … } } with one Appointment.

  • 200OK
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 404Not found, or not of this organization
  • 429Too many calls: see Retry-After

post/appointments/{id}/revokekey that can record

End an appointment (the collaborator left), with a day and a reason. It stays in the register.

curl -X POST https://easylpd.ch/api/v1/appointments/3f1c9a52-7e4b-4d2a-9c61-8b0e5f2a7d14/revoke \
  -H "Authorization: Bearer elpd_…" \
  -H "Content-Type: application/json" \
  -d '{
    "on": "2027-06-30",
    "reason": "Left the company"
  }'

Body: RevokeAppointment

FieldTypeDescription
onstring (date)Default today
reasonstring(at most 500 characters)

Answer: { data: { … } } with one Appointment.

  • 200OK
  • 400The body is not valid: the message names each field
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 404Not found, or not of this organization
  • 429Too many calls: see Retry-After

Notices and consents

get/consents

Collections of consents and acknowledgments: the version of the document signed, the purposes, how many signed.

curl https://easylpd.ch/api/v1/consents \
  -H "Authorization: Bearer elpd_…"

Answer: { data: [ … ], total, limit, offset }, a list of ConsentCollection.

  • 200OK
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 429Too many calls: see Retry-After

get/consents/{id}/people

The people of a collection and what each signed.

curl https://easylpd.ch/api/v1/consents/3f1c9a52-7e4b-4d2a-9c61-8b0e5f2a7d14/people \
  -H "Authorization: Bearer elpd_…"

Answer: { data: [ … ], total, limit, offset }, a list of ConsentPerson.

  • 200OK
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 404Not found, or not of this organization
  • 429Too many calls: see Retry-After

post/consents/{id}/peoplekey that can record

Add a person to a collection and e-mail them their link to sign (invite: false to only add). A person already there, by externalId or e-mail address, is answered with 200; a closed collection with 409.

curl -X POST https://easylpd.ch/api/v1/consents/3f1c9a52-7e4b-4d2a-9c61-8b0e5f2a7d14/people \
  -H "Authorization: Bearer elpd_…" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Marco Rossi",
    "email": "marco.rossi@example.com",
    "invite": true,
    "externalId": "hr.employee:381"
  }'

Body: NewConsentPerson

FieldTypeDescription
namerequiredstring(at most 120 characters)
emailrequiredstring (email)
invitebooleanE-mail the link now (default true)
externalIdstringThe id in your own system; sending it again does not record it twice (at most 100 characters)

Answer: { data: { … } } with one ConsentPerson, and invited: whether the link was e-mailed.

  • 200Already recorded with this externalId (or e-mail address)
  • 201Created
  • 400The body is not valid: the message names each field
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 404Not found, or not of this organization
  • 409The collection is closed or full
  • 429Too many calls: see Retry-After

Requests and breaches

get/requests

Data subject requests.

curl https://easylpd.ch/api/v1/requests \
  -H "Authorization: Bearer elpd_…"

Answer: { data: [ … ], total, limit, offset }, a list of Request.

  • 200OK
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 429Too many calls: see Retry-After

post/requestskey that can record

Record a data subject request received elsewhere (a form, a ticketing tool). The 30-day term starts at receivedAt. With externalId, sending it again answers 200 with the request already recorded.

curl -X POST https://easylpd.ch/api/v1/requests \
  -H "Authorization: Bearer elpd_…" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "access",
    "requesterName": "Anna Muster",
    "requesterContact": "anna@example.com",
    "message": "Please send me a copy of my data.",
    "receivedAt": "2026-12-01T09:30:00Z",
    "externalId": "ticket-4812"
  }'

Body: NewRequest

FieldTypeDescription
typerequiredone of: access, rectification, erasure, objection, portability, restriction
requesterNamerequiredstring(at most 200 characters)
requesterContactrequiredstringE-mail address or other contact (at most 300 characters)
messagestring(at most 4000 characters)
receivedAtstring (date-time)Default now; within the past year
externalIdstringThe id in your own system; sending it again does not record it twice (at most 100 characters)

Answer: { data: { … } } with one Request.

  • 200Already recorded with this externalId (or e-mail address)
  • 201Created
  • 400The body is not valid: the message names each field
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 429Too many calls: see Retry-After

get/requests/{id}

One data subject request.

curl https://easylpd.ch/api/v1/requests/3f1c9a52-7e4b-4d2a-9c61-8b0e5f2a7d14 \
  -H "Authorization: Bearer elpd_…"

Answer: { data: { … } } with one Request.

  • 200OK
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 404Not found, or not of this organization
  • 429Too many calls: see Retry-After

get/breaches

Data breaches.

curl https://easylpd.ch/api/v1/breaches \
  -H "Authorization: Bearer elpd_…"

Answer: { data: [ … ], total, limit, offset }, a list of Breach.

  • 200OK
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 429Too many calls: see Retry-After

post/breacheskey that can record

Record a data breach from a monitoring or ticketing tool; owners and admins are told at once.

curl -X POST https://easylpd.ch/api/v1/breaches \
  -H "Authorization: Bearer elpd_…" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Laptop stolen from a car",
    "description": "Unencrypted laptop of the sales team.",
    "breachType": "loss",
    "occurredAt": "2026-12-01T18:00:00Z",
    "detectedAt": "2026-12-02T07:45:00Z"
  }'

Body: NewBreach

FieldTypeDescription
titlerequiredstring(at most 200 characters)
descriptionstring(at most 5000 characters)
breachTypeone of: loss, unauthorized_access, disclosure, alteration, destruction, unavailable
occurredAtstring (date-time)
detectedAtstring (date-time)When it was discovered; default now. The GDPR's 72 hours run from here.

Answer: { data: { … } } with one Breach.

  • 200Already recorded with this externalId (or e-mail address)
  • 201Created
  • 400The body is not valid: the message names each field
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 429Too many calls: see Retry-After

get/breaches/{id}

One data breach.

curl https://easylpd.ch/api/v1/breaches/3f1c9a52-7e4b-4d2a-9c61-8b0e5f2a7d14 \
  -H "Authorization: Bearer elpd_…"

Answer: { data: { … } } with one Breach.

  • 200OK
  • 401Missing, invalid, revoked or expired key
  • 403Not on Business, or a read-only key that tried to write
  • 404Not found, or not of this organization
  • 429Too many calls: see Retry-After

Objects

Organization

FieldTypeDescription
idstring
namestring
planstring
countrystring or null
languagestring or null
frameworksarray of one of: lpd, gdpr, aiact
assessmentobject or null
actionPlanobject

Action

FieldTypeDescription
idstring
controlIdstring
titlestring
stageone of: understand, setup, rules, inform, protect, maintain
weightone of: 1, 2, 33 main obligation, 2 important, 1 good practice
statusone of: todo, in_progress, review, done
dueDatestring (date) or null
completedAtstring (date-time) or null
evidenceDocumentIdstring or null
refsmap of array of stringArticles per law

Activity

FieldTypeDescription
idstring
namestring
purposestring or null
rolestring
legalBasisstring or null
dataCategoriesarray of string
sensitiveDataboolean
subjectCategoriesarray of string
recipientsarray of string
transferCountriesarray of string
transferSafeguardsstring or null
retentionstring or null
securityMeasuresstring or null
reviewedAtstring (date-time) or null
createdAtstring (date-time)
updatedAtstring (date-time)

Vendor

FieldTypeDescription
idstring
namestring
servicestring or null
countrystring or nullISO 3166-1 alpha-2
isProcessorboolean
contractSignedboolean
contractDocumentIdstring or null
transferMechanismstring or null
questionnaireAnsweredAtstring (date-time) or null
reviewedAtstring (date-time) or null
createdAtstring (date-time)
updatedAtstring (date-time)

Document

FieldTypeDescription
idstring
kindone of: generated, upload
templatestring or null
titlestring
languagestring
versioninteger
statusone of: draft, final, in_review, approved
finalizedAtstring (date-time) or null
approvedAtstring (date-time) or null
signedAtstring (date-time) or null
pdfbooleanWhether /documents/{id}/pdf has a file
createdAtstring (date-time)
updatedAtstring (date-time)

StaffMember

FieldTypeDescription
idstring
namestring
emailstring
externalIdstring or null
invitedAtstring (date-time) or null
createdAtstring (date-time)

Appointment

FieldTypeDescription
idstring
kindone of: processor, authorized, role, dpo, eu_rep
namestring
emailstring or null
rolestring or nullThe department of a collaborator, or the role given
activityIdsarray of string
staffMemberIdstring or null
documentIdstring or null
stateone of: draft, unsigned, signing, active, revoked, missingdraft: the text is being written; unsigned: final, no signature asked; signing: signatures asked; active: signed; revoked: ended
startsOnstring (date) or null
revokedOnstring (date) or null
revokedReasonstring or null
externalIdstring or null
createdAtstring (date-time)

ConsentCollection

FieldTypeDescription
idstring
kindone of: ack, consentack: acknowledgment of a notice; consent: a yes or no per purpose
titlestring
versioninteger
documentIdstring or null
statementstring
purposesarray of object
openboolean
peopleobject
createdAtstring (date-time)
closedAtstring (date-time) or null

ConsentPerson

FieldTypeDescription
idstring
namestring
emailstring or null
channelone of: email, link, paper
stateone of: waiting, opened, signed, declined, revoked
choicesmap of booleanPurpose id: yes or no, as signed
invitedAtstring (date-time) or null
signedAtstring (date-time) or null
revokedAtstring (date-time) or null
externalIdstring or null
createdAtstring (date-time)

Request

FieldTypeDescription
idstring
typeone of: access, rectification, erasure, objection, portability, restriction
statusstring
sourceone of: manual, portal, api
requesterNamestring or null
requesterContactstring or null
messagestring or null
receivedAtstring (date-time)
dueAtstring (date-time)
identityVerifiedboolean
answeredAtstring (date-time) or null
closedAtstring (date-time) or null
externalIdstring or null
updatedAtstring (date-time)

Breach

FieldTypeDescription
idstring
titlestring
descriptionstring or null
statusstring
breachTypeone of: loss, unauthorized_access, disclosure, alteration, destruction, unavailable or null
occurredAtstring (date-time) or null
detectedAtstring (date-time)
endedAtstring (date-time) or null
riskLevelone of: low, medium, high, critical or null
affectedCountinteger or null
dataCategoriesarray of string
subjectCategoriesarray of string
notificationsobjectPer law: whether notifying is required and when the authority and the persons were told
closedAtstring (date-time) or null
updatedAtstring (date-time)

Questions about the API: technical support in the EasyLPD help centre, or contact@easylpd.ch.