The application question schema for an instant-quote program
const url = 'https://api.hedgespecialty.com/api/v1/broker/programs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/application-schema';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.hedgespecialty.com/api/v1/broker/programs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/application-schema \ --header 'Authorization: Bearer <token>'Exactly the questions Hedge’s carrier integration asks for this
program, the schema the carrier application is filed on, projected
for your own application builder: sections of questions with stable
keys, labels, types, options, help, and depends_on visibility
dependencies. Collect answers against these keys, then save them to
the submission’s application via the application-workspace
checkpoint. Optional lob/state check that the program lists that
line / state. Programs Hedge quotes itself have no schema: 404 with
code: no_application_schema pointing at
GET /broker/markets/{market_id}/requirements.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The projected question schema
object
Content hash of the served schema; changes when the carrier’s questions change. Per-application fingerprints for checkpoints come from the application-workspace.
object
object
Stable answer key; use it as the answer key in application checkpoints.
Normalized field type (e.g. text, number, boolean, select, multiselect, date, group, collection).
object
Keys of other questions whose answers decide whether this one applies.
Conditional requiredness when declared: {field, op (equals|not_equals|in|not_in|truthy|falsy), value}.
object
True for collections (answer is a list of items shaped by questions).
Example
{ "program_category": "instant_quote", "contract_version": "structured_v1"}Program not visible to your brokerage, not available for the given line/state, or not an instant-quote program (code: no_application_schema)
The carrier’s schema could not be loaded right now (code: application_schema_unavailable); retry