Permanently erase every thread of one end user in the environment
POST /v1/end-users/erasures · SDK eraseEndUser · CLI deployments end-user erase
Requires end-users:erase. A suspended organization can still call it, except while an abuse hold preserves evidence.
AuthorizationBearer <token>Opaque bearer credential scoped to one service account and tenant.
x-deployments-environment?stringRequired with a platform bearer JWT, where the three tenant headers select an environment the caller can access through active organization membership. Optional with an API key; when supplied, it must match the key's tenant.
^[0-7][0-9A-HJKMNP-TV-Z]{25}$x-deployments-organization?stringRequired with a platform bearer JWT, where the three tenant headers select an environment the caller can access through active organization membership. Optional with an API key; when supplied, it must match the key's tenant.
^[0-7][0-9A-HJKMNP-TV-Z]{25}$x-deployments-project?stringRequired with a platform bearer JWT, where the three tenant headers select an environment the caller can access through active organization membership. Optional with an API key; when supplied, it must match the key's tenant.
^[0-7][0-9A-HJKMNP-TV-Z]{25}$application/json- body
endUserId*string1 <= length <= 256ConversationErasureResponse
application/json- response
erasure*curl -X POST "https://example.com/v1/end-users/erasures" \ -H "Content-Type: application/json" \ -d '{ "endUserId": "string" }'{ "erasure": { "completedAt": "2019-08-24T14:15:22Z", "counts": { "automationsArchived": 0, "emailMessagesErased": 0, "emailThreadsErased": 0, "ingressRecordsDeleted": 0, "memoriesErased": 0, "objectsStaged": 0, "recordsDeleted": 0, "runsCanceled": 0, "streamsDeleted": 0, "threadsErased": 0, "threadsPlanned": 0 }, "createdAt": "2019-08-24T14:15:22Z", "environmentId": "string", "error": { "code": "string", "message": "string" }, "id": "string", "kind": "end-user", "phase": "planning", "status": "canceled", "threadId": "string", "updatedAt": "2019-08-24T14:15:22Z" }}