Skip to main content
POST
/
api
/
v1
/
context
/
delete
Delete context data
curl --request POST \
  --url https://platform-backend.getalchemystai.com/api/v1/context/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "source": "support-inbox",
  "by_doc": true,
  "by_id": false
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
source
string

Source identifier for the context

user_id
string | null
deprecated

Optional user ID

organization_id
string | null

Optional organization ID

by_doc
boolean | null
default:true

Flag to delete by document

by_id
boolean | null
default:false

Flag to delete by ID

Response

Successfully deleted context

The response is of type object.