Request quotes for the file's ready markets
const url = 'https://api.hedgespecialty.com/api/v1/broker/submissions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/quote';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"program_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"producer_email":"example"}'};
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/quote \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "program_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "producer_email": "example" }'Requests each ready market (all, or program_ids) through Hedge’s
durable quote request; the result arrives on
GET .../instant-quotes and GET .../quotes. A market that is not
ready says why in results[]: not_ready (a 409 item with its
missing[]), not_a_fit (with reason), preparing,
already_quoting or already_quoted. The response is 200 when at
least one market was requested or is already quoting or quoted,
else 409 with the same body. Submit scope.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”object
REQUIRED with a machine credential.
Examplegenerated
{ "program_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "producer_email": "example"}Responses
Section titled “Responses”The file’s state and each market’s outcome
object
Created with quote: true: each market quotes as soon as it is ready.
One Hedge Instant Quote program on the file and where it stands.
object
preparing: Hedge is preparing the application (poll). needs_answers: answer missing[]. ready: request the quote. quoting: requested. quoted: quote is set. declined / not_a_fit: closed, with reason.
Plain words: Preparing · Needs 2 answers · Ready to quote · Quoting · Quoted · $1,234.00 · Declined · reason · Not a fit · reason.
object
The canonical key (what shared_answers takes); null for a file-level gap.
The market’s own question id (what answers[program_id] takes).
Plain-language note on what to do. A gap in the business’s own name, address, contact or effective date names the call that sets it: PATCH /broker/submissions/{id}/business and its field.
object
Dollars.
Dollars
A class Hedge picked, or ranked for an unanswered class question, that you must confirm (the same ranking POST /broker/appetite/instant returns). Confirm it with confirm_suggestions, by answering with the same value, or answer another.
object
object
object
The canonical key (what shared_answers takes); null for a file-level gap.
The market’s own question id (what answers[program_id] takes).
Plain-language note on what to do. A gap in the business’s own name, address, contact or effective date names the call that sets it: PATCH /broker/submissions/{id}/business and its field.
Example
{ "markets": [ { "state": "preparing", "quote": { "kind": "quote" } } ], "results": [ { "outcome": "requested" } ]}No market was requested (see results), or not_instant_flow: the file was not created through this flow