curl --request POST \
--url https://api.effectiveai.app/api/v2/insurance/underwriting/submissions/{submissionId}/resend \
--header 'Authorization: Bearer <token>' \
--header 'Idempotency-Key: <idempotency-key>'import requests
url = "https://api.effectiveai.app/api/v2/insurance/underwriting/submissions/{submissionId}/resend"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Idempotency-Key': '<idempotency-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.effectiveai.app/api/v2/insurance/underwriting/submissions/{submissionId}/resend', 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/submissions/{submissionId}/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Idempotency-Key: <idempotency-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://api.effectiveai.app/api/v2/insurance/underwriting/submissions/{submissionId}/resend"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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.post("https://api.effectiveai.app/api/v2/insurance/underwriting/submissions/{submissionId}/resend")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.effectiveai.app/api/v2/insurance/underwriting/submissions/{submissionId}/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"submission": {
"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": {},
"signoffs": []
}
},
"resentFrom": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"arrivedBy": "email",
"extraction": {
"status": "<string>",
"extractionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"code": "<string>",
"message": "<string>"
},
"rejected": [
{
"name": "<string>",
"reason": "<string>"
}
]
}{
"submission": {
"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": {},
"signoffs": []
}
},
"resentFrom": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"arrivedBy": "email",
"extraction": {
"status": "<string>",
"extractionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"code": "<string>",
"message": "<string>"
},
"rejected": [
{
"name": "<string>",
"reason": "<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>"
}{
"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>"
}Resend an underwriting submission as new
Makes a new submission from an existing one as if it had just arrived, to test intake, extraction and the program’s rules again. The original is left as it was.
A submission that arrived by email (source email) has its first email delivered again to the program’s inbox, through the same intake a new email takes, on a thread of its own so it is not added to the original: the new submission gets the email’s .eml, Email.txt and attachments, and the original sender. Its sender is not held for review. The email is read from the .eml kept with the original’s documents, else fetched again from the mail provider; 422 email_not_found where neither has it, or the submission has no email thread of its own. No correspondence is kept on the new submission, so nobody replies to the broker from it.
Any other submission (made through the API or the desk’s New quote request) is made again in its program with the same request fields (insured, agency account, sender, business type, dates, coverage asked, target premium and message), received now, with a copy of each document the caller can open; 422 no_documents where it has none. Its control number and underwriters are not copied.
Either way extraction then starts as on arrival where the workspace turns that on for the program: extraction says what it did. Answers the new submission, resentFrom and arrivedBy.
Only for a workspace administrator who reads the submission: anyone else is 403 forbidden; a submission the caller cannot read is 404. Only where the workspace has underwriting turned on (403 feature_not_enabled).
Idempotency-Key is required: a retry with the same key answers 200 with the submission the first made, and makes nothing again; the same key on another submission is 409 idempotency_conflict.
Alpha: this operation may change or be removed without notice.
curl --request POST \
--url https://api.effectiveai.app/api/v2/insurance/underwriting/submissions/{submissionId}/resend \
--header 'Authorization: Bearer <token>' \
--header 'Idempotency-Key: <idempotency-key>'import requests
url = "https://api.effectiveai.app/api/v2/insurance/underwriting/submissions/{submissionId}/resend"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Idempotency-Key': '<idempotency-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.effectiveai.app/api/v2/insurance/underwriting/submissions/{submissionId}/resend', 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/submissions/{submissionId}/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Idempotency-Key: <idempotency-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://api.effectiveai.app/api/v2/insurance/underwriting/submissions/{submissionId}/resend"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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.post("https://api.effectiveai.app/api/v2/insurance/underwriting/submissions/{submissionId}/resend")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.effectiveai.app/api/v2/insurance/underwriting/submissions/{submissionId}/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"submission": {
"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": {},
"signoffs": []
}
},
"resentFrom": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"arrivedBy": "email",
"extraction": {
"status": "<string>",
"extractionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"code": "<string>",
"message": "<string>"
},
"rejected": [
{
"name": "<string>",
"reason": "<string>"
}
]
}{
"submission": {
"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": {},
"signoffs": []
}
},
"resentFrom": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"arrivedBy": "email",
"extraction": {
"status": "<string>",
"extractionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"code": "<string>",
"message": "<string>"
},
"rejected": [
{
"name": "<string>",
"reason": "<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>"
}{
"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>"
}Authorizations
Headers
Response
A retry with the same key: the submission the first one made.