List an underwriting file's log
curl --request GET \
--url https://api.effectiveai.app/api/v2/insurance/underwriting/files/{fileId}/log \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.effectiveai.app/api/v2/insurance/underwriting/files/{fileId}/log"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.effectiveai.app/api/v2/insurance/underwriting/files/{fileId}/log', 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/underwriting/files/{fileId}/log",
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: Bearer <token>"
],
]);
$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://api.effectiveai.app/api/v2/insurance/underwriting/files/{fileId}/log"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.effectiveai.app/api/v2/insurance/underwriting/files/{fileId}/log")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.effectiveai.app/api/v2/insurance/underwriting/files/{fileId}/log")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"entries": [
{
"id": "<string>",
"seq": 123,
"status": "<string>",
"actor": {
"userId": "<string>",
"side": "<string>",
"role": "<string>",
"owner": "<string>",
"human": true
},
"recordedAt": "2023-11-07T05:31:56Z",
"applyId": "<string>",
"op": {
"op": "open",
"products": [
"<string>"
]
}
}
],
"nextCursor": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<string>"
}
}Underwriting workbench
List an underwriting file's log
An underwriting file’s log, oldest first: every statement recorded, each as its typed op, with who made it, in which role and side, and when, including entries the manual wrote itself. This is its whole history; entries never change or disappear.
Requires read access to the file. To paginate, pass nextCursor as cursor with the same limit until it is null; cursors do not expire. Read-only.
GET
/
insurance
/
underwriting
/
files
/
{fileId}
/
log
List an underwriting file's log
curl --request GET \
--url https://api.effectiveai.app/api/v2/insurance/underwriting/files/{fileId}/log \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.effectiveai.app/api/v2/insurance/underwriting/files/{fileId}/log"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.effectiveai.app/api/v2/insurance/underwriting/files/{fileId}/log', 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/underwriting/files/{fileId}/log",
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: Bearer <token>"
],
]);
$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://api.effectiveai.app/api/v2/insurance/underwriting/files/{fileId}/log"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.effectiveai.app/api/v2/insurance/underwriting/files/{fileId}/log")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.effectiveai.app/api/v2/insurance/underwriting/files/{fileId}/log")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"entries": [
{
"id": "<string>",
"seq": 123,
"status": "<string>",
"actor": {
"userId": "<string>",
"side": "<string>",
"role": "<string>",
"owner": "<string>",
"human": true
},
"recordedAt": "2023-11-07T05:31:56Z",
"applyId": "<string>",
"op": {
"op": "open",
"products": [
"<string>"
]
}
}
],
"nextCursor": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<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,
"executionId": "<string>",
"accessUrl": "<string>",
"runtimeCode": "<string>",
"statementIndex": 123,
"lastSeq": 123,
"target": "<string>",
"offer": "<string>",
"blockers": [
"<string>"
],
"rating": {
"status": "<string>",
"runIds": [
"<string>"
],
"waitingOn": [
"<string>"
],
"recovery": "<string>"
}
}Authorizations
Effective API key. Send Authorization: Bearer sk-eai-...
Path Parameters
Underwriting file ID: the id of createUnderwritingFile or listUnderwritingFiles.
Query Parameters
Maximum number of items to return (1-100, default 50).
Required range:
1 <= x <= 100Opaque nextCursor from this operation. Repeat every other query parameter unchanged; a cursor from a different query returns invalid_cursor.
Required string length:
1 - 8192