privacy

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-privacy"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/c9b11986-fb9d-4b39-b81d-91157ac41730/social-card.svg?v=3e7ae33eec8b" alt="privacy" width="600" height="315"></a>
DELETEhttps://lucidace.com/v1/projects/{project_id}/privacy/completion

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/privacy/completion" \
  -H "Authorization: Bearer $LUCIDACE_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204 No signed completion is sent any more
404
POSThttps://lucidace.com/v1/projects/{project_id}/privacy/lookup

Parameters

project_idstringpathrequired

Request body

application/json
emailstring
Older single-email form.
emailVerifiedboolean
emailsstring[]
identityLookupIdentity
Show child parameters
extstring
Also matched against $cm_subject_id, then distinct id. canary:<hex> marks Cookie Munch's canary.
issstring
substring
Matched against $cm_subject_id, then distinct id.
{
  "email": "string",
  "emailVerified": true,
  "emails": [
    "string"
  ],
  "identity": {
    "ext": "string",
    "iss": "string",
    "sub": "string"
  }
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/privacy/lookup" \
  -H "Authorization: Bearer $LUCIDACE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"string","emailVerified":true,"emails":["string"],"identity":{"ext":"string","iss":"string","sub":"string"}}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 subjectId (+ subjectIds when several persons match) and found, or null and no_match. identity.sub and identity.ext are matched against the person property $cm_subject_id (set it with identify(userId, { $cm_subject_id: await CookieMunch.getSubjectId() })), then distinct id, then email (only when emailVerified).
Example
{
  "status": "string",
  "subjectId": "string",
  "subjectIds": [
    "string"
  ]
}
Schema
statusstringrequired
found or no_match.
subjectIdstring
The (first) matching subject, null when nothing matched.
subjectIdsarray
Every match, present only when several persons matched (project executor).
400
404
POSThttps://lucidace.com/v1/projects/{project_id}/privacy/requests

Parameters

project_idstringpathrequired

Request body

application/json
caseIdstring
Idempotency key: the same caseId + type answers with the same request.
executeAfterstring
Run a deletion or closure at this time, not now.
subjectIdstringrequired
A user id from a lookup, or the canary's canary_<hex>.
typestringrequired
access|export, deletion|erase|erasure, closure, restriction or rectification.
{
  "caseId": "string",
  "executeAfter": "2024-01-01T00:00:00Z",
  "subjectId": "string",
  "type": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/privacy/requests" \
  -H "Authorization: Bearer $LUCIDACE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"caseId":"string","executeAfter":"2024-01-01T00:00:00Z","subjectId":"string","type":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 {id, type, canonicalType, status, eta?}; a deletion with a future executeAfter is scheduled
Example
{
  "canonicalType": "string",
  "detail": "string",
  "eta": "2024-01-01T00:00:00Z",
  "id": "string",
  "result": {},
  "status": "string",
  "type": "string"
}
Schema
canonicalTypestring
access, deletion, closure, restriction or rectification (project executor).
detailstring
etastring
When a scheduled request runs.
idstringrequired
resultobject
The export of a completed access request.
statusstringrequired
processing, scheduled, completed, rejected, cancelled or no_match.
typestringrequired
The type as opened.
400
404
409
GEThttps://lucidace.com/v1/projects/{project_id}/privacy/requests/{id}

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/privacy/requests/{id}" \
  -H "Authorization: Bearer $LUCIDACE_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 {id, type, canonicalType, status, detail?, eta?, result?}

Same as 200 · POST /v1/projects/{project_id}/privacy/requests

404
POSThttps://lucidace.com/v1/projects/{project_id}/privacy/requests/{id}/cancel

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/privacy/requests/{id}/cancel" \
  -H "Authorization: Bearer $LUCIDACE_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 cancelled when it had not started, else its current status

Same as 200 · POST /v1/projects/{project_id}/privacy/requests

404
POSThttps://lucidace.com/v1/projects/{project_id}/privacy/requests/{id}/run

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/privacy/requests/{id}/run" \
  -H "Authorization: Bearer $LUCIDACE_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Runs a scheduled erasure whose executeAfter has passed; otherwise answers as the GET does

Same as 200 · POST /v1/projects/{project_id}/privacy/requests

404
GEThttps://lucidace.com/v1/projects/{project_id}/retentionScope settings:read

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/retention"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "audit_days": 0,
  "export_days": 0,
  "person_days": 0
}
Schema
audit_daysinteger
Audit entries of the project older than this are purged (30 to 3650; None keeps them).
export_daysintegerrequired
Days a finished DSAR export stays downloadable.
person_daysinteger
Persons with no event for this many days are deleted (None keeps them).
404
PUThttps://lucidace.com/v1/projects/{project_id}/retentionScope admin

Parameters

project_idstringpathrequired

Request body

application/json
audit_daysinteger
Audit entries of the project older than this are purged (30 to 3650; None keeps them).
export_daysintegerrequired
Days a finished DSAR export stays downloadable.
person_daysinteger
Persons with no event for this many days are deleted (None keeps them).
{
  "audit_days": 0,
  "export_days": 0,
  "person_days": 0
}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/retention" \
  -H "Content-Type: application/json" \
  -d '{"audit_days":0,"export_days":0,"person_days":0}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
404
Updated