Skip to main content
This guide takes one deal from quote to an agreement out for signature, through the API alone. It needs two things Bridgeline turns on agency by agency: accepting quotes, and straight-through binding for sending. Without straight-through binding, accept still works and your broker sends the agreement from the portal.
Test keys can’t accept or send. POST /v1/quotes/{id}/accept, send and void take live keys only, so your first accept creates a real application and your first send emails a real signing request. Rehearse it safely as described in a safe first run.
You need a live agency key with quotes:write, quotes:read, applications:read, applications:write and agreements:write.

1. Quote with everything a binding needs

Straight-through binding sends an agreement nobody reviewed, so the quote must state every fact a broker would otherwise confirm. Anything unstated or assumed puts the deal on the portal path instead. This body states them all:
The quote is kept in quote.json, its id in $QUOTE and its recommended option in $OPTION (this needs jq). Check eligibility.status in quote.json before you go on. What each part settles: Some reasons depend on our records or your agency’s setup, not on the body: a carrier we haven’t matched yet, an insured close to but not the same as an existing client, or nobody at your agency able to countersign. The full list is under straight-through reasons. The quote must also be eligible. The next step accepts its recommended option; to accept another, set $OPTION to any id in options.

2. Accept and send

Accept the option, name the person who signs for the insured, state your commission on each policy, and ask to send:
The application is kept in application.json and its id in $APP.
  • borrower_contact is required. phone is optional on a plain accept and required with send: true.
  • policies has one entry per policy of the quote, in order. With send: true every policy needs a commission_rate: a fraction of the base premium, so 0.125 is 12.5%.
  • Keep the Idempotency-Key until you have an answer. See accept with recovery.
On a clean deal the price is fixed at that option and the agreement goes out. The 201 is the application, now awaiting_signature, and Bridgeline emails the signing request to borrower_contact.email:
201 Created
The figures and dates are illustrative. If the 201 comes back with agreement: null on a fixed price, nothing was sent: call POST /v1/applications/{id}/send, which sends it or tells you why not.

3. When the deal takes the portal path

If anything on the deal needs a person, the accept still succeeds, but nothing is sent. The application waits for your broker in the portal, and straight_through.reasons lists every reason:
201 Created
Your broker reviews, prices and sends it from the portal. Send them portal_url; we don’t notify them. A reason that’s about your data, such as MISSING_POLICY_NUMBER, is best fixed in your system before the next quote.

4. Follow the application

There are no webhooks yet. Poll GET /v1/applications/{id} every few minutes and watch status:
Stop polling at active or canceled. Treat a status you don’t know as still in progress. See applications.

A safe first run

Because accept and send are live only, rehearse on a real but harmless deal:
  1. Quote a deal with your own details, and accept it with send: true and your own inbox as borrower_contact.email. Use an address that isn’t the countersigner’s on the application, or the deal takes the portal path with SIGNER_CONFLICT.
  2. Check the signing email arrives. Don’t sign it.
  3. Void it before anyone signs, with POST /v1/applications/{id}/void:
    The signing link stops working and the application goes back to ready_for_agreement, with the same fixed price. Nothing was signed, so no loan exists and no money moves.
  4. The application stays in your broker’s portal. A broker or agency admin deletes it there. The quote then reads accepted with application_id: null and can’t be accepted again.
Each application allows at most 3 voids through the API. Bridgeline’s operations team is notified of every new application, unless your agency is a demo account.