Permanently erase a thread and everything derived from it
POST /v1/threads/{threadId}/erasures · SDK eraseThread · CLI deployments thread erase
Requires runs: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.
threadId*string^[0-7][0-9A-HJKMNP-TV-Z]{25}$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}$ConversationErasureResponse
application/json- response
erasure*curl -X POST "https://example.com/v1/threads/string/erasures"{ "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" }}