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 '
{
  "type": "claim"
}
'
{
  "id": "550e8400-e29b-41d4-a716-446655440001",
  "deleted": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.aiinsurance.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header.

Path Parameters

companyId
string<uuid>
required

Company identifier

eventId
string<uuid>
required

Event identifier

Body

application/json
type
enum<string>
required

Type of event (claim or incident)

Available options:
claim,
incident
force
boolean

If true, allows deletion even when the event has paid or processing financial transactions. WARNING: Force deleting will orphan these financial records. Use with caution.

Response

Event deleted successfully

id
string<uuid>

The ID of the deleted event

deleted
boolean

Confirmation that the event was deleted