Zum Inhalt springen

Bulk GDPR delete recipients

POST
/recipients/bulk-delete
Code sample: Shell / cURL
curl --request POST \
--url https://rocketem.fotone.io/api/v2/recipients/bulk-delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "emails": [ "hello@example.com" ], "dry_run": false, "block": true }'

Required scope: recipients:delete

Asynchronously GDPR-deletes up to 1000 recipients by email. Returns a job ID. Daily cap: 10,000 deletions per organisation. block: false deletes without a legal block (see DELETE /recipients).

Supports dry_run=true: synchronously searches the given emails and reports which of them would be affected, without dispatching the delete job. No rate-limit consumption.

Idempotency-Key
string
<= 255 characters

Unique key for idempotent requests. Responses cached 24h.

Media typeapplication/json
object
emails
required
Array<string>
<= 1000 items
dry_run

Preview only — no job dispatched, no rate-limit use

boolean

Example

true
block

False deletes without a legal block; later sign-ups are accepted again

boolean
default: true

Dry-run preview of what would be deleted (only when dry_run=true)

Media typeapplication/json
object
data
object
dry_run
boolean
submitted
integer
would_affect_emails

Number of submitted emails that have any data

integer
would_affect_records

Total records across all submitted emails

integer
previously_deleted_count

How many of the submitted emails already have a prior GDPR deletion on record

integer
emails
Array<object>
object
email_hash
string
found
boolean
total_records
integer
incomplete

Storage locations the preview could not check for this email

Array<string>
previously_deleted

True if a prior GDPR deletion exists for this email

boolean
deletion_record

Details of the prior GDPR deletion if present

object

Example generated

{
"data": {
"dry_run": true,
"submitted": 1,
"would_affect_emails": 1,
"would_affect_records": 1,
"previously_deleted_count": 1,
"emails": [
{
"email_hash": "example",
"found": true,
"total_records": 1,
"incomplete": [
"example"
],
"previously_deleted": true,
"deletion_record": {}
}
]
}
}

Bulk delete job accepted (only when dry_run=false)

Media typeapplication/json
object
data
object
job_id
string format: uuid
dry_run
boolean
accepted

Number of emails queued for deletion

integer
legal_block

Whether the queued deletions block the addresses for good

boolean
rejected

Present only when the daily delete cap truncated the batch

integer
reason

Present only when rejected > 0 — human-readable cause

string

Example generated

{
"data": {
"job_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"dry_run": true,
"accepted": 1,
"legal_block": true,
"rejected": 1,
"reason": "example"
}
}

Validation failed

Media typeapplication/json
object
error
object
code
string
message
string
status
integer
details
object
key
additional properties
Array<string>

Example

{
"error": {
"code": "validation_error",
"message": "The given data was invalid.",
"status": 422
}
}