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

Authorizations

Authorization
string
header
required

Use format: ApiKey <your-api-key>

Path Parameters

companyId
string<uuid>
required

Company identifier

entityType
enum<string>
required

The type of entity (events, policies, or insureds) The type of entity the note is attached to

Available options:
events,
policies,
insureds
entityId
string<uuid>
required

The ID of the entity

noteId
string<uuid>
required

Note identifier

Body

application/json
requestorEmail
string<email>
required

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

Response

Note deleted successfully

id
string<uuid>

The ID of the deleted note

deleted
boolean

Confirmation that the note was deleted