curl --request GET \
--url https://api.canary.effectiveai.app/api/v2/insurance/underwriting/submissions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.canary.effectiveai.app/api/v2/insurance/underwriting/submissions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.canary.effectiveai.app/api/v2/insurance/underwriting/submissions', 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.canary.effectiveai.app/api/v2/insurance/underwriting/submissions",
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.canary.effectiveai.app/api/v2/insurance/underwriting/submissions"
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.canary.effectiveai.app/api/v2/insurance/underwriting/submissions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.canary.effectiveai.app/api/v2/insurance/underwriting/submissions")
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{
"submissions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"controlNumber": "<string>",
"title": "<string>",
"status": "<string>",
"programId": "<string>",
"releaseVersion": 1,
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agencyAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sender": {
"name": "<string>",
"email": "<string>"
},
"source": "<string>",
"businessType": "<string>",
"requestedEffectiveDate": "2023-12-25",
"requestedExpirationDate": "2023-12-25",
"neededBy": "2023-12-25",
"coverageAsked": "<string>",
"targetPremium": 123,
"message": "<string>",
"receivedAt": "2023-11-07T05:31:56Z",
"underwriterIds": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": {
"type": "user",
"id": "<string>"
},
"latestExtraction": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z"
},
"outstanding": [
{
"key": "<string>",
"label": "<string>",
"kind": "conflict",
"awaiting": "broker",
"severity": "blocking",
"neededFor": "<string>",
"note": "<string>"
}
],
"next": "broker",
"rating": {
"status": "<string>",
"outcomes": {},
"seq": 1
},
"stage": "<string>",
"quotes": [
{
"name": "<string>",
"outcomes": {},
"stands": true,
"accepted": true,
"status": "<string>"
}
],
"declines": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
],
"questions": [
{
"path": "<string>",
"kind": "<string>",
"role": "<string>",
"proposed": [
{
"status": "<string>",
"value": null,
"quote": "<string>"
}
],
"choices": "<unknown>",
"because": "<string>"
}
],
"log": {
"programId": "<string>",
"seq": 1,
"href": "<string>"
},
"nextUrl": "<string>",
"webUrl": "<string>",
"authority": {
"releaseVersion": 123,
"ordinary": {
"allowed": true,
"role": "<string>"
},
"actions": [
{
"name": "<string>",
"kind": "<string>",
"permission": {
"allowed": true,
"role": "<string>"
}
}
],
"decline": {
"kind": "record"
},
"fields": {}
}
}
],
"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>"
}{
"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>"
}{
"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>"
}List underwriting submissions
Lists the submissions the caller reads, newest first, each as getUnderwritingSubmission reads it: with its stage, its rating, its quotes and what it waits on. Filter by programId, and by stage (one stage, or several joined by commas: needs_review,ready_to_quote; received, extracting, needs_review, needs_info, referred, ineligible, ready_to_quote, quoted, bound, declined, closed).
Repeat with nextCursor and the same query until it is null. With stage, a page holds only the submissions at those stages, so it may hold fewer than limit, or none, and still go on. Each submission is read in full, so a page is at most 50. Read-only and safe to retry. Only where the workspace has underwriting turned on (403 feature_not_enabled).
Alpha: this operation may change or be removed without notice.
curl --request GET \
--url https://api.canary.effectiveai.app/api/v2/insurance/underwriting/submissions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.canary.effectiveai.app/api/v2/insurance/underwriting/submissions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.canary.effectiveai.app/api/v2/insurance/underwriting/submissions', 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.canary.effectiveai.app/api/v2/insurance/underwriting/submissions",
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.canary.effectiveai.app/api/v2/insurance/underwriting/submissions"
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.canary.effectiveai.app/api/v2/insurance/underwriting/submissions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.canary.effectiveai.app/api/v2/insurance/underwriting/submissions")
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{
"submissions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"controlNumber": "<string>",
"title": "<string>",
"status": "<string>",
"programId": "<string>",
"releaseVersion": 1,
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agencyAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sender": {
"name": "<string>",
"email": "<string>"
},
"source": "<string>",
"businessType": "<string>",
"requestedEffectiveDate": "2023-12-25",
"requestedExpirationDate": "2023-12-25",
"neededBy": "2023-12-25",
"coverageAsked": "<string>",
"targetPremium": 123,
"message": "<string>",
"receivedAt": "2023-11-07T05:31:56Z",
"underwriterIds": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": {
"type": "user",
"id": "<string>"
},
"latestExtraction": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z"
},
"outstanding": [
{
"key": "<string>",
"label": "<string>",
"kind": "conflict",
"awaiting": "broker",
"severity": "blocking",
"neededFor": "<string>",
"note": "<string>"
}
],
"next": "broker",
"rating": {
"status": "<string>",
"outcomes": {},
"seq": 1
},
"stage": "<string>",
"quotes": [
{
"name": "<string>",
"outcomes": {},
"stands": true,
"accepted": true,
"status": "<string>"
}
],
"declines": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
],
"questions": [
{
"path": "<string>",
"kind": "<string>",
"role": "<string>",
"proposed": [
{
"status": "<string>",
"value": null,
"quote": "<string>"
}
],
"choices": "<unknown>",
"because": "<string>"
}
],
"log": {
"programId": "<string>",
"seq": 1,
"href": "<string>"
},
"nextUrl": "<string>",
"webUrl": "<string>",
"authority": {
"releaseVersion": 123,
"ordinary": {
"allowed": true,
"role": "<string>"
},
"actions": [
{
"name": "<string>",
"kind": "<string>",
"permission": {
"allowed": true,
"role": "<string>"
}
}
],
"decline": {
"kind": "record"
},
"fields": {}
}
}
],
"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>"
}{
"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>"
}{
"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>"
}