Skip to main content
DELETE
/
api
/
external
/
companies
/
{companyId}
/
events
/
{eventId}
curl --request DELETE \
  --url https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "requestorEmail": "[email protected]",
  "type": "claim"
}
'
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"deleted": true
}

Authorizations

Authorization
string
header
required

Use format: ApiKey <your-api-key>

Path Parameters

companyId
string<uuid>
required

Company identifier

eventId
string<uuid>
required

Event identifier

Body

application/json
requestorEmail
string<email>
required

Email of the user making the request (for audit trail, must match existing user)

type
enum<string>
required

Type of event (claim or incident)

Available options:
claim,
incident

Response

Event deleted successfully

id
string<uuid>

The ID of the deleted event

deleted
boolean

Confirmation that the event was deleted