Skip to content

Delete context entry

DELETE
/v1/context/{id}
curl --request DELETE \
--url https://api.varman.io/v1/context/ctx_abc123def456 \
--header 'X-API-Key: <X-API-Key>'

Permanently removes a context entry from the organization. This action cannot be undone.

id
required
string

Example

ctx_abc123def456

Context entry ID

Context entry deleted successfully

Media typeapplication/json
object
message
string
deletedContext
object
id
string
question
string
authType
string
Allowed values: api-key session

Example

{
"message": "Context entry deleted successfully",
"deletedContext": {
"id": "ctx_abc123def456",
"question": "How do we handle user authentication in our application?"
},
"authType": "apikey"
}

Unauthorized - Invalid or missing authentication

Media typeapplication/json
object
message
string
statusCode
number

Example

{
"message": "Unauthorized",
"statusCode": 401
}

Context entry not found

Media typeapplication/json
object
message
string
statusCode
number

Example

{
"message": "Context entry with ID ctx_abc123def456 not found in organization org_xyz789uvw012",
"statusCode": 404
}

Internal server error

Media typeapplication/json
object
message
string
statusCode
number

Example

{
"message": "Internal server error",
"statusCode": 500
}