Skip to main content
GET
/
api
/
external
/
companies
/
{companyId}
/
submissions
/
{submissionId}
Get Submission
curl --request GET \
  --url https://app.aiinsurance.io/api/external/companies/{companyId}/submissions/{submissionId} \
  --header 'Authorization: <api-key>'
import requests

url = "https://app.aiinsurance.io/api/external/companies/{companyId}/submissions/{submissionId}"

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}/submissions/{submissionId}', 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}/submissions/{submissionId}",
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}/submissions/{submissionId}"

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}/submissions/{submissionId}")
.header("Authorization", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://app.aiinsurance.io/api/external/companies/{companyId}/submissions/{submissionId}")

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",
  "number": "SUB-2024-001",
  "name": "Acme Corp Submission",
  "status": "quoted",
  "type": "new_business",
  "primaryInsuredName": "Acme Corporation",
  "applicationId": "550e8400-e29b-41d4-a716-446655440010",
  "renewingPolicyId": null,
  "renewingPolicyNumber": null,
  "declineReason": null,
  "quoteIds": [
    "660e8400-e29b-41d4-a716-446655440001",
    "660e8400-e29b-41d4-a716-446655440002"
  ],
  "createdAt": "2024-01-15T10:30:00.000Z",
  "updatedAt": "2024-01-16T14:20:00.000Z",
  "closedAt": null,
  "boundAt": null
}

Authorizations

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header.

Path Parameters

companyId
string<uuid>
required

Company identifier

submissionId
string<uuid>
required

Submission identifier

Query Parameters

expand
enum<string>

Expand related entities. Use quotes to include full quote details instead of IDs.

Available options:
quotes

Response

Submission details

A submission containing policy information and associated quotes

id
string<uuid>

Submission identifier

companyId
string<uuid>

Company identifier

number
string

Submission number (auto-generated)

Example:

"SUB-2024-001"

name
string | null

Submission name (optional)

status
enum<string>
Available options:
in_progress,
submitted,
quote_in_progress,
quoted,
bound,
declined,
expired,
cancelled
type
enum<string>

Internal submission type

Available options:
new_business,
renewal,
endorsement,
cancellation,
reinstatement
primaryInsuredName
string | null

Name of the primary insured

applicationId
string<uuid> | null

Associated application ID

renewingPolicyId
string<uuid> | null

Policy ID being renewed (for renewal submissions)

renewingPolicyNumber
string | null

Policy number being renewed (for renewal submissions)

declineReason
string | null

Reason for declining the submission (when status is declined)

isEmailSubmission
boolean

Whether this submission appears in the Inbox tab

quoteIds
string<uuid>[]

IDs of quotes associated with this submission

createdAt
string<date-time>

When the submission was created (ISO 8601)

updatedAt
string<date-time> | null

When the submission was last updated (ISO 8601)

closedAt
string<date-time> | null

When the submission was closed (ISO 8601)

boundAt
string<date-time> | null

When the submission was bound (ISO 8601)