Zum Inhalt springen

GDPR search — find all stored data for an email

POST
/recipients/gdpr-search
Code sample: Shell / cURL
curl --request POST \
--url https://rocketem.fotone.io/api/v2/recipients/gdpr-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "email": "hello@example.com" }'

Required scope: recipients:read_pii

Searches all storage locations (recipients, sends, events, tracking, blacklist, DSN bounces, test recipients, shop data, custom tables) for any data associated with the given email. Use this before DELETE /recipients to see what will be affected.

Does not modify any data. Requires recipients:read_pii scope.

Media typeapplication/json
object
email
required
string format: email

Example generated

{
"email": "hello@example.com"
}

Search results

Media typeapplication/json
object
data
object
email_hash
string
found

Whether any data was found

boolean
total_records

Total number of records across all tables

integer
recipients

Exists in the recipient list

boolean
sends

Number of send records

integer
events

Number of event/tracking records

integer
blacklist

Blacklist reason or null

string
nullable
dsn

Bounce type or null

string
nullable
test_recipients
integer
import_errors

Rejected import rows naming this email (error lists, deleted 30 days after the import)

integer
shop_recipients
integer
custom_tables
Array<object>
object
table
string
count
integer
consent_log

Consent log entries (newsletter signups, DOI clicks, tracking consent history)

integer
other_tables

Further organisation tables that carry the address (legacy tables, automation runs)

Array<object>
object
table
string
count
integer
incomplete

Storage locations the search could not check; empty when every location answered

Array<string>
deletion_record

Present only if a prior GDPR deletion exists for this email. Proves the email was deleted — useful for responding to “did you really delete my data?” queries.

object
action
string
Allowed values: delete
deleted_at
string format: date-time
source

Api/ui/unknown

string
api_token_label
string
nullable
user_name
string
nullable
rows_deleted
integer
nullable
rows_anonymized
integer
nullable
legal_block

False when deleted with block=false: import, API and manual entry may add the address again

boolean
lifted_by_signup_at

Set when the person signed up again themselves and confirmed; the block of this deletion is lifted since then

string format: date-time
nullable
converted_at

Set when the deletion block was turned into an advertising block

string format: date-time
nullable
source_names

Data sources named at the deletion

Array<string>

Example

{
"data": {
"deletion_record": {
"action": "delete"
}
}
}