Skip to content

GDPR Art. 17 — Right to erasure

POST
/api/v1/export/erase
curl --request POST \
--url https://api.ultimateteam.ai/api/v1/export/erase \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "contact_email": "hello@example.com" }'

Erases personal data for the requesting tenant. If contact_email is provided, only that contact’s records are deleted synchronously. If omitted, a full tenant data deletion is queued for async processing. Audit log entries are always retained per legal requirement.

Media typeapplication/json
EraseContactRequest

Request body for POST /export/erase (GDPR Art. 17).

Attributes: contact_email: If provided, only this contact’s data is erased. If omitted, a full tenant data deletion is queued.

object
contact_email
Any of:
string format: email
Examplegenerated
{
"contact_email": "hello@example.com"
}

Successful Response

Media typeapplication/json
EraseResponse

Response body for POST /export/erase (GDPR Art. 17).

Attributes: request_id: Unique identifier for the erasure request (retained in audit log). scope: ‘contact’ or ‘tenant’. contact_email: Echo of the contact email erased (contact scope only). status: ‘accepted’ — deletion is processed asynchronously. message: Human-readable description.

object
contact_email
Any of:
string
message
required
Message
string
request_id
required
Request Id
string format: uuid
scope
required
Scope
string
status
required
Status
string
Examplegenerated
{
"contact_email": "example",
"message": "example",
"request_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"scope": "example",
"status": "example"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}