DELETE
/
v1
/
risks
/
{id}
Delete risk
curl --request DELETE \
  --url https://api.trycomp.ai/v1/risks/{id} \
  --header 'X-API-Key: <api-key>'
{
  "message": "Risk deleted successfully",
  "deletedRisk": {
    "id": "rsk_abc123def456",
    "title": "Data breach vulnerability in user authentication system"
  },
  "authType": "api-key",
  "authenticatedUser": {
    "id": "usr_def456ghi789",
    "email": "[email protected]"
  }
}

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

Risk ID

Example:

"rsk_abc123def456"

Response

Risk deleted successfully

message
string
Example:

"Risk deleted successfully"

deletedRisk
object
authType
enum<string>

How the request was authenticated

Available options:
api-key,
session
authenticatedUser
object

User information (only for session auth)