Die HTTP API der Consent Database ermöglicht es Ihnen, die von Ihren Nutzern durchgeführten Einwilligungserklärungen aufzuzeichnen und abzurufen, die in der Lösung als „Betroffener“ bezeichnet werden.
Update: Wir haben inzwischen auch einen Beta-Channel eingerichtet (auf Englisch). Hier können Sie alle neuesten Funktionen testen, bevor diese in den aktuellen Kanal verschoben werden.
Um in die API eingreifen zu können, stellen wir zwei Arten von Schlüsseln zur Verfügung:
Alle API-Aufrufe, sowohl über HTTP als auch über JS, geben an, ob der Aufruf durch einen privaten oder öffentlichen Schlüssel authentifiziert wurde. Auf diese Weise können Sie den Aufrufen, die vom privaten Schlüssel stammen, mehr Vertrauen entgegenbringen, was zu einem höheren Grad an Zuverlässigkeit führt. Dadurch kann überprüft werden, ob die Daten wirklich von Ihnen gesendet wurden.
Für die HTTP API muss der private Schlüssel über den ApiKey
-Header gesendet werden. Öffentliche API-Schlüssel werden nur auf dem POST /public/consent
-Endgerät akzeptiert.
Aktualisierung: Um die gesamte Kommunikation zwischen der REST-API und den Kunden zu sichern, wird die Unterstützung für das HTTP-Protokoll bei allen Aufrufen der Consent Database API aufgehoben. Nach dem 31. Januar 2023 müssen alle Anfragen für Consent Database APIs das HTTPS-Protokoll verwenden.
Um Daten an unsere HTTP-API zu senden, muss der Header-Inhaltstyp auf application/json
oder application/x-www-form-urlencoded
gesetzt werden.
❗️ Die Consent Database HTTP-APIs unterstützen nur UTF-8 kodiertes JSON. Die APls senden den HTTP-Status 400 für alle anderen Kodierungs-Header zurück, die mit einer Anfrage verschickt werden.
Standardmäßig ist jede json-Antwort „unescaped“. Wir empfehlen Nutzern, die Werte, die HTML- und/oder JavaScript-Code enthalten könnten, zu „escapen“, wenn sie sie von einer Webseite rendern wollen, um XSS-Angriffe zu vermeiden.
Der Parameter unescape_json
, der verwendet wurde, um die json-Antwort zu unescape-en, indem unescape_json=true
an jede Anfrage weitergegeben wurde, wird jetzt ignoriert und jede Anfrage berücksichtigt diesen Parameter als Standard.
Standardmäßig können Sie maximal 50 Anfragen pro Sekunde und 108. 000 Anfragen pro Stunde durchführen. Die API antwortet serverseitig mit „429 Too Many Requests“, wenn diese Grenzen überschritten werden.
Es gibt ein Maximum von 1 MB pro Aufruf. Die API antwortet serverseitig mit „413 Request Entity Too Large“, wenn diese Grenzen überschritten werden.
GET https://consent.iubenda.com/consent
Für Beta:
GET https://consent.iubenda.com/beta/consent
Alle Felder sind optional, einige werden jedoch automatisch ausgefüllt, wenn keine Angaben zur Verfügung gestellt werden.
Akzeptierte Abfrageparameter:
from_time | optional | String | Filtert nach Zeitstempel der Einwilligungen. Alle Einwilligungen werden ab diesem Zeitpunkt (einschließlich) zurückgegeben. Gültige Formate: 2018-02-22 00:40:00 UTC, 2018-02-22T00:40:00Z (ISO 8601), 1519260000 (UNIX-Zeitstempel in Sekunden). Default null | |
to_time | optional | String | Filtert nach Zeitstempel der Einwilligungen. Alle Einwilligungen werden ab diesem Zeitpunkt (einschließlich) zurückgegeben. Gültige Formate: 2018-02-22 00:40:00 UTC, 2018-02-22T00:40:00Z (ISO 8601), 1519260000 (UNIX-Zeitstempel in Sekunden). Default null | |
source | optional | String | Filtert nach der Quelle der Einwilligungen. Mögliche Werte: öffentlich, privat. Default null | |
ip_address | optional | String | Filtert nach IP_Adresse. Default null. Gültige Formate (IP-Adressenformat). Default ‘none’ | |
subject_id | optional | String | Filtert nach der Betroffenen-ID. Default null | |
subject_email_exact | optional | String | Filtern nach E-Mail-Betroffenen. Betroffener muss identisch sein (Groß-/Kleinschreibung beachten). Default null | |
subject_email | optional | String | Filter nach E-Mail-Betroffenen. Passt teilweise auf die Zeichenfolge (Groß- und Kleinschreibung wird nicht berücksichtigt). Default null | veraltet |
subject_first_name | optional | String | Filtert nach dem Vornamen des Betroffenen. Dieser muss identisch sein (Groß-/Kleinschreibung beachten). Default null | |
subject_last_name | optional | String | Filtert nach dem Nachnamen des Betroffenen. Es muss genau übereinstimmen (Groß-/Kleinschreibung beachten). Default null | |
subject_full_name | optional | String | Filter nach dem vollständigen Namen des Betroffenen. Die Zeichenfolge wird teilweise abgeglichen (Groß- und Kleinschreibung wird nicht berücksichtigt). Default null | veraltet |
subject_verified | optional | Boolean | Filtert nach verifiziertem Beroffenen-Status. Mögliche Werte: true, false. Default nul | |
preference_key | optional | String | Filtert nach Einwilligungen, in denen der Schlüssel vorhanden ist. Default null | veraltet |
starting_after | optional | String | Cursor, der angibt, nach welcher Einwilligung die Ergebnisse zurückgegeben werden sollen (Cursor ausgeschlossen). Default null | |
limit | optional | Numeric | Zahl, die die Anzahl der zurückgegebenen Ergebnisse angibt. Min: 1, Max: 100. Default 10 |
Diese Methode unterstützt die Cursor-basierte Seitenaufteilung über den Parameter starting_after
. Mit diesem Parameter kann ein vorhandener Betroffener ausgewählt werden und zugehörigen Objekte zu diesem angezeigt werden.
Beachten Sie, dass die Ergebnisse standardmäßig mit absteigendem Zeitstempel geordnet sind.
Einige Felder sind veraltet und möglicherweise nicht funktionsfähig. Wir empfehlen, sie nicht zu verwenden, da wir die Unterstützung in der Zukunft möglicherweise beenden werden.
Antwort:
# 200 OK
[{
"id": "b04c4b2b-80b7-439f-8997-ade3d35cbb95",
"timestamp": "2018-06-04T08:11:34.000+00:00",
"owner": "521686",
"source": "private",
"subject": {
"id": "0e371678-634a-4016-83ce-9b7c36f828e6",
"email": "83ce_634a_4016_9b7c36f828e6_0e371678@example.com",
"first_name": "Kianna",
"last_name": "Fahey",
"full_name": "Kianna Fahey",
"verified": false
},
"preferences": {
"newsletter": false
}
},
{
"id": "ee6644ea-08e9-4aaa-a7a9-18602731a123",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "681109",
"source": "public",
"subject": {
"id": "8c6d1b71-0908-4604-948f-2f706500b5b1",
"email": "0908.8c6d1b71.2f706500b5b1.4604.948f@example.org",
"first_name": "Eleanora",
"last_name": "Adams",
"full_name": "Eleanora Adams",
"verified": false
},
"preferences": {
"newsletter": true
}
},
{
"id": "e7a9f5db-481e-4c80-ac7d-a35e35d37f98",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "178473",
"source": "private",
"subject": {
"id": "d084ab70-0460-4523-94b2-44841055b49c",
"email": "94b2_4523_44841055b49c_0460_d084ab70@example.com",
"first_name": "Abbie",
"last_name": "Heidenreich",
"full_name": "Abbie Heidenreich",
"verified": false
},
"preferences": {
"third_party": true
}
},
{
"id": "e3481085-296c-4b11-a999-73d5d1309128",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "393753",
"source": "private",
"subject": {
"id": "be8ca546-150d-4a6e-b2ac-ef76fb8a279e",
"email": "b2ac_ef76fb8a279e_150d_4a6e_be8ca546@example.net",
"first_name": "Grace",
"last_name": "Dooley",
"full_name": "Grace Dooley",
"verified": false
},
"preferences": {
"another_preference_key": false,
"newsletter": false
}
},
{
"id": "e1be0320-a854-4b01-a468-49b1752ee4f3",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "629879",
"source": "public",
"subject": {
"id": "f8878254-c7ae-4169-b474-19e90d7b2f4f",
"email": "f8878254_b474_19e90d7b2f4f_4169_c7ae@example.net",
"first_name": "Providenci",
"last_name": "Kulas",
"full_name": "Providenci Kulas",
"verified": false
},
"preferences": {
"newsletter": false,
"random_preference_key": true,
"third_party": true,
"another_preference_key": false
}
},
{
"id": "cbe2bba8-d31d-4a27-9e2d-b38de4f22a68",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "989797",
"source": "public",
"subject": {
"id": "6387dc5d-d474-4da8-8c40-8b197dee8d7c",
"email": "6387dc5d.4da8.d474.8c40.8b197dee8d7c@example.com",
"first_name": "Alan",
"last_name": "Rutherford",
"full_name": "Alan Rutherford",
"verified": false
},
"preferences": {
"newsletter": true,
"random_preference_key": true
}
},
{
"id": "ca429c28-e1cd-4b95-87ae-48adb8fe56bb",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "885846",
"source": "public",
"subject": {
"id": "b2ad578d-0aa9-4bd5-becd-e2e7a2019e7a",
"email": "b2ad578d.becd.e2e7a2019e7a.0aa9.4bd5@example.net",
"first_name": "Ruby",
"last_name": "Lemke",
"full_name": "Ruby Lemke",
"verified": false
},
"preferences": {
"third_party": true,
"random_preference_key": false
}
},
{
"id": "bf12770e-840a-40cd-ab79-5d88576b6b73",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "369168",
"source": "public",
"subject": {
"id": "d4f24d92-56c2-4372-8696-fec829da5ccc",
"email": "fec829da5ccc.8696.4372.56c2.d4f24d92@example.com",
"first_name": "Hank",
"last_name": "Klein",
"full_name": "Hank Klein",
"verified": false
},
"preferences": {
"newsletter": false
}
},
{
"id": "b489e2d4-2fc6-44e1-ba54-e5f81000d30a",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "781022",
"source": "public",
"subject": {
"id": "38bc623f-b386-4b66-8ee6-5e7d91c19800",
"email": "38bc623f.8ee6.4b66.5e7d91c19800.b386@example.net",
"first_name": "Kamren",
"last_name": "Pacocha",
"full_name": "Kamren Pacocha",
"verified": false
},
"preferences": {
"newsletter": true
}
},
{
"id": "b2ec7aa8-35e7-470c-8b51-bd39fa686a3a",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "527898",
"source": "public",
"subject": {
"id": "0cc94c66-d9eb-4ace-af3d-1d48fba265f9",
"email": "1d48fba265f9_4ace_af3d_d9eb_0cc94c66@example.net",
"first_name": "Maryjane",
"last_name": "Wiegand",
"full_name": "Maryjane Wiegand",
"verified": false
},
"preferences": {
"newsletter": true
}
}
]
Bitte beachten Sie, dass diese Methode nicht die Einwilligungshinweise und rechtlichen Hinweise enthält. Sie sollten GET /consent/:id
aufrufen, um die vollständige Einwilligung zu erhalten.
Beispiel →
GET https://consent.iubenda.com/consent/:id
Für Beta:
GET https://consent.iubenda.com/beta/consent/:id
# 200 OK
{
"id": "de801ca9-abec-45e2-8f7c-729822cfffad",
"timestamp": "2018-05-04T14:52:26Z",
"checksum": "336dd0c5ee2253794b8cca6ee2b2fec835ab25a7097c4405014d02e4ffe4d5e5",
"owner": "1",
"subject": {
"id": "custom_subject_id",
"owner_id": "1",
"email": "subject@example.com",
"first_name": "John",
"last_name": "Doe",
"verified": false
},
"preferences": {
"privacy_policy": true,
"newsletter": false
},
"legal_notices": [
{
"identifier": "privacy_policy",
"version": 123
},
{
"identifier": "term",
"version": 123
}
],
"proofs": [
{
"content": "proof_1",
"form": "proof_1 form"
},
{
"content": "proof_2",
"form": "proof_2 form"
}
],
"ip_address": null
}
Zusätzlich zu den oben beschriebenen Eigenschaften:
ID | Eindeutige Kennung der spezifischen Erteilung der Einwilligung. | ||
Inhaber | Eindeutige Kennung des API-Schlüsselinhabers | ||
Quelle | Privat | Public | Angabe, ob die Einwilligung über den öffentlichen oder den privaten API-Schlüssel eingereicht wurde |
POST https://consent.iubenda.com/consent
Für Beta:
POST https://consent.iubenda.com/beta/consent
{
"subject": {
"id": "testsubject",
"email": "subject@example.com",
"first_name": "John",
"last_name": "Doe",
"verified": false
},
"legal_notices": [
{
"identifier": "privacy_policy",
"version": 123
},
{
"identifier": "term",
"version": 123
}
],
"proofs": [
{
"content": "proof_1",
"form": "proof_1 form"
},
{
"content": "proof_2",
"form": "proof_2 form"
}
],
"preferences": {
"newsletter": false,
"privacy_policy": true
},
"ip_address": "127.0.0.1"
}
Diese Aufforderung wird eine neue Einwilligung veröffentlichen.
Die Antwort ist wie folgt:
# 200 OK
{
"id": "de801ca9-abec-45e2-8f7c-729822cfffad",
"timestamp": "2018-05-04T14:52:26Z",
"subject_id": "testsubject"
}
Die Einwilligungsmethode akzeptiert die folgenden Felder. Alle Felder sind optional, einige werden jedoch automatisch ausgefüllt, wenn keine Angaben vorhanden sind.
Zeitstempel | automatisch ausgefüllt, wenn nicht vorhanden | String | ISO 8601 Zeitstempel, zu dem die Einwilligung erfolgte |
Betroffener | Objekt | ||
ID | automatisch ausgefüllt, wenn nicht vorhanden | String | |
String | |||
first_name | String | ||
last_name | String | ||
full_name | String | ||
verifiziert | Boolean | Reserviertes Feld, das verwendet wird, um zu signalisieren, ob ein Betroffener verifiziert ist, zum Beispiel durch die Double-Opt-In-Methode | |
legal_notices | Auflistung | Auflistung von Betroffenen, die legal_notices-Daten enthalten | |
Identifikator | String | privacy_policy, cookie_policy, Begriff oder ein benutzerdefinierter Identifikator | |
Version | automatisch ausgefüllt, wenn nicht vorhanden | String | |
Nachweise | Auflistung | Auflistung von Objekten, die Prüfdaten enthalten | |
Inhalt | Text | ||
Formular | Text | ||
Präferenzen | Objekt | Zusammenstellung von Schlüssel-Werte-Paaren mit Benutzereinstellungen für die Einwilligungshandlung | |
ip_address | wird automatisch ausgefüllt, wenn Sie `autodetect_ip_address benutzen` | String | Wird nur bei Verwendung eines „privaten“ Schlüssels berücksichtigt. Speichert die übergebene IP-Adresse bei der Einwilligung. Default null |
autodetect_ip_address | Default `true` | String | Wird nur bei Verwendung eines „öffentlichen“ Schlüssels berücksichtigt. Aktiviert oder deaktiviert (true, false) die Erkennung von IP-Adressen. Default true |
Für Beta:
GET https://consent.iubenda.com/beta/subjects/:id/consent/last
Die Last Einwilligung-Methode ruft die letzte Einwilligung zurück, die für den angegebenen Betroffenen erstellt wurde.
Die Antwort ist wie folgt:
# 200 OK
{
"id": "de801ca9-abec-45e2-8f7c-729822cfffad",
"timestamp": "2018-05-04T14:52:26Z",
"checksum": "336dd0c5ee2253794b8cca6ee2b2fec835ab25a7097c4405014d02e4ffe4d5e5",
"owner": "1",
"subject": {
"id": "custom_subject_id",
"owner_id": "1",
"email": "subject@example.com",
"first_name": "John",
"last_name": "Doe",
"verified": false
},
"preferences": {
"privacy_policy": true,
"newsletter": false
},
"legal_notices": [
{
"identifier": "privacy_policy",
"version": 123
},
{
"identifier": "term",
"version": 123
}
],
"proofs": [
{
"content": "proof_1",
"form": "proof_1 form"
},
{
"content": "proof_2",
"form": "proof_2 form"
}
],
"ip_address": null
}
Beispiel →
GET https://consent.iubenda.com/subjects
Für Beta:
GET https://consent.iubenda.com/beta/subjects
Alle Felder sind optional, einige werden jedoch automatisch ausgefüllt, wenn keine Angaben gemacht werden.
Akzeptierte Abfrageparameter:
id | optional | String | Filtert nach ID. Diese muss identisch sein. Default null | |
email_exact | optional | String | Filtert nach E-Mail. Diese muss identisch sein (Groß-/Kleinschreibung beachten). Default null | |
optional | String | Filtert nach E-Mail. Entspricht teilweise dem String (Groß- und Kleinschreibung wird nicht berücksichtigt) | Veraltet | |
first_name | optional | String | Filtert nach Vornamen. Dieser muss identisch sein (Groß-/Kleinschreibung beachten). Default null | |
last_name | optional | String | Filtert nach Nachname. Dieser muss identisch sein (Groß-/Kleinschreibung beachten). Default null | |
full_name | optional | String | Filtert nach vollständigem Namen. Entspricht teilweise dem String (Groß- und Kleinschreibung wird nicht berücksichtigt) | Veraltet |
from_time | optional | String | Filtert nach Betroffenen-Zeitstempel. Ermittelt alle Betroffenen, von diesem Zeitpunkt an (inklusive). Gültige Formate: 2018-02-22 00:40:00 UTC, 2018-02-22T00:40:00Z (ISO 8601), 1519260000 (UNIX-Zeitstempel in Sekunden). Default null | |
to_time | optional | String | Filtert nach Betroffenen-Zeitstempel. Ermittelt alle Betroffenen von diesem Zeitpunkt an rückwärts (einschließlich). Gültige Formate: 2018-02-22 00:40:00 UTC, 2018-02-22T00:40:00Z (ISO 8601), 1519260000 (UNIX-Zeitstempel in Sekunden). Default null | |
verified | optional | Boolean | Filtert nach verifiziertem Status. Mögliche Werte: true, false. Default null | |
starting_after | optional | String | Cursor, der festlegt, nach welchen Betroffenen die Ergebnisse zurückgegeben werden sollen (Cursor ausgeschlossen). Default null | |
limit | optional | Numeric | Zahl, die die Anzahl der zurückgegebenen Ergebnisse angibt. Min: 1, Max: 100. Default 10 |
Diese Methode unterstützt die Cursor-basierte Seitenaufteilung über den Parameter starting_after
. Mit diesem Parameter kann ein vorhandener Betroffener ausgewählt werden und zugehörigen Objekte zu diesem angezeigt werden.
Beachten Sie, dass die Ergebnisse standardmäßig nach Zeitstempel absteigend sortiert sind.
Einige Felder sind veraltet und möglicherweise nicht performant. Wir empfehlen, sie nicht zu verwenden, da wir die Unterstützung in Zukunft möglicherweise beenden werden.
Antwort:
# 200 OK
[
{
"id": "d2a55da5-0777-4625-94bd-b69948703e71",
"owner_id": "131132",
"email": "rath.jorge@example.com",
"first_name": "Jorge",
"last_name": "Rath",
"full_name": "Jorge Rath",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
},
{
"id": "b75c6d0c-550f-4f84-9e92-2f351d481220",
"owner_id": "131132",
"email": "aufderhar_alfonso@example.net",
"first_name": "Alfonso",
"last_name": "Aufderhar",
"full_name": "Alfonso Aufderhar",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
},
{
"id": "a9c8c720-cb07-4a52-81c3-7cb7fb4f877e",
"owner_id": "131132",
"email": "vandervort.furman@example.net",
"first_name": "Furman",
"last_name": "Vandervort",
"full_name": "Furman Vandervort",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
},
{
"id": "6ccc2802-3bcb-49af-a4c5-14dc89ba94bc",
"owner_id": "131132",
"email": "alvis.rohan@example.org",
"first_name": "Alvis",
"last_name": "Rohan",
"full_name": "Alvis Rohan",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
},
{
"id": "5900f856-619e-42b0-92a5-b2ebd016ac01",
"owner_id": "131132",
"email": "brown.marlee@example.net",
"first_name": "Marlee",
"last_name": "Brown",
"full_name": "Marlee Brown",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}
]
Einige Felder sind veraltet und möglicherweise nicht mehr funktionsfähig. Wir raten von ihrer Verwendung ab, da wir die Unterstützung in Zukunft möglicherweise einstellen werden.
Beispiel →
GET https://consent.iubenda.com/subjects/:id
Für Beta:
GET https://consent.iubenda.com/beta/subjects/:id
# 200 OK
{
"id": "testsubject",
"owner_id": "1",
"email": "subject@example.com",
"first_name": "John",
"last_name": "Doe",
"verified": false,
"preferences": {
"privacy_policy": {
"value": true,
"consent_id": "de801ca9-abec-45e2-8f7c-729822cfffad"
},
"newsletter": {
"value": true,
"consent_id": "de801ca9-abec-45e2-8f7c-729822cfffad"
}
}
}
Beispiel →
POST https://consent.iubenda.com/subjects
Für Beta:
POST https://consent.iubenda.com/beta/subjects
{
"id": "testsubject",
"email": "subject@example.com",
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"verified": false
}
Mit dieser Methode wird ein neuer Betroffener veröffentlicht. Diese Methode kann auch innerhalb der consent
verwendet werden. Einzelheiten finden Sie in der Quellenangabe innerhalb der consent
-Methode.
id | automatisch ausgefüllt, wenn nicht vorhanden | String | |
optional | String | ||
first_name | optional | String | |
last_name | optional | String | |
full_name | optional | String | |
verified | optional | Boolean | Reserviertes Feld, das verwendet wird, um zu signalisieren, ob ein Betroffener verifiziert ist, zum Beispiel durch die Double-Opt-In-Methode |
Bald erhältlich | |||
custom_attributes | optional | Objekt | Zusammenstellung von Schlüssel-Werte-Paaren mit Benutzereinstellungen für die Einwilligungshandlung |
Die Antwort lautet wie folgt:
# 200 OK
{
"id": "testsubject",
"created_at": "2018-05-04T14:52:26Z"
}
Beispiel →
PUT|PATCH https://consent.iubenda.com/subjects/:id
Für Beta:
PUT|PATCH https://consent.iubenda.com/beta/subjects/:id
{
"first_name": "Mary",
"verified": true
}
Diese Aufforderung wird ein bestehenden Betroffenen aktualisieren.
Die Antwort lautet wie folgt:
# 200 OK
{
"id": "testsubject",
"created_at": "2018-05-04T14:52:26Z"
}
Beispiel →
GET https://consent.iubenda.com/legal_notices
Für Beta:
GET https://consent.iubenda.com/beta/legal_notices
Die Dokumente werden nach Zeitstempel geordnet zurückgegeben.
Alle Felder sind optional, einige werden jedoch automatisch ausgefüllt, wenn keine Angaben gemacht werden.
Akzeptierte Abfrageparameter:
ID | optional | String | Filtert nach ID. Diese muss identisch sein. Default null |
Kennung | optional | String | Filtert nach Kennung. Diese muss identisch sein (Groß-/Kleinschreibung beachten). Default null |
version | optional | Numeric | Filtert nach Version. Diese muss identisch sein. Default null |
Sprache | optional | String | Filtert nach rechtlichen Hinweisen, welche Inhalte die angegebene Sprache enthalten (unter Verwendung von Kurzformen wie ‘en’, ‘it’ usw.). Default null |
from_time | optional | String | Filtert nach Betroffenen-Zeitstempel. Ermittelt alle Betroffenen, von diesem Zeitpunkt an (inklusive). Gültige Formate: 2018-02-22 00:40:00 UTC, 2018-02-22T00:40:00Z (ISO 8601), 1519260000 (UNIX-Zeitstempel in Sekunden). Default null |
to_time | optional | String | Filtert nach Betroffenen-Zeitstempel. Ermittelt alle Betroffenen von diesem Zeitpunkt an rückwärts (einschließlich). Gültige Formate: 2018-02-22 00:40:00 UTC, 2018-02-22T00:40:00Z (ISO 8601), 1519260000 (UNIX-Zeitstempel in Sekunden). Default null |
starting_after_version | optional | Numeric | Cursor, der festlegt, nach welchen Betroffenen die Ergebnisse zurückgegeben werden sollen (Cursor ausgeschlossen). Default null |
starting_after_identifier | optional | String | Cursor, der angibt, nach welcher Kennung des rechtlichen Hinweises die Ergebnisse zurückgegeben werden sollen (Cursor ausgeschlossen). Default null |
limit | optional | Numeric | Zahl, die die Anzahl der zurückgegebenen Ergebnisse angibt. Min: 1, Max: 100. Default 10 |
Diese Methode unterstützt die Cursor-basierte Seitenaufteilung über den Parameter starting_after_version
and starting_after_identifier
. Mit diesem Parameter kann ein vorhandener Betroffener ausgewählt werden und zugehörigen Objekte zu diesem angezeigt werden. Beide Parameter sind für die Seitenaufteilung erforderlich.
Antwort:
# 200 OK
[
{
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 20,
"timestamp": "2018-10-09T12:38:04Z",
"content": {
"en": "Et vinculum clam decerno arguo admoveo velum sponte tot suppellex venustas defendo dolor decumbo est.",
"it": "Collum tutis esse confugo porro urbs varius abscido turpis decor praesentium tardus voluptate fugit numquam."
}
},
{
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 19,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Venia valde vel surculus capitulus adfectus patior comparo acsi cur vero super cursim.",
"it": "Consuasor arcesso conscendo crudelis cauda aer aut adeptio illo argentum comis subiungo subito colo."
}
},
{
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 18,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Ullus voco aufero speculum fugiat audacia laboriosam vilicus amita trans aut ut.",
"it": "Alo veritatis ipsa tristis cuius occaecati adflicto creta verecundia facere solvo despirmatio cupiditate crinis aqua bos."
}
},
{
"id": "0_privacy_policy",
"owner_id": "0",
"identifier": "privacy_policy",
"version": 17,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Confero succedo caelum adhaero quo vir deorsum quaerat utor sit ustulo cribro.",
"it": "Bibo cubitum unus est ambitus contego apparatus alo via abutor utroque xiphias voco."
}
},
{
"id": "0_privacy_policy",
"owner_id": "0",
"identifier": "privacy_policy",
"version": 16,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Qui porro culpo attero benevolentia aut sed sulum adfero artificiose adsidue tam amo validus vel spectaculum.",
"it": "Cerno ipsum fugit compello cursim ter surgo asporto debilito excepturi adversus facere."
}
},
{
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 15,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Tunc timidus veritatis maiores advenio aperio testimonium defluo celo cuius adsuesco deripio.",
"it": "Depulso dignissimos vinitor curatio caelestis cedo et sum concedo id admoneo appositus."
}
},
{
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 14,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Repellat mollitia desidero videlicet est textilis stips nisi aequus solum depromo agnitio usus.",
"it": "Vomito tonsor comitatus illum aut usitas laboriosam canonicus tepesco benigne confugo trado."
}
},
{
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 13,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Temperantia alias somniculosus absorbeo utique caecus terror demitto trucido desidero baiulus sublime.",
"it": "Perspiciatis at tredecim curriculum comprehendo deduco corrupti attonbitus barba cruentus communis comparo thorax cauda spero vito anser."
}
},
{
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 12,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Allatus cena surculus ventito ver adversus torrens demo venustas toties veritas qui cado vis.",
"it": "Talio avoco aptus compono et subiungo peior bellum depromo aureus torqueo adeptio nobis."
}
},
{
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 11,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Aliquam cubicularis tergum utor cinis concido ratione vociferor uter deduco tertius verecundia alo claustrum sto vos aegrotatio.",
"it": "Corona ut comes sub coaegresco caute casus laboriosam tremo vulariter aegrotatio pauci callide assentator basium."
}
}
]
Beispiel →
GET https://consent.iubenda.com/legal_notices/:identifier/:version
Für Beta:
GET https://consent.iubenda.com/beta/legal_notices/:identifier/:version
Antwort:
# GET /legal_notices/privacy_policy/3
# 200 OK
{
"identifier": "privacy_policy",
"version": 3,
"timestamp": "2018-05-16T13:55:57Z",
"content": "privacy policy content"
}
Beispiel →
GET https://consent.iubenda.com/legal_notices/:identifier
Für Beta:
GET https://consent.iubenda.com/beta/legal_notices/:identifier
Die Dokumente werden nach Version geordnet zurückgegeben.
Akzeptierte Abfrageparameter:
limit | optionale | Nummer | Begrenzen Sie die Anzahl der Ergebnisse. Default 10 |
starting_after | optionale | Nummer | Cursor zur Verwendung bei der Seitenaufteilung. Default null |
Diese Methode unterstützt die Cursor-basierte Seitenaufteilung über den Parameter starting_after
. Mit diesem Parameter kann ein vorhandener Betroffener ausgewählt werden und zugehörigen Objekte zu diesem angezeigt werden.
# 200 OK
[
{
"identifier": "privacy_policy",
"version": 3,
"timestamp": "2018-05-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
},
{
"identifier": "privacy_policy",
"version": 2,
"timestamp": "2018-03-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
},
{
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-01-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}
]
Bitte beachten Sie, dass diese Methode nicht den Inhalt des Rechtlichen Hinweises, sondern nur die Metadaten für jeden einzelnen enthält. Sie sollten GET /legal_notices/:identifier/:version
aufrufen, um das vollständige Dokument zu erhalten.
Wenn Sie iubenda für Ihre Rechtsdokumente verwenden, werden wir den Inhalt der legal_notices
-Methode automatisch für Sie aktualisieren, sobald Ihre Rechtsdokumente geändert werden. Wie Sie diese Funktion aktivieren können, erfahren Sie hier.
Beispiel →
POST https://consent.iubenda.com/legal_notices
Für Beta:
POST https://consent.iubenda.com/beta/legal_notices
{
"identifier": "privacy_policy",
"content": "privacy policy content",
"timestamp": "2018-05-16T13:55:57Z"
}
Mit mehrsprachigem Inhalt:
{
"identifier": "privacy_policy",
"content": {
"en": "privacy policy content",
"it": "contenuto della privacy policy"
},
"timestamp": "2018-05-16T13:55:57Z"
}
Antwort:
# 200 OK
{
"identifier": "privacy_policy",
"timestamp": "2018-05-16T13:55:57Z",
"version": 1
}
POST https://consent.iubenda.com/legal_notices
Für Beta:
POST https://consent.iubenda.com/beta/legal_notices
[
{
"identifier": "privacy_policy",
"content": "privacy policy content",
"timestamp": "2018-05-16T13:55:57Z"
},
{
"identifier": "cookie_policy",
"content": "cookie policy content",
"timestamp": "2018-05-16T13:55:57Z"
}
]
Antwort:
# 200 OK
[
{
"identifier": "privacy_policy",
"timestamp": "2018-05-16T13:55:57Z",
"version": 1
},
{
"identifier": "cookie_policy",
"timestamp": "2018-05-16T13:55:57Z",
"version": 1
}
]
POST /consent
$ curl https://consent.iubenda.com/consent \
-X POST \
-H "ApiKey: your-private-api-key" \
-H "Content-Type: application/json" \
-d '{ "subject": { "id": "J02eZvKYlo2ClwuJ1", "email": "subject@example.com" }, "preferences": { "newsletter": true }, "legal_notices": [{ "identifier": "privacy_policy" }], "proofs": [{ "content": "proof_content", "form": "proof_form" }], "ip_address": "127.0.0.1" }'
Antwort:
{
"id": "1dbbc6f8-6a57-4407-b687-d6e6f818742f",
"timestamp": "2018-06-06T09:48:44.265Z",
"subject_id": "J02eZvKYlo2ClwuJ1"
}
GET /consent
$ curl https://consent.iubenda.com/consent/ \
-H "ApiKey: your-private-api-key"
Antwort:
[{
"id": "b04c4b2b-80b7-439f-8997-ade3d35cbb95",
"timestamp": "2018-06-04T08:11:34.000+00:00",
"owner": "12345",
"source": "private",
"subject": {
"id": "0e371678-634a-4016-83ce-9b7c36f828e6",
"email": "83ce_634a_4016_9b7c36f828e6_0e371678@example.com",
"first_name": "Kianna",
"last_name": "Fahey",
"full_name": "Kianna Fahey",
"verified": false
},
"preferences": {
"newsletter": false
},
"ip_address": "79.42.49.139"
}, {
"id": "ee6644ea-08e9-4aaa-a7a9-18602731a123",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "12345",
"source": "public",
"subject": {
"id": "8c6d1b71-0908-4604-948f-2f706500b5b1",
"email": "0908.8c6d1b71.2f706500b5b1.4604.948f@example.org",
"first_name": "Eleanora",
"last_name": "Adams",
"full_name": "Eleanora Adams",
"verified": false
},
"preferences": {
"newsletter": true
},
"ip_address": null
}, {
"id": "bf12770e-840a-40cd-ab79-5d88576b6b73",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "12345",
"source": "public",
"subject": {
"id": "d4f24d92-56c2-4372-8696-fec829da5ccc",
"email": "fec829da5ccc.8696.4372.56c2.d4f24d92@example.com",
"first_name": "Hank",
"last_name": "Klein",
"full_name": "Hank Klein",
"verified": false
},
"preferences": {
"newsletter": false
},
"ip_address": "79.42.49.139"
}]
GET /consent/:id
$ curl https://consent.iubenda.com/consent/1dbbc6f8-6a57-4407-b687-d6e6f818742f \
-H "ApiKey: your-private-api-key"
Antwort:
{
"id": "1dbbc6f8-6a57-4407-b687-d6e6f818742f",
"timestamp": "2018-05-04T14:52:26Z",
"owner": "1",
"subject": {
"id": "custom_subject_id",
"owner_id": "1",
"email": "subject@example.com",
"first_name": "John",
"last_name": "Doe",
"verified": false
},
"preferences": {
"privacy_policy": true,
"newsletter": false
},
"legal_notices": [{
"identifier": "privacy_policy",
"version": "123.0"
}, {
"identifier": "term",
"version": "123.0"
}],
"proofs": [{
"content": "proof_1",
"form": "proof_1 form"
}, {
"content": "proof_2",
"form": "proof_2 form"
}],
"ip_address": null
}
POST /beta/consent
$ curl https://consent.iubenda.com/beta/consent \
-X POST \
-H "ApiKey: your-private-api-key" \
-H "Content-Type: application/json" \
-d '{ "subject": { "id": "J02eZvKYlo2ClwuJ1", "email": "subject@example.com" }, "preferences": { "newsletter": true }, "legal_notices": [{ "identifier": "privacy_policy" }], "proofs": [{ "content": "proof_content", "form": "proof_form" }], "ip_address": "127.0.0.1" }'
Antwort:
{
"id": "1dbbc6f8-6a57-4407-b687-d6e6f818742f",
"timestamp": "2018-06-06T09:48:44.265Z",
"subject_id": "J02eZvKYlo2ClwuJ1"
}
GET /beta/consent
$ curl https://consent.iubenda.com/beta/consent/ \
-H "ApiKey: your-private-api-key"
Antwort:
[{
"id": "b04c4b2b-80b7-439f-8997-ade3d35cbb95",
"timestamp": "2018-06-04T08:11:34.000+00:00",
"owner": "12345",
"source": "private",
"subject": {
"id": "0e371678-634a-4016-83ce-9b7c36f828e6",
"email": "83ce_634a_4016_9b7c36f828e6_0e371678@example.com",
"first_name": "Kianna",
"last_name": "Fahey",
"full_name": "Kianna Fahey",
"verified": false
},
"preferences": {
"newsletter": false
},
"ip_address": "79.42.49.139"
}, {
"id": "ee6644ea-08e9-4aaa-a7a9-18602731a123",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "12345",
"source": "public",
"subject": {
"id": "8c6d1b71-0908-4604-948f-2f706500b5b1",
"email": "0908.8c6d1b71.2f706500b5b1.4604.948f@example.org",
"first_name": "Eleanora",
"last_name": "Adams",
"full_name": "Eleanora Adams",
"verified": false
},
"preferences": {
"newsletter": true
},
"ip_address": null
}, {
"id": "bf12770e-840a-40cd-ab79-5d88576b6b73",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "12345",
"source": "public",
"subject": {
"id": "d4f24d92-56c2-4372-8696-fec829da5ccc",
"email": "fec829da5ccc.8696.4372.56c2.d4f24d92@example.com",
"first_name": "Hank",
"last_name": "Klein",
"full_name": "Hank Klein",
"verified": false
},
"preferences": {
"newsletter": false
},
"ip_address": "79.42.49.139"
}]
GET /beta/consent/:id
$ curl https://consent.iubenda.com/beta/consent/1dbbc6f8-6a57-4407-b687-d6e6f818742f \
-H "ApiKey: your-private-api-key"
Antwort:
{
"id": "1dbbc6f8-6a57-4407-b687-d6e6f818742f",
"timestamp": "2018-05-04T14:52:26Z",
"owner": "1",
"subject": {
"id": "custom_subject_id",
"owner_id": "1",
"email": "subject@example.com",
"first_name": "John",
"last_name": "Doe",
"verified": false
},
"preferences": {
"privacy_policy": true,
"newsletter": false
},
"legal_notices": [{
"identifier": "privacy_policy",
"version": 123
}, {
"identifier": "term",
"version": 123
}],
"proofs": [{
"content": "proof_1",
"form": "proof_1 form"
}, {
"content": "proof_2",
"form": "proof_2 form"
}],
"ip_address": null
}
POST /consent
$consent_data = array(
"subject" => array(
"id" => "J02eZvKYlo2ClwuJ1",
"email" => "subject@example.com"
),
"legal_notices" => array(
array(
"identifier" => "newsletter"
),
array(
"identifier" => "privacy_policy"
)
),
"proofs" => array(
array(
"content" => "proof_content",
"form" => "proof_form"
)
),
"preferences" => array(
"newsletter" => true,
"privacy_policy" => true
),
"ip_address" => "127.0.0.1"
);
$req = curl_init();
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/consent');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
curl_setopt($req, CURLOPT_POST, true);
curl_setopt($req, CURLOPT_POSTFIELDS, json_encode($consent_data));
$response = curl_exec($req);
Antwort:
{
"id": "7abe5f70-22e4-4181-878c-9f931034fab5",
"timestamp": "2018-06-08T08:25:30.395Z",
"subject_id": "J02eZvKYlo2ClwuJ1"
}
GET /consent
$req = curl_init();
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/consent');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
$response = curl_exec($req);
Antwort:
[{
"id": "b04c4b2b-80b7-439f-8997-ade3d35cbb95",
"timestamp": "2018-06-04T08:11:34.000+00:00",
"owner": "12345",
"source": "private",
"subject": {
"id": "0e371678-634a-4016-83ce-9b7c36f828e6",
"email": "83ce_634a_4016_9b7c36f828e6_0e371678@example.com",
"first_name": "Kianna",
"last_name": "Fahey",
"full_name": "Kianna Fahey",
"verified": false
},
"preferences": {
"newsletter": false
},
"ip_address": "79.42.49.139"
}, {
"id": "ee6644ea-08e9-4aaa-a7a9-18602731a123",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "12345",
"source": "public",
"subject": {
"id": "8c6d1b71-0908-4604-948f-2f706500b5b1",
"email": "0908.8c6d1b71.2f706500b5b1.4604.948f@example.org",
"first_name": "Eleanora",
"last_name": "Adams",
"full_name": "Eleanora Adams",
"verified": false
},
"preferences": {
"newsletter": true
},
"ip_address": null
}, {
"id": "bf12770e-840a-40cd-ab79-5d88576b6b73",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "12345",
"source": "public",
"subject": {
"id": "d4f24d92-56c2-4372-8696-fec829da5ccc",
"email": "fec829da5ccc.8696.4372.56c2.d4f24d92@example.com",
"first_name": "Hank",
"last_name": "Klein",
"full_name": "Hank Klein",
"verified": false
},
"preferences": {
"newsletter": false
},
"ip_address": "79.42.49.139"
}]
GET /consent/:id
$req = curl_init();
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/consent/7abe5f70-22e4-4181-878c-9f931034fab5');
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
$response = curl_exec($req);
Antwort:
{
"id": "1dbbc6f8-6a57-4407-b687-d6e6f818742f",
"timestamp": "2018-05-04T14:52:26Z",
"owner": "1",
"subject": {
"id": "custom_subject_id",
"owner_id": "1",
"email": "subject@example.com",
"first_name": "John",
"last_name": "Doe",
"verified": false
},
"preferences": {
"privacy_policy": true,
"newsletter": false
},
"legal_notices": [{
"identifier": "privacy_policy",
"version": "123.0"
}, {
"identifier": "term",
"version": "123.0"
}],
"proofs": [{
"content": "proof_1",
"form": "proof_1 form"
}, {
"content": "proof_2",
"form": "proof_2 form"
}],
"ip_address": null
}
POST /beta/consent
$consent_data = array(
"subject" => array(
"id" => "J02eZvKYlo2ClwuJ1",
"email" => "subject@example.com"
),
"legal_notices" => array(
array(
"identifier" => "newsletter"
),
array(
"identifier" => "privacy_policy"
)
),
"proofs" => array(
array(
"content" => "proof_content",
"form" => "proof_form"
)
),
"preferences" => array(
"newsletter" => true,
"privacy_policy" => true
),
"ip_address" => "127.0.0.1"
);
$req = curl_init();
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/beta/consent');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
curl_setopt($req, CURLOPT_POST, true);
curl_setopt($req, CURLOPT_POSTFIELDS, json_encode($consent_data));
$response = curl_exec($req);
Antwort:
{
"id": "7abe5f70-22e4-4181-878c-9f931034fab5",
"timestamp": "2018-06-08T08:25:30.395Z",
"subject_id": "J02eZvKYlo2ClwuJ1"
}
GET /beta/consent
$req = curl_init();
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/beta/consent');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
$response = curl_exec($req);
Antwort:
[{
"id": "b04c4b2b-80b7-439f-8997-ade3d35cbb95",
"timestamp": "2018-06-04T08:11:34.000+00:00",
"owner": "12345",
"source": "private",
"subject": {
"id": "0e371678-634a-4016-83ce-9b7c36f828e6",
"email": "83ce_634a_4016_9b7c36f828e6_0e371678@example.com",
"first_name": "Kianna",
"last_name": "Fahey",
"full_name": "Kianna Fahey",
"verified": false
},
"preferences": {
"newsletter": false
},
"ip_address": "79.42.49.139"
}, {
"id": "ee6644ea-08e9-4aaa-a7a9-18602731a123",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "12345",
"source": "public",
"subject": {
"id": "8c6d1b71-0908-4604-948f-2f706500b5b1",
"email": "0908.8c6d1b71.2f706500b5b1.4604.948f@example.org",
"first_name": "Eleanora",
"last_name": "Adams",
"full_name": "Eleanora Adams",
"verified": false
},
"preferences": {
"newsletter": true
},
"ip_address": null
}, {
"id": "bf12770e-840a-40cd-ab79-5d88576b6b73",
"timestamp": "2018-06-04T08:11:33.000+00:00",
"owner": "12345",
"source": "public",
"subject": {
"id": "d4f24d92-56c2-4372-8696-fec829da5ccc",
"email": "fec829da5ccc.8696.4372.56c2.d4f24d92@example.com",
"first_name": "Hank",
"last_name": "Klein",
"full_name": "Hank Klein",
"verified": false
},
"preferences": {
"newsletter": false
},
"ip_address": "79.42.49.139"
}]
GET /beta/consent/:id
$req = curl_init();
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/beta/consent/7abe5f70-22e4-4181-878c-9f931034fab5');
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
$response = curl_exec($req);
Antwort:
{
"id": "1dbbc6f8-6a57-4407-b687-d6e6f818742f",
"timestamp": "2018-05-04T14:52:26Z",
"owner": "1",
"subject": {
"id": "custom_subject_id",
"owner_id": "1",
"email": "subject@example.com",
"first_name": "John",
"last_name": "Doe",
"verified": false
},
"preferences": {
"privacy_policy": true,
"newsletter": false
},
"legal_notices": [{
"identifier": "privacy_policy",
"version": 123
}, {
"identifier": "term",
"version": 123
}],
"proofs": [{
"content": "proof_1",
"form": "proof_1 form"
}, {
"content": "proof_2",
"form": "proof_2 form"
}],
"ip_address": null
}
POST /subjects
$ curl https://consent.iubenda.com/subjects \
-X POST \
-H "ApiKey: your-private-api-key" \
-H "Content-Type: application/json" \
-d '{ "email": "john@example.com", "first_name": "John", "last_name": "Doe" }'
Antwort:
{
"id": "9f5a50f6-052c-4595-8bc4-760dc05d86ba",
"timestamp": "2018-06-06T11:05:41.600Z"
}
GET /subjects
$ curl https://consent.iubenda.com/subjects \
-X GET \
-H "ApiKey: your-private-api-key" \
-H "Content-Type: application/json"
Antwort:
[{
"id": "d2a55da5-0777-4625-94bd-b69948703e71",
"owner_id": "131132",
"email": "rath.jorge@example.com",
"first_name": "Jorge",
"last_name": "Rath",
"full_name": "Jorge Rath",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "b75c6d0c-550f-4f84-9e92-2f351d481220",
"owner_id": "131132",
"email": "aufderhar_alfonso@example.net",
"first_name": "Alfonso",
"last_name": "Aufderhar",
"full_name": "Alfonso Aufderhar",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "a9c8c720-cb07-4a52-81c3-7cb7fb4f877e",
"owner_id": "131132",
"email": "vandervort.furman@example.net",
"first_name": "Furman",
"last_name": "Vandervort",
"full_name": "Furman Vandervort",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "6ccc2802-3bcb-49af-a4c5-14dc89ba94bc",
"owner_id": "131132",
"email": "alvis.rohan@example.org",
"first_name": "Alvis",
"last_name": "Rohan",
"full_name": "Alvis Rohan",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "5900f856-619e-42b0-92a5-b2ebd016ac01",
"owner_id": "131132",
"email": "brown.marlee@example.net",
"first_name": "Marlee",
"last_name": "Brown",
"full_name": "Marlee Brown",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}]
GET /subjects/:id
$ curl https://consent.iubenda.com/subjects/9f5a50f6-052c-4595-8bc4-760dc05d86ba \
-H "ApiKey: your-private-api-key"
Antwort:
{
"id": "9f5a50f6-052c-4595-8bc4-760dc05d86ba",
"owner_id": "123",
"email": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"full_name": null,
"preferences": null,
"verified": false,
"timestamp": "2018-06-06T11:05:41+00:00"
}
PATCH /subjects/:id
$ curl https://consent.iubenda.com/subjects/9f5a50f6-052c-4595-8bc4-760dc05d86ba \
-X PATCH \
-H "ApiKey: your-private-api-key" \
-H "Content-Type: application/json" \
-d '{ "email": "mary@example.com", "first_name": "Mary", "last_name": "Doe" }'
Antwort:
{
"id": "9f5a50f6-052c-4595-8bc4-760dc05d86ba",
"timestamp": "2018-06-06T11:05:41.000+00:00"
}
GET /beta/subjects
$ curl https://consent.iubenda.com/beta/subjects \
-X GET \
-H "ApiKey: your-private-api-key" \
-H "Content-Type: application/json"
Antwort:
[{
"id": "d2a55da5-0777-4625-94bd-b69948703e71",
"owner_id": "131132",
"email": "rath.jorge@example.com",
"first_name": "Jorge",
"last_name": "Rath",
"full_name": "Jorge Rath",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "b75c6d0c-550f-4f84-9e92-2f351d481220",
"owner_id": "131132",
"email": "aufderhar_alfonso@example.net",
"first_name": "Alfonso",
"last_name": "Aufderhar",
"full_name": "Alfonso Aufderhar",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "a9c8c720-cb07-4a52-81c3-7cb7fb4f877e",
"owner_id": "131132",
"email": "vandervort.furman@example.net",
"first_name": "Furman",
"last_name": "Vandervort",
"full_name": "Furman Vandervort",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "6ccc2802-3bcb-49af-a4c5-14dc89ba94bc",
"owner_id": "131132",
"email": "alvis.rohan@example.org",
"first_name": "Alvis",
"last_name": "Rohan",
"full_name": "Alvis Rohan",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "5900f856-619e-42b0-92a5-b2ebd016ac01",
"owner_id": "131132",
"email": "brown.marlee@example.net",
"first_name": "Marlee",
"last_name": "Brown",
"full_name": "Marlee Brown",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}]
GET /beta/subjects/:id
$ curl https://consent.iubenda.com/beta/subjects/9f5a50f6-052c-4595-8bc4-760dc05d86ba \
-H "ApiKey: your-private-api-key"
Antwort:
{
"id": "9f5a50f6-052c-4595-8bc4-760dc05d86ba",
"owner_id": "123",
"email": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"full_name": null,
"preferences": null,
"verified": false,
"timestamp": "2018-06-06T11:05:41+00:00"
}
PATCH /beta/subjects/:id
$ curl https://consent.iubenda.com/beta/subjects/9f5a50f6-052c-4595-8bc4-760dc05d86ba \
-X PATCH \
-H "ApiKey: your-private-api-key" \
-H "Content-Type: application/json" \
-d '{ "email": "mary@example.com", "first_name": "Mary", "last_name": "Doe" }'
Antwort:
{
"id": "9f5a50f6-052c-4595-8bc4-760dc05d86ba",
"timestamp": "2018-06-06T11:05:41.000+00:00"
}
POST /subjects
$subject_data = array(
"email" => "subject@example.com",
"first_name" => "John",
"last_name" => "Doe"
);
$req = curl_init();
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/subjects');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
curl_setopt($req, CURLOPT_POST, true);
curl_setopt($req, CURLOPT_POSTFIELDS, json_encode($subject_data));
$response = curl_exec($req);
Antwort:
{
"id": "df39c1bf-5f27-4c3a-bf94-64360cc7e4f8",
"timestamp": "2018-06-11T08:57:13.662Z"
}
GET /subjects
$subject_data = array(
"email" => "subject@example.com",
"first_name" => "John",
"last_name" => "Doe"
);
$req = curl_init();
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/subjects');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
curl_setopt($req, CURLOPT_POST, true);
curl_setopt($req, CURLOPT_POSTFIELDS, json_encode($subject_data));
$response = curl_exec($req);
Antwort:
[{
"id": "d2a55da5-0777-4625-94bd-b69948703e71",
"owner_id": "131132",
"email": "rath.jorge@example.com",
"first_name": "Jorge",
"last_name": "Rath",
"full_name": "Jorge Rath",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "b75c6d0c-550f-4f84-9e92-2f351d481220",
"owner_id": "131132",
"email": "aufderhar_alfonso@example.net",
"first_name": "Alfonso",
"last_name": "Aufderhar",
"full_name": "Alfonso Aufderhar",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "a9c8c720-cb07-4a52-81c3-7cb7fb4f877e",
"owner_id": "131132",
"email": "vandervort.furman@example.net",
"first_name": "Furman",
"last_name": "Vandervort",
"full_name": "Furman Vandervort",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "6ccc2802-3bcb-49af-a4c5-14dc89ba94bc",
"owner_id": "131132",
"email": "alvis.rohan@example.org",
"first_name": "Alvis",
"last_name": "Rohan",
"full_name": "Alvis Rohan",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "5900f856-619e-42b0-92a5-b2ebd016ac01",
"owner_id": "131132",
"email": "brown.marlee@example.net",
"first_name": "Marlee",
"last_name": "Brown",
"full_name": "Marlee Brown",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}]
GET /subjects/:id
$req = curl_init();
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/subjects/df39c1bf-5f27-4c3a-bf94-64360cc7e4f8');
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
$response = curl_exec($req);
Antwort:
{
"id": "9f5a50f6-052c-4595-8bc4-760dc05d86ba",
"owner_id": "123",
"email": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"full_name": null,
"preferences": null,
"verified": false,
"timestamp": "2018-06-06T11:05:41+00:00"
}
PATCH /subjects/:id
$subject_data = array(
"first_name" => "Mary"
);
$req = curl_init();
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/subjects/df39c1bf-5f27-4c3a-bf94-64360cc7e4f8');
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'PATCH');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
curl_setopt($req, CURLOPT_POSTFIELDS, json_encode($subject_data));
$response = curl_exec($req);
Antwort:
{
"id": "df39c1bf-5f27-4c3a-bf94-64360cc7e4f8",
"timestamp": "2018-06-11T08:57:13.000+00:00"
}
POST /beta/subjects
$subject_data = array(
"email" => "subject@example.com",
"first_name" => "John",
"last_name" => "Doe"
);
$req = curl_init();
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/beta/subjects');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
curl_setopt($req, CURLOPT_POST, true);
curl_setopt($req, CURLOPT_POSTFIELDS, json_encode($subject_data));
$response = curl_exec($req);
Antwort:
{
"id": "df39c1bf-5f27-4c3a-bf94-64360cc7e4f8",
"timestamp": "2018-06-11T08:57:13.662Z"
}
GET /beta/subjects
$subject_data = array(
"email" => "subject@example.com",
"first_name" => "John",
"last_name" => "Doe"
);
$req = curl_init();
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/beta/subjects');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
curl_setopt($req, CURLOPT_POST, true);
curl_setopt($req, CURLOPT_POSTFIELDS, json_encode($subject_data));
$response = curl_exec($req);
Antwort:
[{
"id": "d2a55da5-0777-4625-94bd-b69948703e71",
"owner_id": "131132",
"email": "rath.jorge@example.com",
"first_name": "Jorge",
"last_name": "Rath",
"full_name": "Jorge Rath",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "b75c6d0c-550f-4f84-9e92-2f351d481220",
"owner_id": "131132",
"email": "aufderhar_alfonso@example.net",
"first_name": "Alfonso",
"last_name": "Aufderhar",
"full_name": "Alfonso Aufderhar",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "a9c8c720-cb07-4a52-81c3-7cb7fb4f877e",
"owner_id": "131132",
"email": "vandervort.furman@example.net",
"first_name": "Furman",
"last_name": "Vandervort",
"full_name": "Furman Vandervort",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "6ccc2802-3bcb-49af-a4c5-14dc89ba94bc",
"owner_id": "131132",
"email": "alvis.rohan@example.org",
"first_name": "Alvis",
"last_name": "Rohan",
"full_name": "Alvis Rohan",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}, {
"id": "5900f856-619e-42b0-92a5-b2ebd016ac01",
"owner_id": "131132",
"email": "brown.marlee@example.net",
"first_name": "Marlee",
"last_name": "Brown",
"full_name": "Marlee Brown",
"preferences": null,
"verified": true,
"timestamp": "2018-09-12T16:22:21+00:00"
}]
GET /beta/subjects/:id
$req = curl_init();
$req = curl_init();
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/beta/subjects/df39c1bf-5f27-4c3a-bf94-64360cc7e4f8');
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
$response = curl_exec($req);
Antwort:
{
"id": "9f5a50f6-052c-4595-8bc4-760dc05d86ba",
"owner_id": "123",
"email": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"full_name": null,
"preferences": null,
"verified": false,
"timestamp": "2018-06-06T11:05:41+00:00"
}
PATCH /beta/subjects/:id
$subject_data = array(
"first_name" => "Mary"
);
$req = curl_init();
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/beta/subjects/df39c1bf-5f27-4c3a-bf94-64360cc7e4f8');
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'PATCH');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
curl_setopt($req, CURLOPT_POSTFIELDS, json_encode($subject_data));
$response = curl_exec($req);
Antwort:
{
"id": "df39c1bf-5f27-4c3a-bf94-64360cc7e4f8",
"timestamp": "2018-06-11T08:57:13.000+00:00"
}
POST /legal_notices
$ curl https://consent.iubenda.com/legal_notices \
-X POST \
-H "ApiKey: your-private-api-key" \
-H "Content-Type: application/json" \
-d '{ "identifier": "privacy_policy", "content": "privacy policy legal text" }'
Antwort:
{
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-06-06T15:56:10.090Z"
}
GET /legal_notices
$ curl https://consent.iubenda.com/legal_notices \
-H "ApiKey: your-private-api-key"
Antwort:
[{
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 20,
"timestamp": "2018-10-09T12:38:04Z",
"content": {
"en": "Et vinculum clam decerno arguo admoveo velum sponte tot suppellex venustas defendo dolor decumbo est.",
"it": "Collum tutis esse confugo porro urbs varius abscido turpis decor praesentium tardus voluptate fugit numquam."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 19,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Venia valde vel surculus capitulus adfectus patior comparo acsi cur vero super cursim.",
"it": "Consuasor arcesso conscendo crudelis cauda aer aut adeptio illo argentum comis subiungo subito colo."
}
}, {
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 18,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Ullus voco aufero speculum fugiat audacia laboriosam vilicus amita trans aut ut.",
"it": "Alo veritatis ipsa tristis cuius occaecati adflicto creta verecundia facere solvo despirmatio cupiditate crinis aqua bos."
}
}, {
"id": "0_privacy_policy",
"owner_id": "0",
"identifier": "privacy_policy",
"version": 17,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Confero succedo caelum adhaero quo vir deorsum quaerat utor sit ustulo cribro.",
"it": "Bibo cubitum unus est ambitus contego apparatus alo via abutor utroque xiphias voco."
}
}, {
"id": "0_privacy_policy",
"owner_id": "0",
"identifier": "privacy_policy",
"version": 16,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Qui porro culpo attero benevolentia aut sed sulum adfero artificiose adsidue tam amo validus vel spectaculum.",
"it": "Cerno ipsum fugit compello cursim ter surgo asporto debilito excepturi adversus facere."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 15,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Tunc timidus veritatis maiores advenio aperio testimonium defluo celo cuius adsuesco deripio.",
"it": "Depulso dignissimos vinitor curatio caelestis cedo et sum concedo id admoneo appositus."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 14,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Repellat mollitia desidero videlicet est textilis stips nisi aequus solum depromo agnitio usus.",
"it": "Vomito tonsor comitatus illum aut usitas laboriosam canonicus tepesco benigne confugo trado."
}
}, {
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 13,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Temperantia alias somniculosus absorbeo utique caecus terror demitto trucido desidero baiulus sublime.",
"it": "Perspiciatis at tredecim curriculum comprehendo deduco corrupti attonbitus barba cruentus communis comparo thorax cauda spero vito anser."
}
}, {
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 12,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Allatus cena surculus ventito ver adversus torrens demo venustas toties veritas qui cado vis.",
"it": "Talio avoco aptus compono et subiungo peior bellum depromo aureus torqueo adeptio nobis."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 11,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Aliquam cubicularis tergum utor cinis concido ratione vociferor uter deduco tertius verecundia alo claustrum sto vos aegrotatio.",
"it": "Corona ut comes sub coaegresco caute casus laboriosam tremo vulariter aegrotatio pauci callide assentator basium."
}
}]
GET /legal_notices/:identifier/:version
$ curl https://consent.iubenda.com/legal_notices/privacy_policy/1 \
-H "ApiKey: your-private-api-key"
Antwort:
{
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-06-06T15:56:10.000+00:00",
"content": "privacy policy legal text"
}
GET /legal_notices/:identifier
$ curl https://consent.iubenda.com/legal_notices/privacy_policy \
-H "ApiKey: your-private-api-key"
Antwort:
[{
"identifier": "privacy_policy",
"version": 3,
"timestamp": "2018-05-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}, {
"identifier": "privacy_policy",
"version": 2,
"timestamp": "2018-03-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}, {
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-01-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}]
Mit Limiten- und Paginierungsparametern:
$ curl https://consent.iubenda.com/legal_notices/privacy_policy?limit=20&starting_after=3 \
-H "ApiKey: your-private-api-key" \
-G
Antwort:
[{
"identifier": "privacy_policy",
"version": 2,
"timestamp": "2018-03-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}, {
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-01-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}]
POST /beta/legal_notices
$ curl https://consent.iubenda.com/beta/legal_notices \
-X POST \
-H "ApiKey: your-private-api-key" \
-H "Content-Type: application/json" \
-d '{ "identifier": "privacy_policy", "content": "privacy policy legal text" }'
Antwort:
{
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-06-06T15:56:10.090Z"
}
GET /beta/legal_notices
$ curl https://consent.iubenda.com/beta/legal_notices \
-H "ApiKey: your-private-api-key"
Antwort:
[{
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 20,
"timestamp": "2018-10-09T12:38:04Z",
"content": {
"en": "Et vinculum clam decerno arguo admoveo velum sponte tot suppellex venustas defendo dolor decumbo est.",
"it": "Collum tutis esse confugo porro urbs varius abscido turpis decor praesentium tardus voluptate fugit numquam."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 19,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Venia valde vel surculus capitulus adfectus patior comparo acsi cur vero super cursim.",
"it": "Consuasor arcesso conscendo crudelis cauda aer aut adeptio illo argentum comis subiungo subito colo."
}
}, {
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 18,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Ullus voco aufero speculum fugiat audacia laboriosam vilicus amita trans aut ut.",
"it": "Alo veritatis ipsa tristis cuius occaecati adflicto creta verecundia facere solvo despirmatio cupiditate crinis aqua bos."
}
}, {
"id": "0_privacy_policy",
"owner_id": "0",
"identifier": "privacy_policy",
"version": 17,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Confero succedo caelum adhaero quo vir deorsum quaerat utor sit ustulo cribro.",
"it": "Bibo cubitum unus est ambitus contego apparatus alo via abutor utroque xiphias voco."
}
}, {
"id": "0_privacy_policy",
"owner_id": "0",
"identifier": "privacy_policy",
"version": 16,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Qui porro culpo attero benevolentia aut sed sulum adfero artificiose adsidue tam amo validus vel spectaculum.",
"it": "Cerno ipsum fugit compello cursim ter surgo asporto debilito excepturi adversus facere."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 15,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Tunc timidus veritatis maiores advenio aperio testimonium defluo celo cuius adsuesco deripio.",
"it": "Depulso dignissimos vinitor curatio caelestis cedo et sum concedo id admoneo appositus."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 14,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Repellat mollitia desidero videlicet est textilis stips nisi aequus solum depromo agnitio usus.",
"it": "Vomito tonsor comitatus illum aut usitas laboriosam canonicus tepesco benigne confugo trado."
}
}, {
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 13,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Temperantia alias somniculosus absorbeo utique caecus terror demitto trucido desidero baiulus sublime.",
"it": "Perspiciatis at tredecim curriculum comprehendo deduco corrupti attonbitus barba cruentus communis comparo thorax cauda spero vito anser."
}
}, {
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 12,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Allatus cena surculus ventito ver adversus torrens demo venustas toties veritas qui cado vis.",
"it": "Talio avoco aptus compono et subiungo peior bellum depromo aureus torqueo adeptio nobis."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 11,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Aliquam cubicularis tergum utor cinis concido ratione vociferor uter deduco tertius verecundia alo claustrum sto vos aegrotatio.",
"it": "Corona ut comes sub coaegresco caute casus laboriosam tremo vulariter aegrotatio pauci callide assentator basium."
}
}]
GET /beta/legal_notices/:identifier/:version
$ curl https://consent.iubenda.com/beta/legal_notices/privacy_policy/1 \
-H "ApiKey: your-private-api-key"
Antwort:
{
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-06-06T15:56:10.000+00:00",
"content": "privacy policy legal text"
}
GET /beta/legal_notices/:identifier
$ curl https://consent.iubenda.com/beta/legal_notices/privacy_policy \
-H "ApiKey: your-private-api-key"
Antwort:
[{
"identifier": "privacy_policy",
"version": 3,
"timestamp": "2018-05-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}, {
"identifier": "privacy_policy",
"version": 2,
"timestamp": "2018-03-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}, {
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-01-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}]
Mit Limiten- und Paginierungsparametern:
$ curl https://consent.iubenda.com/beta/legal_notices/privacy_policy?limit=20&starting_after=3 \
-H "ApiKey: your-private-api-key" \
-G
Antwort:
[{
"identifier": "privacy_policy",
"version": 2,
"timestamp": "2018-03-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}, {
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-01-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}]
POST /legal_notices
$legal_notice_data = array(
"identifier" => "privacy_policy",
"content" => "privacy policy legal text"
);
$req = curl_init();
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/legal_notices');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
curl_setopt($req, CURLOPT_POST, true);
curl_setopt($req, CURLOPT_POSTFIELDS, json_encode($legal_notice_data));
$response = curl_exec($req);
Antwort:
{
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-06-11T10:26:00.413Z"
}
GET /legal_notices
$legal_notice_data = array(
"identifier" => "privacy_policy",
"content" => "privacy policy legal text"
);
$req = curl_init();
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/legal_notices');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
curl_setopt($req, CURLOPT_POST, true);
curl_setopt($req, CURLOPT_POSTFIELDS, json_encode($legal_notice_data));
$response = curl_exec($req);
Antwort:
[{
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 20,
"timestamp": "2018-10-09T12:38:04Z",
"content": {
"en": "Et vinculum clam decerno arguo admoveo velum sponte tot suppellex venustas defendo dolor decumbo est.",
"it": "Collum tutis esse confugo porro urbs varius abscido turpis decor praesentium tardus voluptate fugit numquam."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 19,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Venia valde vel surculus capitulus adfectus patior comparo acsi cur vero super cursim.",
"it": "Consuasor arcesso conscendo crudelis cauda aer aut adeptio illo argentum comis subiungo subito colo."
}
}, {
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 18,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Ullus voco aufero speculum fugiat audacia laboriosam vilicus amita trans aut ut.",
"it": "Alo veritatis ipsa tristis cuius occaecati adflicto creta verecundia facere solvo despirmatio cupiditate crinis aqua bos."
}
}, {
"id": "0_privacy_policy",
"owner_id": "0",
"identifier": "privacy_policy",
"version": 17,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Confero succedo caelum adhaero quo vir deorsum quaerat utor sit ustulo cribro.",
"it": "Bibo cubitum unus est ambitus contego apparatus alo via abutor utroque xiphias voco."
}
}, {
"id": "0_privacy_policy",
"owner_id": "0",
"identifier": "privacy_policy",
"version": 16,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Qui porro culpo attero benevolentia aut sed sulum adfero artificiose adsidue tam amo validus vel spectaculum.",
"it": "Cerno ipsum fugit compello cursim ter surgo asporto debilito excepturi adversus facere."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 15,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Tunc timidus veritatis maiores advenio aperio testimonium defluo celo cuius adsuesco deripio.",
"it": "Depulso dignissimos vinitor curatio caelestis cedo et sum concedo id admoneo appositus."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 14,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Repellat mollitia desidero videlicet est textilis stips nisi aequus solum depromo agnitio usus.",
"it": "Vomito tonsor comitatus illum aut usitas laboriosam canonicus tepesco benigne confugo trado."
}
}, {
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 13,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Temperantia alias somniculosus absorbeo utique caecus terror demitto trucido desidero baiulus sublime.",
"it": "Perspiciatis at tredecim curriculum comprehendo deduco corrupti attonbitus barba cruentus communis comparo thorax cauda spero vito anser."
}
}, {
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 12,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Allatus cena surculus ventito ver adversus torrens demo venustas toties veritas qui cado vis.",
"it": "Talio avoco aptus compono et subiungo peior bellum depromo aureus torqueo adeptio nobis."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 11,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Aliquam cubicularis tergum utor cinis concido ratione vociferor uter deduco tertius verecundia alo claustrum sto vos aegrotatio.",
"it": "Corona ut comes sub coaegresco caute casus laboriosam tremo vulariter aegrotatio pauci callide assentator basium."
}
}]
GET /legal_notices/:identifier/:version
$req = curl_init();
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/legal_notices/privacy_policy/1');
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
$response = curl_exec($req);
Antwort:
{
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-06-11T10:26:00.000+00:00",
"content": "privacy policy legal text"
}
GET /legal_notices/:identifier
$req = curl_init();
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/legal_notices/privacy_policy');
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
$response = curl_exec($req);
Antwort:
[{
"identifier": "privacy_policy",
"version": 3,
"timestamp": "2018-05-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}, {
"identifier": "privacy_policy",
"version": 2,
"timestamp": "2018-03-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}, {
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-01-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}]
Mit Limiten- und Paginierungsparametern:
$req = curl_init();
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/legal_notices/privacy_policy?limit=3&starting_after=4');
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
$response = curl_exec($req);
Antwort:
[{
"identifier": "privacy_policy",
"version": 2,
"timestamp": "2018-03-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}, {
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-01-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}]
POST /beta/legal_notices
$legal_notice_data = array(
"identifier" => "privacy_policy",
"content" => "privacy policy legal text"
);
$req = curl_init();
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/beta/legal_notices');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
curl_setopt($req, CURLOPT_POST, true);
curl_setopt($req, CURLOPT_POSTFIELDS, json_encode($legal_notice_data));
$response = curl_exec($req);
Antwort:
{
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-06-11T10:26:00.413Z"
}
GET /beta/legal_notices
$legal_notice_data = array(
"identifier" => "privacy_policy",
"content" => "privacy policy legal text"
);
$req = curl_init();
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/beta/legal_notices');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
curl_setopt($req, CURLOPT_POST, true);
curl_setopt($req, CURLOPT_POSTFIELDS, json_encode($legal_notice_data));
$response = curl_exec($req);
Antwort:
[{
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 20,
"timestamp": "2018-10-09T12:38:04Z",
"content": {
"en": "Et vinculum clam decerno arguo admoveo velum sponte tot suppellex venustas defendo dolor decumbo est.",
"it": "Collum tutis esse confugo porro urbs varius abscido turpis decor praesentium tardus voluptate fugit numquam."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 19,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Venia valde vel surculus capitulus adfectus patior comparo acsi cur vero super cursim.",
"it": "Consuasor arcesso conscendo crudelis cauda aer aut adeptio illo argentum comis subiungo subito colo."
}
}, {
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 18,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Ullus voco aufero speculum fugiat audacia laboriosam vilicus amita trans aut ut.",
"it": "Alo veritatis ipsa tristis cuius occaecati adflicto creta verecundia facere solvo despirmatio cupiditate crinis aqua bos."
}
}, {
"id": "0_privacy_policy",
"owner_id": "0",
"identifier": "privacy_policy",
"version": 17,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Confero succedo caelum adhaero quo vir deorsum quaerat utor sit ustulo cribro.",
"it": "Bibo cubitum unus est ambitus contego apparatus alo via abutor utroque xiphias voco."
}
}, {
"id": "0_privacy_policy",
"owner_id": "0",
"identifier": "privacy_policy",
"version": 16,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Qui porro culpo attero benevolentia aut sed sulum adfero artificiose adsidue tam amo validus vel spectaculum.",
"it": "Cerno ipsum fugit compello cursim ter surgo asporto debilito excepturi adversus facere."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 15,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Tunc timidus veritatis maiores advenio aperio testimonium defluo celo cuius adsuesco deripio.",
"it": "Depulso dignissimos vinitor curatio caelestis cedo et sum concedo id admoneo appositus."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 14,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Repellat mollitia desidero videlicet est textilis stips nisi aequus solum depromo agnitio usus.",
"it": "Vomito tonsor comitatus illum aut usitas laboriosam canonicus tepesco benigne confugo trado."
}
}, {
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 13,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Temperantia alias somniculosus absorbeo utique caecus terror demitto trucido desidero baiulus sublime.",
"it": "Perspiciatis at tredecim curriculum comprehendo deduco corrupti attonbitus barba cruentus communis comparo thorax cauda spero vito anser."
}
}, {
"id": "0_cookie_policy",
"owner_id": "0",
"identifier": "cookie_policy",
"version": 12,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Allatus cena surculus ventito ver adversus torrens demo venustas toties veritas qui cado vis.",
"it": "Talio avoco aptus compono et subiungo peior bellum depromo aureus torqueo adeptio nobis."
}
}, {
"id": "0_term",
"owner_id": "0",
"identifier": "term",
"version": 11,
"timestamp": "2018-10-09T12:38:03Z",
"content": {
"en": "Aliquam cubicularis tergum utor cinis concido ratione vociferor uter deduco tertius verecundia alo claustrum sto vos aegrotatio.",
"it": "Corona ut comes sub coaegresco caute casus laboriosam tremo vulariter aegrotatio pauci callide assentator basium."
}
}]
GET /beta/legal_notices/:identifier/:version
$req = curl_init();
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/beta/legal_notices/privacy_policy/1');
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
$response = curl_exec($req);
Antwort:
{
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-06-11T10:26:00.000+00:00",
"content": "privacy policy legal text"
}
GET /beta/legal_notices/:identifier
$req = curl_init();
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/beta/legal_notices/privacy_policy');
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
$response = curl_exec($req);
Antwort:
[{
"identifier": "privacy_policy",
"version": 3,
"timestamp": "2018-05-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}, {
"identifier": "privacy_policy",
"version": 2,
"timestamp": "2018-03-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}, {
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-01-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}]
Mit Limiten- und Paginierungsparametern:
$req = curl_init();
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_URL, 'https://consent.iubenda.com/beta/legal_notices/privacy_policy?limit=3&starting_after=4');
curl_setopt($req, CURLOPT_HTTPHEADER, array(
'ApiKey: your-secret-api-key',
'Content-Type: application/json'
));
$response = curl_exec($req);
Antwort:
[{
"identifier": "privacy_policy",
"version": 2,
"timestamp": "2018-03-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}, {
"identifier": "privacy_policy",
"version": 1,
"timestamp": "2018-01-16T13:55:57Z",
"id": "1234_privacy_policy",
"owner_id": "1234",
"content": "privacy policy content"
}]