Deployments.ai Docs
Runtime

Show a thread erasure

GET /v1/threads/{threadId}/erasures/{erasureId} · SDK getThreadErasure · CLI deployments thread erasure-status

GET
/v1/threads/{threadId}/erasures/{erasureId}

Requires runs:read.

Authorization

headerAuthorizationBearer <token>

Opaque bearer credential scoped to one service account and tenant.

Path Parameters

threadId*string
Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$
erasureId*string
Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$

Header Parameters

x-deployments-environment?string

Required 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.

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$
x-deployments-organization?string

Required 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.

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$
x-deployments-project?string

Required 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.

Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$

Response Body

ConversationErasureResponse

application/json
  1. response
erasure*
curl -X GET "https://example.com/v1/threads/string/erasures/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"  }}