Attach a PDF (ACORD, loss runs, supplement)
POST
/broker/submissions/{submission_id}/documents
const url = 'https://api.hedgespecialty.com/api/v1/broker/submissions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/documents';const form = new FormData();form.append('file', 'file');form.append('display_name', 'example');form.append('ask_key', 'example');form.append('document_type', 'loss_run');form.append('lines', 'example');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.hedgespecialty.com/api/v1/broker/submissions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/documents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file=@file \ --form display_name=example \ --form ask_key=example \ --form document_type=loss_run \ --form lines=exampleMultipart upload, PDF only, 15 MB max per file. Uploaded applications
are auto-extracted into the submission brief. To answer an ask from
GET .../asks with a document, send its key as ask_key: a loss
run uploaded on specialty_loss_runs:{line} is stored as that line’s
loss run and satisfies the ask.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”submission_id
required
string format: uuid
Request Body
Section titled “Request Body”Media typemultipart/form-data
object
file
required
string format: binary
display_name
string
ask_key
The key of the ask this document answers
string
document_type
Implied by ask_key when omitted
string
lines
Lines of business the document covers; implied by a per-line ask_key
Array<string>
Responses
Section titled “Responses”Stored
Not a valid PDF
PDF is over the 15 MB limit. Split the package or compress the PDF.
A document type a broker may not assert
Daily upload limit reached