Skip to main content
GET
/
api
/
external
/
companies
/
{companyId}
/
events
/
{eventId}
/
lawsuit
/
defendants
List Defendants
curl --request GET \
  --url https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit/defendants \
  --header 'Authorization: <api-key>'
{ "items": [ { "id": "550e8400-e29b-41d4-a716-446655440001", "companyId": "660e8400-e29b-41d4-a716-446655440000", "lawsuitId": "770e8400-e29b-41d4-a716-446655440000", "insuredId": null, "nonInsuredName": "John Doe", "phoneNumber": "+1-555-123-4567", "email": "john@example.com", "attorneyId": "880e8400-e29b-41d4-a716-446655440000", "lawFirmId": "990e8400-e29b-41d4-a716-446655440000", "createdAt": "2026-02-15T10:30:00.000Z", "updatedAt": "2026-02-16T14:20:00.000Z" }, { "id": "550e8400-e29b-41d4-a716-446655440002", "companyId": "660e8400-e29b-41d4-a716-446655440000", "lawsuitId": "770e8400-e29b-41d4-a716-446655440000", "insuredId": "aa0e8400-e29b-41d4-a716-446655440000", "nonInsuredName": null, "phoneNumber": null, "email": null, "attorneyId": null, "lawFirmId": null, "createdAt": "2026-02-10T08:00:00.000Z", "updatedAt": null } ], "totalCount": 2 }

Authorizations

Authorization
string
header
required

API key authentication. Include your key in the Authorization header: Authorization: ApiKey YOUR-API-KEY

Path Parameters

companyId
string<uuid>
required

Company identifier

eventId
string<uuid>
required

Event identifier

Query Parameters

id

Filter by specific defendant ID(s)

filterText
string

Search across quote number, description, and other text fields

sortBy
enum<string>
default:createdAt

Field to sort by (default createdAt)

Available options:
createdAt,
updatedAt
sortDirection
enum<string>
default:desc

Sort direction (default desc)

Available options:
asc,
desc
page
integer
default:1

Page number (1-based, default 1, page size 50)

Required range: x >= 1

Response

Paginated list of defendants

items
object[]
totalCount
integer

Total number of matching defendants across all pages