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>
POSThttps://lucidace.com/v1/privacy/lookup

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/privacy/lookup" \
  -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 and found, or null and no_match
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).
404
POSThttps://lucidace.com/v1/privacy/requests

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/privacy/requests" \
  -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, 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.
404
GEThttps://lucidace.com/v1/privacy/requests/{id}

Parameters

idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/privacy/requests/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

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

Same as 200 · POST /v1/privacy/requests

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

Parameters

idstringpathrequired

Code samples

cURL
curl -X POST "https://lucidace.com/v1/privacy/requests/{id}/cancel"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 The request: cancelled when it had not started, else its final status

Same as 200 · POST /v1/privacy/requests

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

The project's Cookie Munch link. **Key for rights requests:** a Cookie Munch executor (or any erasure handler) needs only a project secret key holding `privacy:execute`, minted with an account key: `POST /v1/projects/{project_id}/keys {"kind":"secret","name":"erasure","scopes":["privacy:execute"]}`. It reaches the `/privacy/*` rights routes and person erasure of this project, nothing else; do not use an `admin` key for this.

Parameters

project_idstringpathrequired

Code samples

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

Responses

200 {linked_sites: [{cbid, link_id, linked_at}], partner_enabled, erasure_path: cookiemunch|webhook_source|both|none, completion: {configured, url}, next_step}; next_step is the call to make next, or null when everything is wired
404
GEThttps://lucidace.com/v1/projects/{project_id}/dsar-exportsScope admin

Parameters

project_idstringpathrequired
limitintegerquery
cursorstringquery

Code samples

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

Responses

200
Example
{
  "data": [
    {
      "completed_at": "2024-01-01T00:00:00Z",
      "created_at": "2024-01-01T00:00:00Z",
      "error": "string",
      "expires_at": "2024-01-01T00:00:00Z",
      "id": "string",
      "person_id": "string",
      "size_bytes": 0,
      "status": "string",
      "download_url": "string"
    }
  ],
  "next_cursor": "string"
}
Schema
dataExportView[]required
Show child parameters
completed_atstring
created_atstringrequired
errorstring
expires_atstring
idstringrequired
person_idstringrequired
size_bytesinteger
statusstringrequired
pending | running | done | failed
download_urlstring
Present once the export is done and not expired.
next_cursorstring
404
GEThttps://lucidace.com/v1/projects/{project_id}/dsar-exports/{id}Scope admin

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

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

Responses

200
Example
{
  "completed_at": "2024-01-01T00:00:00Z",
  "created_at": "2024-01-01T00:00:00Z",
  "error": "string",
  "expires_at": "2024-01-01T00:00:00Z",
  "id": "string",
  "person_id": "string",
  "size_bytes": 0,
  "status": "string",
  "download_url": "string"
}
Schema
completed_atstring
created_atstringrequired
errorstring
expires_atstring
idstringrequired
person_idstringrequired
size_bytesinteger
statusstringrequired
pending | running | done | failed
download_urlstring
Present once the export is done and not expired.
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/dsar-exports/{id}Scope admin

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/dsar-exports/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204 The export row and its stored bundle are gone
404
GEThttps://lucidace.com/v1/projects/{project_id}/dsar-exports/{id}/downloadScope admin

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

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

Responses

200 The JSON bundle (attachment)
404 Unknown, not ready or expired
POSThttps://lucidace.com/v1/projects/{project_id}/persons/{id}/exportScope admin

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/persons/{id}/export"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

202 Export queued; poll the export, then follow download_url

Same as 200 · GET /v1/projects/{project_id}/dsar-exports/{id}

404
503
GEThttps://lucidace.com/v1/projects/{project_id}/privacy/completion

Parameters

project_idstringpathrequired

Code samples

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

Responses

200 never the secret
Example
{
  "configured": true,
  "last_signed_completion_at": "2024-01-01T00:00:00Z",
  "url": "string"
}
Schema
configuredbooleanrequired
Whether a URL and secret are stored (signed completions are sent).
last_signed_completion_atstring
When a signed completion last reached Cookie Munch.
urlstring
The connection's completionUrl, or null when none is set.
404
PUThttps://lucidace.com/v1/projects/{project_id}/privacy/completion

Parameters

project_idstringpathrequired

Request body

application/json
secretstringrequired
The connection's completionSecret (whsec_..., base64 after the prefix).
urlstringrequired
The connection's completionUrl (https).
{
  "secret": "string",
  "url": "string"
}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/privacy/completion" \
  -H "Authorization: Bearer $LUCIDACE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"secret":"string","url":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 the secret is stored sealed and never returned

Same as 200 · GET /v1/projects/{project_id}/privacy/completion

400
404

Updated