curl --request POST \
--url https://api.effectiveai.app/api/v2/insurance/loss-reviews \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"losses": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"company": {
"label": "<string>",
"facts": "<string>",
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
]
},
"products": [
{
"key": "verus",
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"label": "<string>",
"context": {
"product": {
"id": "product_00001AB",
"state": "CA"
},
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"facts": "<string>"
}
}
],
"knowledge": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"reviewMaterial": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"purpose": "<string>",
"focus": [
"<string>"
],
"matters": [
{
"id": "<string>",
"lossInputIds": [
"<string>"
],
"label": "<string>"
}
]
}
'import requests
url = "https://api.effectiveai.app/api/v2/insurance/loss-reviews"
payload = {
"losses": ["01a150b0-b6a4-774f-a0e0-ad385dbc5028"],
"company": {
"label": "<string>",
"facts": "<string>",
"documents": ["01a150b0-b6a4-774f-a0e0-ad385dbc5028"]
},
"products": [
{
"key": "verus",
"documents": ["01a150b0-b6a4-774f-a0e0-ad385dbc5028"],
"label": "<string>",
"context": {
"product": {
"id": "product_00001AB",
"state": "CA"
},
"documents": ["01a150b0-b6a4-774f-a0e0-ad385dbc5028"],
"facts": "<string>"
}
}
],
"knowledge": ["01a150b0-b6a4-774f-a0e0-ad385dbc5028"],
"reviewMaterial": ["01a150b0-b6a4-774f-a0e0-ad385dbc5028"],
"purpose": "<string>",
"focus": ["<string>"],
"matters": [
{
"id": "<string>",
"lossInputIds": ["<string>"],
"label": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
losses: ['01a150b0-b6a4-774f-a0e0-ad385dbc5028'],
company: {
label: '<string>',
facts: '<string>',
documents: ['01a150b0-b6a4-774f-a0e0-ad385dbc5028']
},
products: [
{
key: 'verus',
documents: ['01a150b0-b6a4-774f-a0e0-ad385dbc5028'],
label: '<string>',
context: {
product: {id: 'product_00001AB', state: 'CA'},
documents: ['01a150b0-b6a4-774f-a0e0-ad385dbc5028'],
facts: '<string>'
}
}
],
knowledge: ['01a150b0-b6a4-774f-a0e0-ad385dbc5028'],
reviewMaterial: ['01a150b0-b6a4-774f-a0e0-ad385dbc5028'],
purpose: '<string>',
focus: ['<string>'],
matters: [{id: '<string>', lossInputIds: ['<string>'], label: '<string>'}]
})
};
fetch('https://api.effectiveai.app/api/v2/insurance/loss-reviews', 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://api.effectiveai.app/api/v2/insurance/loss-reviews",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'losses' => [
'01a150b0-b6a4-774f-a0e0-ad385dbc5028'
],
'company' => [
'label' => '<string>',
'facts' => '<string>',
'documents' => [
'01a150b0-b6a4-774f-a0e0-ad385dbc5028'
]
],
'products' => [
[
'key' => 'verus',
'documents' => [
'01a150b0-b6a4-774f-a0e0-ad385dbc5028'
],
'label' => '<string>',
'context' => [
'product' => [
'id' => 'product_00001AB',
'state' => 'CA'
],
'documents' => [
'01a150b0-b6a4-774f-a0e0-ad385dbc5028'
],
'facts' => '<string>'
]
]
],
'knowledge' => [
'01a150b0-b6a4-774f-a0e0-ad385dbc5028'
],
'reviewMaterial' => [
'01a150b0-b6a4-774f-a0e0-ad385dbc5028'
],
'purpose' => '<string>',
'focus' => [
'<string>'
],
'matters' => [
[
'id' => '<string>',
'lossInputIds' => [
'<string>'
],
'label' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.effectiveai.app/api/v2/insurance/loss-reviews"
payload := strings.NewReader("{\n \"losses\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"company\": {\n \"label\": \"<string>\",\n \"facts\": \"<string>\",\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ]\n },\n \"products\": [\n {\n \"key\": \"verus\",\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"label\": \"<string>\",\n \"context\": {\n \"product\": {\n \"id\": \"product_00001AB\",\n \"state\": \"CA\"\n },\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"facts\": \"<string>\"\n }\n }\n ],\n \"knowledge\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"reviewMaterial\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"purpose\": \"<string>\",\n \"focus\": [\n \"<string>\"\n ],\n \"matters\": [\n {\n \"id\": \"<string>\",\n \"lossInputIds\": [\n \"<string>\"\n ],\n \"label\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.effectiveai.app/api/v2/insurance/loss-reviews")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"losses\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"company\": {\n \"label\": \"<string>\",\n \"facts\": \"<string>\",\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ]\n },\n \"products\": [\n {\n \"key\": \"verus\",\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"label\": \"<string>\",\n \"context\": {\n \"product\": {\n \"id\": \"product_00001AB\",\n \"state\": \"CA\"\n },\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"facts\": \"<string>\"\n }\n }\n ],\n \"knowledge\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"reviewMaterial\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"purpose\": \"<string>\",\n \"focus\": [\n \"<string>\"\n ],\n \"matters\": [\n {\n \"id\": \"<string>\",\n \"lossInputIds\": [\n \"<string>\"\n ],\n \"label\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.effectiveai.app/api/v2/insurance/loss-reviews")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"losses\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"company\": {\n \"label\": \"<string>\",\n \"facts\": \"<string>\",\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ]\n },\n \"products\": [\n {\n \"key\": \"verus\",\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"label\": \"<string>\",\n \"context\": {\n \"product\": {\n \"id\": \"product_00001AB\",\n \"state\": \"CA\"\n },\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"facts\": \"<string>\"\n }\n }\n ],\n \"knowledge\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"reviewMaterial\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"purpose\": \"<string>\",\n \"focus\": [\n \"<string>\"\n ],\n \"matters\": [\n {\n \"id\": \"<string>\",\n \"lossInputIds\": [\n \"<string>\"\n ],\n \"label\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"idempotencyExpiresAt": "2023-11-07T05:31:56Z",
"request": {
"losses": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"company": {
"label": "<string>",
"facts": "<string>",
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
]
},
"products": [
{
"key": "verus",
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"basis": "issued_policy",
"label": "<string>",
"context": {
"product": {
"id": "product_00001AB",
"state": "CA"
},
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"facts": "<string>"
}
}
],
"knowledge": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"reviewMaterial": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"purpose": "<string>",
"focus": [
"<string>"
],
"matters": [
{
"id": "<string>",
"lossInputIds": [
"<string>"
],
"label": "<string>"
}
]
},
"progress": {
"total": 123,
"succeeded": 123,
"failed": 123,
"pending": 123
},
"formComparisonId": "<string>",
"inputsUsed": {
"items": [
{
"inputId": "<string>",
"role": "target",
"variant": "<string>",
"fileId": "<string>",
"versionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contentSha256": "<string>",
"name": "<string>",
"extractionMethod": "<string>"
}
],
"execution": {
"executor": "<string>",
"model": "<string>",
"codeVersion": "<string>"
}
},
"report": "<string>",
"usage": {
"credits": 123
},
"status": "queued"
}{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"idempotencyExpiresAt": "2023-11-07T05:31:56Z",
"request": {
"losses": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"company": {
"label": "<string>",
"facts": "<string>",
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
]
},
"products": [
{
"key": "verus",
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"basis": "issued_policy",
"label": "<string>",
"context": {
"product": {
"id": "product_00001AB",
"state": "CA"
},
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"facts": "<string>"
}
}
],
"knowledge": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"reviewMaterial": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"purpose": "<string>",
"focus": [
"<string>"
],
"matters": [
{
"id": "<string>",
"lossInputIds": [
"<string>"
],
"label": "<string>"
}
]
},
"progress": {
"total": 123,
"succeeded": 123,
"failed": 123,
"pending": 123
},
"formComparisonId": "<string>",
"inputsUsed": {
"items": [
{
"inputId": "<string>",
"role": "target",
"variant": "<string>",
"fileId": "<string>",
"versionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contentSha256": "<string>",
"name": "<string>",
"extractionMethod": "<string>"
}
],
"execution": {
"executor": "<string>",
"model": "<string>",
"codeVersion": "<string>"
}
},
"report": "<string>",
"usage": {
"credits": 123
},
"status": "queued"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}Review supplied loss evidence
Reconstruct loss matters, preserve claim valuations, classify against supplied knowledge and return cited findings and questions. Optional two-product context composes Forms Comparison. Inputs must be readable, downloadable files with extracted text; current versions are pinned. Optional knowledge files are validated automatically.
Poll the returned id or use loss_review.completed / loss_review.failed webhooks. Runs time out after 30 minutes and use session credits. Requires the loss reviews feature and a member with write access.
Use Idempotency-Key for safe retries (7 days); without it, each POST starts a run. Maximum: 40 inputs, 50 annotations, 64 KiB.
curl --request POST \
--url https://api.effectiveai.app/api/v2/insurance/loss-reviews \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"losses": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"company": {
"label": "<string>",
"facts": "<string>",
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
]
},
"products": [
{
"key": "verus",
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"label": "<string>",
"context": {
"product": {
"id": "product_00001AB",
"state": "CA"
},
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"facts": "<string>"
}
}
],
"knowledge": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"reviewMaterial": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"purpose": "<string>",
"focus": [
"<string>"
],
"matters": [
{
"id": "<string>",
"lossInputIds": [
"<string>"
],
"label": "<string>"
}
]
}
'import requests
url = "https://api.effectiveai.app/api/v2/insurance/loss-reviews"
payload = {
"losses": ["01a150b0-b6a4-774f-a0e0-ad385dbc5028"],
"company": {
"label": "<string>",
"facts": "<string>",
"documents": ["01a150b0-b6a4-774f-a0e0-ad385dbc5028"]
},
"products": [
{
"key": "verus",
"documents": ["01a150b0-b6a4-774f-a0e0-ad385dbc5028"],
"label": "<string>",
"context": {
"product": {
"id": "product_00001AB",
"state": "CA"
},
"documents": ["01a150b0-b6a4-774f-a0e0-ad385dbc5028"],
"facts": "<string>"
}
}
],
"knowledge": ["01a150b0-b6a4-774f-a0e0-ad385dbc5028"],
"reviewMaterial": ["01a150b0-b6a4-774f-a0e0-ad385dbc5028"],
"purpose": "<string>",
"focus": ["<string>"],
"matters": [
{
"id": "<string>",
"lossInputIds": ["<string>"],
"label": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
losses: ['01a150b0-b6a4-774f-a0e0-ad385dbc5028'],
company: {
label: '<string>',
facts: '<string>',
documents: ['01a150b0-b6a4-774f-a0e0-ad385dbc5028']
},
products: [
{
key: 'verus',
documents: ['01a150b0-b6a4-774f-a0e0-ad385dbc5028'],
label: '<string>',
context: {
product: {id: 'product_00001AB', state: 'CA'},
documents: ['01a150b0-b6a4-774f-a0e0-ad385dbc5028'],
facts: '<string>'
}
}
],
knowledge: ['01a150b0-b6a4-774f-a0e0-ad385dbc5028'],
reviewMaterial: ['01a150b0-b6a4-774f-a0e0-ad385dbc5028'],
purpose: '<string>',
focus: ['<string>'],
matters: [{id: '<string>', lossInputIds: ['<string>'], label: '<string>'}]
})
};
fetch('https://api.effectiveai.app/api/v2/insurance/loss-reviews', 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://api.effectiveai.app/api/v2/insurance/loss-reviews",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'losses' => [
'01a150b0-b6a4-774f-a0e0-ad385dbc5028'
],
'company' => [
'label' => '<string>',
'facts' => '<string>',
'documents' => [
'01a150b0-b6a4-774f-a0e0-ad385dbc5028'
]
],
'products' => [
[
'key' => 'verus',
'documents' => [
'01a150b0-b6a4-774f-a0e0-ad385dbc5028'
],
'label' => '<string>',
'context' => [
'product' => [
'id' => 'product_00001AB',
'state' => 'CA'
],
'documents' => [
'01a150b0-b6a4-774f-a0e0-ad385dbc5028'
],
'facts' => '<string>'
]
]
],
'knowledge' => [
'01a150b0-b6a4-774f-a0e0-ad385dbc5028'
],
'reviewMaterial' => [
'01a150b0-b6a4-774f-a0e0-ad385dbc5028'
],
'purpose' => '<string>',
'focus' => [
'<string>'
],
'matters' => [
[
'id' => '<string>',
'lossInputIds' => [
'<string>'
],
'label' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.effectiveai.app/api/v2/insurance/loss-reviews"
payload := strings.NewReader("{\n \"losses\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"company\": {\n \"label\": \"<string>\",\n \"facts\": \"<string>\",\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ]\n },\n \"products\": [\n {\n \"key\": \"verus\",\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"label\": \"<string>\",\n \"context\": {\n \"product\": {\n \"id\": \"product_00001AB\",\n \"state\": \"CA\"\n },\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"facts\": \"<string>\"\n }\n }\n ],\n \"knowledge\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"reviewMaterial\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"purpose\": \"<string>\",\n \"focus\": [\n \"<string>\"\n ],\n \"matters\": [\n {\n \"id\": \"<string>\",\n \"lossInputIds\": [\n \"<string>\"\n ],\n \"label\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.effectiveai.app/api/v2/insurance/loss-reviews")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"losses\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"company\": {\n \"label\": \"<string>\",\n \"facts\": \"<string>\",\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ]\n },\n \"products\": [\n {\n \"key\": \"verus\",\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"label\": \"<string>\",\n \"context\": {\n \"product\": {\n \"id\": \"product_00001AB\",\n \"state\": \"CA\"\n },\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"facts\": \"<string>\"\n }\n }\n ],\n \"knowledge\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"reviewMaterial\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"purpose\": \"<string>\",\n \"focus\": [\n \"<string>\"\n ],\n \"matters\": [\n {\n \"id\": \"<string>\",\n \"lossInputIds\": [\n \"<string>\"\n ],\n \"label\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.effectiveai.app/api/v2/insurance/loss-reviews")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"losses\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"company\": {\n \"label\": \"<string>\",\n \"facts\": \"<string>\",\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ]\n },\n \"products\": [\n {\n \"key\": \"verus\",\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"label\": \"<string>\",\n \"context\": {\n \"product\": {\n \"id\": \"product_00001AB\",\n \"state\": \"CA\"\n },\n \"documents\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"facts\": \"<string>\"\n }\n }\n ],\n \"knowledge\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"reviewMaterial\": [\n \"01a150b0-b6a4-774f-a0e0-ad385dbc5028\"\n ],\n \"purpose\": \"<string>\",\n \"focus\": [\n \"<string>\"\n ],\n \"matters\": [\n {\n \"id\": \"<string>\",\n \"lossInputIds\": [\n \"<string>\"\n ],\n \"label\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"idempotencyExpiresAt": "2023-11-07T05:31:56Z",
"request": {
"losses": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"company": {
"label": "<string>",
"facts": "<string>",
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
]
},
"products": [
{
"key": "verus",
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"basis": "issued_policy",
"label": "<string>",
"context": {
"product": {
"id": "product_00001AB",
"state": "CA"
},
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"facts": "<string>"
}
}
],
"knowledge": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"reviewMaterial": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"purpose": "<string>",
"focus": [
"<string>"
],
"matters": [
{
"id": "<string>",
"lossInputIds": [
"<string>"
],
"label": "<string>"
}
]
},
"progress": {
"total": 123,
"succeeded": 123,
"failed": 123,
"pending": 123
},
"formComparisonId": "<string>",
"inputsUsed": {
"items": [
{
"inputId": "<string>",
"role": "target",
"variant": "<string>",
"fileId": "<string>",
"versionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contentSha256": "<string>",
"name": "<string>",
"extractionMethod": "<string>"
}
],
"execution": {
"executor": "<string>",
"model": "<string>",
"codeVersion": "<string>"
}
},
"report": "<string>",
"usage": {
"credits": 123
},
"status": "queued"
}{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"idempotencyExpiresAt": "2023-11-07T05:31:56Z",
"request": {
"losses": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"company": {
"label": "<string>",
"facts": "<string>",
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
]
},
"products": [
{
"key": "verus",
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"basis": "issued_policy",
"label": "<string>",
"context": {
"product": {
"id": "product_00001AB",
"state": "CA"
},
"documents": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"facts": "<string>"
}
}
],
"knowledge": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"reviewMaterial": [
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
],
"purpose": "<string>",
"focus": [
"<string>"
],
"matters": [
{
"id": "<string>",
"lossInputIds": [
"<string>"
],
"label": "<string>"
}
]
},
"progress": {
"total": 123,
"succeeded": 123,
"failed": 123,
"pending": 123
},
"formComparisonId": "<string>",
"inputsUsed": {
"items": [
{
"inputId": "<string>",
"role": "target",
"variant": "<string>",
"fileId": "<string>",
"versionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contentSha256": "<string>",
"name": "<string>",
"extractionMethod": "<string>"
}
],
"execution": {
"executor": "<string>",
"model": "<string>",
"codeVersion": "<string>"
}
},
"report": "<string>",
"usage": {
"credits": 123
},
"status": "queued"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"accessUrl": "<string>"
}Authorizations
Effective API key. Send Authorization: Bearer sk-eai-...
Headers
Client-chosen key for safe retries: 1-128 letters, digits, -, _, . or :. Use a new random UUID for each intended operation and the same key when retrying it. Do not put customer data or credentials in the key.
1 - 128^[A-Za-z0-9\-_.:]+$Body
Loss evidence. Bare file UUIDs receive loss-1, loss-2, etc. IDs.
1 - 20 elementsFile UUID or an object with an ID and optional label/annotations. Bare UUIDs receive input- IDs in request order.
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
Show child attributes
Show child attributes
Optional two wording variants. Composes Forms Comparison; requires its entitlement.
Show child attributes
Show child attributes
Existing forms-knowledge/v1 files; validated together.
10File UUID or an object with an ID and optional label/annotations. Bare UUIDs receive input- IDs in request order.
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
Earlier reports and reviewer notes; not incident evidence.
10File UUID or an object with an ID and optional label/annotations. Bare UUIDs receive input- IDs in request order.
"01a150b0-b6a4-774f-a0e0-ad385dbc5028"
1 - 4000101 - 1000Explicit independent matters. Omit for one account containing all evidence, with distinct events and claims reconstructed inside it.
1 - 50 elementsShow child attributes
Show child attributes
Response
Completed review returned by an idempotent retry.
- Option 1
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Markdown summary and source/version manifest; item reports are on listLossReviewItems.
Show child attributes
Show child attributes
queued