curl --request DELETE \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "claim"
}
'{
"id": "550e8400-e29b-41d4-a716-446655440001",
"deleted": true
}Events
Delete Event
Soft deletes an event by setting deletedAt and deletedBy timestamps. The event will no longer be returned in list or get operations.
Financial Transaction Protection:
By default, events with paid or processing financial transactions cannot be deleted.
This protects financial data integrity. If you need to delete such an event,
set force: true in the request body.
⚠️ WARNING: Using force: true will orphan the associated financial records.
Only use this option if you understand the implications.
Required fields in request body:
type- Event type (required for permission resolution)
Optional fields:
force- Set totrueto delete events with paid/processing transactions (use with caution)
Required permission: company.claim:delete or company.incident:delete (depending on type)
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 '
{
"type": "claim"
}
'{
"id": "550e8400-e29b-41d4-a716-446655440001",
"deleted": true
}Authorizations
Path Parameters
Body
application/json
Was this page helpful?
