curl --request GET \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit \
--header 'Authorization: <api-key>'import requests
url = "https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440001",
"companyId": "660e8400-e29b-41d4-a716-446655440000",
"eventId": "770e8400-e29b-41d4-a716-446655440000",
"caseNumber": "CASE-2026-001",
"caseName": "Smith v. Jones Insurance Co.",
"lawsuitFiledDate": "2026-01-10T00:00:00.000Z",
"suitServedDate": "2026-01-15T00:00:00.000Z",
"trialDate": "2026-06-01T00:00:00.000Z",
"venueName": "District Court of Springfield",
"venueAddress": {
"value": "100 Court St, Springfield, IL 62701",
"structuredValue": {
"streetNumber": "100",
"streetName": "Court St",
"city": "Springfield",
"state": {
"short": "IL",
"long": "Illinois"
},
"postalCode": "62701"
}
},
"judgeName": "Hon. Sarah Williams",
"plaintiffs": [
"John Smith",
"Mary Smith"
],
"plaintiffAttorneyId": "880e8400-e29b-41d4-a716-446655440000",
"plaintiffLawFirmId": "990e8400-e29b-41d4-a716-446655440000",
"plaintiffAddress": null,
"settlementDemand": "250000",
"settlementType": "N",
"arbitrationInvolved": "No",
"dateDefenseCounselAdded": "2026-01-20T00:00:00.000Z",
"expertDefense": "Dr. Expert Defense",
"expertPlaintiff": "Dr. Expert Plaintiff",
"declaratoryJudgementFiledDate": null,
"createdAt": "2026-01-10T10:30:00.000Z",
"updatedAt": "2026-02-01T14:20:00.000Z"
}Get Lawsuit
Returns the lawsuit associated with an event. Each event has at most one lawsuit.
Required permission: company.event:export
curl --request GET \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit \
--header 'Authorization: <api-key>'import requests
url = "https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440001",
"companyId": "660e8400-e29b-41d4-a716-446655440000",
"eventId": "770e8400-e29b-41d4-a716-446655440000",
"caseNumber": "CASE-2026-001",
"caseName": "Smith v. Jones Insurance Co.",
"lawsuitFiledDate": "2026-01-10T00:00:00.000Z",
"suitServedDate": "2026-01-15T00:00:00.000Z",
"trialDate": "2026-06-01T00:00:00.000Z",
"venueName": "District Court of Springfield",
"venueAddress": {
"value": "100 Court St, Springfield, IL 62701",
"structuredValue": {
"streetNumber": "100",
"streetName": "Court St",
"city": "Springfield",
"state": {
"short": "IL",
"long": "Illinois"
},
"postalCode": "62701"
}
},
"judgeName": "Hon. Sarah Williams",
"plaintiffs": [
"John Smith",
"Mary Smith"
],
"plaintiffAttorneyId": "880e8400-e29b-41d4-a716-446655440000",
"plaintiffLawFirmId": "990e8400-e29b-41d4-a716-446655440000",
"plaintiffAddress": null,
"settlementDemand": "250000",
"settlementType": "N",
"arbitrationInvolved": "No",
"dateDefenseCounselAdded": "2026-01-20T00:00:00.000Z",
"expertDefense": "Dr. Expert Defense",
"expertPlaintiff": "Dr. Expert Plaintiff",
"declaratoryJudgementFiledDate": null,
"createdAt": "2026-01-10T10:30:00.000Z",
"updatedAt": "2026-02-01T14:20:00.000Z"
}Authorizations
API key authentication. Include your API key in the Authorization header.
Path Parameters
Company identifier
Event identifier
Response
Lawsuit details
A lawsuit associated with an event
Lawsuit identifier
Company identifier
Associated event identifier
Court case number
Name of the case
Date lawsuit was filed (ISO 8601)
Date suit was served (ISO 8601)
Scheduled trial date (ISO 8601)
Name of the court venue
Address of the court venue
Show child attributes
Show child attributes
Name of the presiding judge
List of plaintiff names
Attorney representing the plaintiff
Law firm representing the plaintiff
Address of the plaintiff
Show child attributes
Show child attributes
Settlement demand amount
Settlement type code (S=Settlement, N=No Settlement, L=Litigated, C=Closed)
Whether arbitration is involved (Yes/No)
Date defense counsel was added (ISO 8601)
Defense expert information
Plaintiff expert information
Date declaratory judgement was filed (ISO 8601)
When the lawsuit was created (ISO 8601)
When the lawsuit was last updated (ISO 8601)
Was this page helpful?
