DELETE
/
v1
/
context
/
{id}
Delete context entry
curl --request DELETE \
  --url https://api.trycomp.ai/v1/context/{id} \
  --header 'X-API-Key: <api-key>'
{
  "message": "Context entry deleted successfully",
  "deletedContext": {
    "id": "ctx_abc123def456",
    "question": "How do we handle user authentication in our application?"
  },
  "authType": "apikey"
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Headers

X-Organization-Id
string

Organization ID (required for session auth, optional for API key auth)

Path Parameters

id
string
required

Context entry ID

Example:

"ctx_abc123def456"

Response

Context entry deleted successfully

message
string
deletedContext
object
authType
enum<string>
Available options:
api-key,
session