Requests
- Base URL:
https://portal.bridgelinepf.com/api. Every path starts with/v1. - HTTPS only. Bodies are JSON, sent with
Content-Type: application/json. A body larger than 2 MB is refused. - Auth:
Authorization: Bearer <key>. See authentication.
Formats
Money is a string so that no amount is ever rounded by a floating-point parser. Send
"46100.00", not 46100: a JSON number is rejected with a hint.
Rates are fractions everywhere: minimum_earned.rate: 0.25 means 25%, and so does down_payment_rate: 0.25. Sending 25 for a rate is rejected, with a hint to send 0.25.
Ids
Ids are opaque strings with a prefix that says what they are:
Apart from
opt_, don’t parse ids or assume anything about their contents. Treat a malformed id as you would any unknown one: the API answers 404.
Quote status
A quote’sstatus is worked out each time you read it, in this order:
acceptedonce the quote has been accepted, whatever else is true;- otherwise
interestedonce your client has said they’re interested, even afterexpires_at; - otherwise
expiredfromexpires_aton; - otherwise
active.
expires_at, and the next read says expired. A partner quote is only ever active or expired; the agency’s response is in its interest field.
Has someone responded?
On both kinds of quote, the one signal isinterest: it is null until someone says they’re interested, and set from then on, whatever status says later (an agency quote that was then accepted still has it). On an agency quote it’s your client’s response on the interactive page; on a partner quote it’s the agency’s. To find these quotes, list with interested=true: GET /v1/quotes for an agency or broker key, GET /v1/partner/quotes for a partner key. The fields inside interest differ between the two objects.
Pagination
List endpoints (GET /v1/quotes, GET /v1/applications and, for partner keys, GET /v1/partner/quotes) return a page, newest first:
limitis 1 to 100, default 20. Anything else is400 INVALID_PAGINATION.starting_aftertakes thenext_cursorfrom the previous page. A cursor your key can’t see is400 INVALID_PAGINATION.- Paging is forward only: there’s no
ending_before.next_cursorisnullon the last page, whenhas_moreisfalse. - An unknown query parameter, or a parameter given twice, is
422 VALIDATION_FAILED.
Nulls and unknown fields
nullmeans “not provided”. In a request, a field you send asnullis the same as one you leave out. In a response,nullmeans there’s no value, such asselected_option_idbefore your client chooses.- Unknown request fields are rejected, with a “did you mean” hint. A typo never silently does nothing.
- Responses can gain fields. Your code should ignore fields it doesn’t know.
Your ids
Store your own identifiers on our objects, so you never need a mapping table.
Both come back exactly as you sent them, on every response.
metadata is {} when you sent none, and policies come back in the order you sent them, each with your metadata. Don’t put sensitive personal data in either.
Enums only grow
Values such asstatus, eligibility.status, coverage type, and assumption, warning and error codes can gain new members. We never rename or repurpose one. If you generate a client from the OpenAPI spec, treat every enum as open: values may be added, so don’t let an unknown one fail deserialization. Write your code so an unknown value falls into a safe default, for example:
- an unknown quote
status: treat the quote as not usable; - an unknown coverage
type: treat it asother; - an unknown error
code: handle it by itstypeand HTTP status.