All users legal bases for user data processing using GET.
For every API request you make, you'll need to present the API access key in the HTTP Header as X-API-Key to be authenticated.
Name | Required | Value | Description |
---|---|---|---|
limit | optional | number | Amount of results (default: 75) (maximum: 250) |
page | optional | number | Page to show (default: 1) |
since_id | optional | number | Restrict results to after the specified ID. |
created_at_min | optional | string | Show items created after date (format: yyyy-mm-dd OR yyyy-mm-dd hh:mm:ss) |
created_at_max | optional | string | Show items created before date (format: yyyy-mm-dd OR yyyy-mm-dd hh:mm:ss) |
updated_at_min | optional | string | Show items last updated after date (format: yyyy-mm-dd OR yyyy-mm-dd hh:mm:ss) |
updated_at_max | optional | string | Show items last updated before date (format: yyyy-mm-dd OR yyyy-mm-dd hh:mm:ss) |
$request_url = 'https://api.frontcore.com/v2/privacy/users/legalbases';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'X-API-Key: {your-api-key}',
'Accept: application/json',
));
$result = curl_exec($ch);
curl_close($ch);
If the method is successful it responds with an JSON structure, as it is shown below.
[ { "id": 2911, "idLead": null, "consent": { "id": 146, "title": "Yes, I want e-mail about new courses once a week", "version": 1, "created_at": "2020-04-27T22:27:16+02:00", "updated_at": "2020-04-27T22:27:16+02:00", "deleted_at": null }, "legal_basis": { "id": 1, "title": "Consent" }, "purpose": { "id": 112, "title": "Marketing", "created_at": "2020-04-27T22:16:58+02:00", "updated_at": null, "deleted_at": null }, "source": { "id": 3, "title": "Incoming request" }, "comment": "Consent given via registration form", "created_at": "2020-04-27T22:34:58+02:00", "updated_at": "2023-08-28T02:41:08+02:00", "deleted_at": null, "user": { "id": 154420, "firstname": "Lars", "lastname": "Larsen", "email": "lars@eksemel.ek", "username": "lars@eksemel.ek", "phone": "21212121", "company": "ABC AS", "orgnr": "", "position": "", "department": null, "legaldepartment": null, "date_of_birth": "1992-05-12", "invoice_address": { "address": "Veien 2", "address_2": "", "address_3": "", "zipcode": "3120", "city": "Oslo", "invoice_phone": "" }, "home_address": { "address": "Veien 2", "address_2": "", "address_3": "", "zipcode": "3120", "city": "Oslo" }, "work_address": { "address": "", "address_2": "", "address_3": "", "zipcode": "", "city": "" }, "external_id": null, "customer": { "id": 32714, "title": "Beste Kunde AS", "department": "", "phone": "", "fax": "", "email": "", "webaddress": "", "orgnr": "85454545", "invoice_email": "", "customer_reference_id": "", "customer_reference": "Per Pedersen", "note": "", "turnover": "", "idParentCustomer": null, "invoice_method": "electronic", "country": { "id": 159, "title": "Norway", "code": "NO" }, "status": "Deactivated", "type": "Company", "duedate_days": 10, "seller": null, "invoice_address": { "address": "Kundeveien 10", "address_2": "", "address_3": "", "zipcode": "2130", "city": "Oslo" }, "post_address": { "address": "", "address_2": "", "address_3": "", "zipcode": "", "city": "" }, "visit_address": { "address": "", "address_2": "", "address_3": "", "zipcode": "", "city": "" }, "custom_properties": null, "created_at": "2017-03-31T20:27:41+02:00", "updated_at": "2024-12-18T08:25:22+01:00" }, "created_at": "2017-03-31T20:27:04+02:00", "updated_at": "2024-12-05T03:22:56+01:00" }, "customer": { "id": 32714, "title": "Beste Kunde AS", "department": "", "phone": "", "fax": "", "email": "", "webaddress": "", "orgnr": "85454545", "invoice_email": "", "customer_reference_id": "", "customer_reference": "Per Pedersen", "note": "", "turnover": "", "idParentCustomer": null, "idType": 1, "idStatus": 1, "idSeller": null, "duedate_days": "10", "type": "Company", "idAgreementType": "0", "address": "", "address_2": "", "address_3": "", "place": "", "zipcode": "", "idCountry": 159, "invoice_address": "Kundeveien 10", "invoice_address_2": "", "invoice_address_3": "", "invoice_place": "Oslo", "invoice_zipcode": "2130", "email_invoice": "", "office_address": "", "office_address_2": "", "office_address_3": "", "office_place": "", "office_idPlace": "637", "office_zipcode": "", "default_idContact": "0", "default_idContactBooker": "0", "idInvoiceMethod": 1, "emails_disabled": false, "merged_at": null, "has_booking_module": false, "booking_module_title": "" }, "userinstance": { "id": 511921, "booker_name": "", "booker_email": "", "booker_phone": "", "booker_language_id": null, "status_updated_at": null } } ]
Unsuccessful response sample:
{ "error": "Wrong API Key" }