Get Lawsuit
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"
}Lawsuits
Get Lawsuit
Returns the lawsuit associated with an event. Each event has at most one lawsuit.
Required permission: company.event:export
GET
/
api
/
external
/
companies
/
{companyId}
/
events
/
{eventId}
/
lawsuit
Get Lawsuit
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
Path Parameters
Response
Lawsuit details
A lawsuit associated with an event
Was this page helpful?
