Skip to main content
Every error response carries a code, and its doc_url links to that code on this page. Branch on code, never on message. The errors guide covers the error format and how to handle errors in code. Codes are a stable contract: we add new ones and never rename or repurpose one. If you meet a code that isn’t listed here, handle it by its type and HTTP status.

400 and 422: the request

INVALID_REQUEST

400 Bad Request · type invalid_request · Open page The request as a whole was refused before we read it, today only because the body is over 2 MB. When it happens The request body is larger than 2 MB, judged by its Content-Length header or by what actually arrived. A quote with 25 policies and every field at its longest is about 1.3 MB, so a real request shouldn’t come close. What to do Check that you aren’t sending something you didn’t mean to, such as an encoded document. Don’t retry the same request.

INVALID_JSON

400 Bad Request · type invalid_request · Open page The request body isn’t valid JSON. When it happens The body of a POST couldn’t be parsed as JSON: a trailing comma, a single-quoted string, or a body built by string concatenation. (An empty body is read as {} and then fails validation instead.) What to do Serialize the body with your language’s JSON library, and send Content-Type: application/json.

VALIDATION_FAILED

422 Unprocessable Entity · type invalid_request · Open page The body is valid JSON but breaks the endpoint’s rules. details lists every problem at once. When it happens One or more fields are missing, have the wrong type or format, are out of range, or aren’t fields at all. POST /v1/quotes checks the whole body and reports every problem in details, each with its own code, param and message; the top-level param and message describe the first. Common causes:
  • money sent as a JSON number (46100) instead of a string ("46100.00");
  • a rate sent as a percentage (25) instead of a fraction (0.25);
  • insured.address.state that isn’t a two-letter USPS state code (detail code INVALID_FORMAT). A full state name gets Use the two-letter state code, e.g. "TX" for Texas.; anything else gets Must be a two-letter US state code, e.g. "TX". A valid code for a state outside the program isn’t an error: it’s a 201 ineligible quote;
  • minimum_earned with both or neither of rate and amount;
  • a coverage type that isn’t on the list, or a misspelled field name;
  • a blank broker_email;
  • more than 25 policies (one TOO_MANY detail, before anything else is checked).
What to do Fix each field named in details and send the request again. A request that fails validation never uses up its Idempotency-Key, so you can reuse the key. It does count toward your rate limits, so don’t retry it unchanged.

INVALID_API_VERSION

400 Bad Request · type invalid_request · Open page The Bridgeline-Version header isn’t a released API version. When it happens You sent a Bridgeline-Version header that isn’t a released API version. Only 2026-09-23 is released today, so anything else is refused: a malformed value such as 2026-9-23 or v1, and also a real date such as 2099-01-01 or 2026-10-01. What to do Send Bridgeline-Version: 2026-09-23, or leave the header out to use the version your API key is pinned to. See versioning.

IDEMPOTENCY_KEY_INVALID

400 Bad Request · type invalid_request · Open page The Idempotency-Key header isn’t 1 to 255 printable ASCII characters. When it happens The Idempotency-Key header is empty, longer than 255 characters, or contains characters outside printable ASCII. What to do Use a UUID v4 (36 characters). See idempotency.

IDEMPOTENCY_KEY_REQUIRED

400 Bad Request · type invalid_request · Open page This endpoint requires an Idempotency-Key header, and the request had none. When it happens You called an endpoint that requires an Idempotency-Key header without one. Today that’s POST /v1/applications/{id}/send and POST /v1/applications/{id}/void, where a duplicate would email the insured twice. Every other write takes a key but doesn’t require one. Nothing was done, and the request used up no key. What to do Send the request again with an Idempotency-Key, and send one on every write so you never see this code. See idempotency.

INVALID_PAGINATION

400 Bad Request · type invalid_request · Open page A list request’s limit isn’t a whole number from 1 to 100, or its starting_after isn’t an id your key can see. When it happens A list endpoint (GET /v1/quotes, GET /v1/applications, or GET /v1/partner/quotes for a partner key) got a limit that isn’t a whole number from 1 to 100, or a starting_after your key can’t see. A starting_after that is malformed, belongs to someone else, was created with a key of the other mode, or doesn’t exist is the same error, so it never tells you whether that id exists. What to do Send a limit between 1 and 100 (the default is 20). For starting_after, pass the next_cursor from the previous page of the same list, with the same key.

401: the key

INVALID_API_KEY

401 Unauthorized · type authentication · Open page The API key is missing, malformed or not recognized. When it happens
  • There’s no Authorization header, or it doesn’t start with Bearer .
  • The key is truncated or mistyped. Every key carries a checksum, so a typo is caught straight away.
  • The key doesn’t exist, or its prefix doesn’t match its mode.
What to do Check you’re sending the whole key, exactly as it was shown when it was created, as Authorization: Bearer bl_live_.... A lost key can’t be recovered: an agency admin can revoke it and create a new one under API Keys in the portal.

KEY_REVOKED

401 Unauthorized · type authentication · Open page The API key has been revoked. When it happens An agency admin revoked this key in the portal. Revocation is immediate and permanent. What to do Ask an agency admin to create a new key under API Keys in the portal, and replace the old one in your secret store.

KEY_EXPIRED

401 Unauthorized · type authentication · Open page The API key has passed its expiry date. When it happens The key was created with an expiry date, and that date has passed. What to do Ask an agency admin to create a new key. To rotate without downtime, create the new key before the old one expires; a key can be used alongside another.

403: permission

API_ACCESS_NOT_ENABLED

403 Forbidden · type permission · Open page API access isn’t turned on for your agency or partner account. When it happens Bridgeline hasn’t enabled API access for your agency yet, or it has been turned off. During the beta, API access is by invitation. When it’s off, every key your agency holds gets this answer. The same applies to a partner account: Bridgeline enables API access partner by partner, and while it’s off every live partner key gets this answer. What to do Contact your Bridgeline contact. For an agency, links to interactive quotes you’ve already sent keep working while access is off; see links outlive API access.

MISSING_SCOPE

403 Forbidden · type permission · Open page The API key lacks a scope this endpoint needs. When it happens The endpoint needs a scope the key wasn’t given, for example quotes:write to create a quote. The message names the missing scopes. What to do Scopes are set when a key is created. Ask an agency admin to create a key with the scopes you need, then revoke the old one. See scopes.

BROKER_NOT_ACTIVE

403 Forbidden · type permission · Open page The broker_email you sent isn’t an active broker at your agency. When it happens You named a broker in broker_email, and they aren’t an active broker at the key’s agency. We give the same answer whether they’re inactive, invited but not yet active, or at another agency. What to do Check the email matches the broker’s login in the Bridgeline portal. If they’re new, an agency admin can invite or activate them there. Or leave broker_email out to act as the key’s default broker.

ACTING_BROKER_NOT_ALLOWED

403 Forbidden · type permission · Open page A broker key can only act as its own broker. When it happens The request came from a broker key and named a different broker in broker_email. What to do Leave broker_email out, or use an agency key, which can act as any active broker at your agency. See key types.

DEFAULT_BROKER_INACTIVE

403 Forbidden · type permission · Open page The API key’s default broker is no longer active. When it happens The broker this key acts as by default has been deactivated, and the request didn’t name another broker. Reads always use the default broker, so they fail too. We never move a request to someone else silently. What to do Ask an agency admin to create a new key with an active default broker. With an agency key, a write can also name an active broker in broker_email.

TEST_MODE_NOT_ENABLED

403 Forbidden · type permission · Open page Test mode isn’t turned on for your agency or partner account, so its test keys are refused. When it happens You used a test key (bl_test_), and test mode isn’t enabled for your agency, or has been turned off. Bridgeline enables test mode agency by agency. An agency admin who tries to create a test key in the portal gets the same answer. The same applies to a partner account’s test keys: Bridgeline enables test mode partner by partner. Test mode is enabled separately from live API access: this code is only ever about test keys, and your live keys keep working either way. What to do Ask your Bridgeline contact to enable test mode for your agency or partner account. See test and live mode.

TEST_MODE_ONLY

403 Forbidden · type permission · Open page A test helper was called with a live key. Test helpers need a test key. When it happens You called a test helper, an endpoint under /v1/test_helpers/, with a live key (bl_live_). Test helpers act out what a person would do, such as your client tapping I’m interested, so they only work on test data, with a test key. What to do Call it with a test key (bl_test_), on a quote that key created. See test and live mode.

KEY_TYPE_NOT_ALLOWED

403 Forbidden · type permission · Open page This API key’s type can’t call this endpoint. When it happens This API key’s type can’t call this endpoint. Each endpoint takes one type of key, and the key you sent is a valid key of another type. What to do Use a key of the type the endpoint takes. Retrying with the same key won’t succeed. The error’s message says which type the endpoint takes. See key types and partner keys.

APPLICATIONS_NOT_ENABLED

403 Forbidden · type permission · Open page Creating applications through the API isn’t turned on for your agency, or the key is a test key. When it happens You called POST /v1/quotes/{id}/accept, or POST /v1/applications/{id}/send or POST /v1/applications/{id}/void, which need the same access, and one of these is true:
  • Accepting quotes isn’t turned on for your agency. It is off by default and Bridgeline turns it on agency by agency, separately from API access.
  • You used a test key (bl_test_). Accepting quotes works with live keys only for now. The message says so: “Accepting quotes is not available with test keys yet. Use a live key.”
Nothing was created, and the request is not stored under its Idempotency-Key. The same key works once access is on. What to do Ask your Bridgeline contact to turn it on for your agency. With a test key, stop at the quote: create it, read it and act out the insured’s response with the test helper. Your other endpoints keep working either way.

STRAIGHT_THROUGH_NOT_ENABLED

403 Forbidden · type permission · Open page Sending an agreement through the API isn’t turned on for your agency, or the key is a test key. When it happens You asked the API to send a finance agreement, with send: true on POST /v1/quotes/{id}/accept or with POST /v1/applications/{id}/send, and one of these is true:
  • Straight-through binding isn’t turned on for your agency. It is off by default and Bridgeline turns it on agency by agency, on top of accepting quotes.
  • You called send with a test key (bl_test_). Sending works with live keys only for now.
Nothing was created and nothing was sent, and the request is not stored under its Idempotency-Key. The same key works once it is on. What to do Ask your Bridgeline contact to turn it on. Until then, accept without send, and your broker sends the agreement from the portal.

404, 405 and 409

NOT_FOUND

404 Not Found · type not_found · Open page There’s no object with this id that your key can see. When it happens The id is malformed, doesn’t exist, or belongs to something your key can’t see. All of these get the same answer, so an id never reveals whether a deal exists elsewhere:
  • a quote or application from another agency;
  • a quote in the other mode (a test key reading a live quote, or the reverse), or any application read with a test key, since test keys don’t see applications yet;
  • a colleague’s quote or application, read with a broker key, which sees only its own broker’s;
  • for a partner key, any quote your partner account didn’t create with a key of the same mode.
What to do Check the id (agency quote ids start with qte_, partner quote ids with pqt_ and application ids with app_, all 26 characters), and that the key is the right mode and type. An agency key can see every quote and application in the agency.

METHOD_NOT_ALLOWED

405 Method Not Allowed · type invalid_request · Open page The endpoint exists, but not with this HTTP method. When it happens Reserved. Today, a request with an unsupported method on an existing path gets a 405 with no JSON body rather than this error. What to do Check the method against the API reference: POST to create, GET to read.

QUOTE_EXPIRED

409 Conflict · type conflict · Open page The quote is past its expires_at, so it can’t get a new link, a response or an accept. When it happens The quote’s expires_at has passed, and you called either:
  • POST /v1/quotes/{id}/hosted-link, or POST /v1/partner/quotes/{id}/hosted-link with a partner key. Quotes expire 30 days after they’re created, and a new link never extends that.
  • POST /v1/test_helpers/quotes/{id}/interest, on a test quote. An expired quote takes no response, just as its interactive quote doesn’t.
  • POST /v1/quotes/{id}/accept. An expired quote can’t become an application.
What to do Create a new quote with the same details, and send your client its hosted_url (or, in test mode, act out the response on the new quote, or accept the new quote). For a partner quote, create a new quote and then a link for it.

QUOTE_ALREADY_INTERESTED

409 Conflict · type conflict · Open page The test quote already has your client’s response. A quote takes one response only. When it happens You called POST /v1/test_helpers/quotes/{id}/interest on a test quote whose status is already interested, whether from an earlier call or from someone tapping I’m interested on its interactive quote. Like the interactive quote itself, a quote takes one response only. What to do Read the response that’s already recorded with GET /v1/quotes/{id}. To act it out again, create a new test quote.

QUOTE_ALREADY_ACCEPTED

409 Conflict · type conflict · Open page This quote already became an application. A quote can be accepted one time only. When it happens You called POST /v1/quotes/{id}/accept on a quote that already became an application. A quote becomes one application, one time. A second accept is refused whichever option it names, and no second application is created. error.application_id is that application’s id (app_…). Read the id from this field, not from message. A call with the same Idempotency-Key never gets this code for an accept that same key completed: it gets the stored answer back instead. You get it when you send a different key or no key, when your key is more than 24 hours old, or when your first call failed outright and another call accepted the quote before your retry. What to do Read the application with GET /v1/applications/{id}, using error.application_id. It may have been created by a different call than the one you just made, with that call’s option, contact and owner, so compare accepted_option_id and client_reference_id with what you sent before you treat it as yours. To change the option, the broker picks a different one at the pricing step in the portal. See retries.

QUOTE_NOT_ACCEPTABLE

409 Conflict · type conflict · Open page This quote can never be accepted. The details say why. Create a new quote. When it happens You called POST /v1/quotes/{id}/accept on a quote that can’t become an application, now or later. details[] says why. Each entry has a code, a message and a param. Where one field of the quote is the cause, param is its path in the request that created the quote (insured.address, policies[0].document_type). Codes about the quote as a whole (NOT_PRICED, APPLICATION_REMOVED, DEMO_QUOTE, QUOTE_DATA_UNREADABLE, NOT_AVAILABLE) carry param: "id", the quote id in the path. New detail codes can appear. Nothing was created. What to do Create a new quote with POST /v1/quotes, filling in what the details name, then accept that one. Retrying the same quote returns the same answer.

QUOTE_PRICE_CHANGED

409 Conflict · type conflict · Open page The quoted price is no longer good, so nothing was created. Create a new quote. When it happens You called POST /v1/quotes/{id}/accept, with or without send, with straight-through binding turned on for your agency, and the quote’s price did not pass the price check. details[] has one entry that says why: Nothing was created: no application, and the quote is not accepted. What to do Create a new quote with POST /v1/quotes and accept that one. Accepting the same quote again returns the same answer until rates move back.

APPLICATION_NOT_SENDABLE

409 Conflict · type conflict · Open page The application’s agreement can’t be sent through the API as it stands. The details list every reason. When it happens You called POST /v1/applications/{id}/send and something has to happen first. details[] lists every reason, not only the first. Each entry has a code and a message, and a param where one field is the cause. The common ones: The full list is under straight-through reasons. New codes can appear. Nothing was sent. What to do Fix what you can from the list and call send again with a new Idempotency-Key (this answer is stored under the one you sent). For the rest, your broker finishes the application in the portal at its portal_url.

APPLICATION_PRICE_LAPSED

409 Conflict · type conflict · Open page The price fixed when the quote was accepted is no longer good, so nothing was sent. If the quote has expired, the application is also canceled. When it happens You called POST /v1/applications/{id}/send. Before an agreement goes out we run the same price check as at accept, measured from the day the quote was priced, and it did not pass. details[] has one entry that says why: Nothing was sent. Only EXPIRED cancels the application: its status becomes canceled, its cancellation says price_lapsed, and it stays closed. Any later send or void on it answers 409 APPLICATION_CANCELED. This also applies to a send after a void: voiding does not extend the price. An agreement that is already out is never affected: it keeps its price. If our own rate data can’t be read, nothing is canceled. That is a 503, and you retry. What to do Create a new quote and accept it. That makes a new application at today’s price. For RATES_MOVED and NUMBERS_DIFFER you can also send again later with a new Idempotency-Key; the application is still open, and the check runs again each time.

APPLICATION_MANAGED_IN_PORTAL

409 Conflict · type conflict · Open page An agent changed this application’s price in the portal, so it is managed there now. When it happens You called POST /v1/applications/{id}/send on an application whose price was fixed when its quote was accepted, and an agent has since changed the deal in the portal: they chose another option, changed the spread, or edited a policy in a way that changes the price. The application’s straight_through.route reads managed_in_portal. Opening the application in the portal, or correcting a name, an address, the phone or the signer there, does not do this. You also get it from POST /v1/applications/{id}/void when the agreement that is out was sent from the portal at an agent’s price. Nothing was sent or voided. What to do Nothing through the API. The agent sends the agreement from the portal, at the price they set, and withdraws it there. Follow it with GET /v1/applications/{id}.

APPLICATION_CANCELED

409 Conflict · type conflict · Open page The application was canceled earlier and is closed for good. Its cancellation field says why. When it happens You called POST /v1/applications/{id}/send or POST /v1/applications/{id}/void on an application whose status is canceled. A canceled application is closed for good: nothing can be sent on it, and it never reopens. This error has no details. Why and when the application was canceled is on the application itself, in cancellation: read it with GET /v1/applications/{id}. What to do Create a new quote and accept it. That makes a new application at today’s price.

AGREEMENT_ALREADY_SIGNED

409 Conflict · type conflict · Open page The agreement has been signed, so it can no longer be voided through the API. When it happens You called POST /v1/applications/{id}/void after the insured, or the person who countersigns for your agency, signed the agreement. We check the live signing state before we void, so this is the answer even when the signature is only seconds old. Nothing was voided. The agreement stands, and the application’s status is pending_activation or active. What to do Nothing through the API. Once the insured has signed, the loan exists. If the agreement is wrong, contact Bridgeline: unwinding a signed agreement is done by a person.

AGREEMENT_NOT_VOIDABLE

409 Conflict · type conflict · Open page The application has no sent agreement that can be voided. The details say why. When it happens You called POST /v1/applications/{id}/void and there is no agreement the API can withdraw. details[] has one entry that says why: New codes may be added. Nothing was voided. What to do Read the application with GET /v1/applications/{id}: its status and agreement say where it stands. This answer is stored under the Idempotency-Key you sent, so a later void needs a new key.

IDEMPOTENCY_KEY_REUSED

409 Conflict · type conflict · Open page This Idempotency-Key was already used for a different request. When it happens Within the last 24 hours, the same key was sent with a different request: another path, another body, or another acting broker. Bodies are compared byte for byte, so re-serializing the same data can count as different (keys reordered, spacing changed). What to do Use a new key for a new request. To retry, resend the exact bytes you sent the first time. See idempotency.

IDEMPOTENCY_REQUEST_IN_PROGRESS

409 Conflict · type conflict · Open page The first request with this Idempotency-Key is still running. When it happens You retried while the original request with the same key was still being processed, usually because the first attempt timed out on your side. What to do Wait for the Retry-After header (1 second) and retry with the same key. You’ll get the original response once it finishes.

429 and 5xx

RATE_LIMITED

429 Too Many Requests · type rate_limit · Open page Too many requests: you’re over a per-minute or daily limit. When it happens The key went over 60 requests a minute, or POST /v1/quotes went over 500 quotes a day for the key or 2,000 a day for your agency. Every authenticated request counts, including ones that fail validation. Partner keys have the same limits on POST /v1/partner/quotes, counted for the partner account instead of an agency. What to do Wait the number of seconds in Retry-After, then retry with the same Idempotency-Key. For a daily limit, that’s until midnight UTC. See rate limits, which also covers partner keys.

INTERNAL

500 Internal Server Error · type api_error · Open page Something went wrong on our side. When it happens An unexpected error. We log every one with its request id. What to do Retry with the same Idempotency-Key, with backoff. Usually nothing was stored and the retry runs normally. If a retry returns this same 500 with the header Idempotent-Replayed: true, that’s the stored outcome of a request that may have taken effect: stop retrying that key, and handle it like IDEMPOTENCY_RECORD_LOST. If it keeps happening, contact us with the request_id.

IDEMPOTENCY_RECORD_LOST

500 Internal Server Error · type api_error · Open page The original request with this key may have finished, but its response was lost. This key will never succeed. When it happens You retried with an Idempotency-Key whose original request started more than two minutes ago and never recorded a response, for example because the server stopped after doing the work but before saving the answer. We can’t replay a response we don’t have, and we won’t run the request again in case it already took effect. What to do Don’t retry with this key; it will keep failing. There’s no Retry-After.
  • POST /v1/quotes: create the quote again with a new key. A duplicate quote is harmless: nothing is sent to anyone, and it expires on its own.
  • POST /v1/applications/{id}/send: read the application. If agreement is set, it was sent. If not, call send again with a new key: an application never gets a second agreement.
  • POST /v1/quotes/{id}/hosted-link: call it again with a new key. That revokes whichever link is current and returns a fresh one.
See idempotency.

SERVICE_UNAVAILABLE

503 Service Unavailable · type api_error · Open page Something the request needs is unavailable right now. Nothing was stored under your key; retry shortly. When it happens POST /v1/quotes or POST /v1/partner/quotes couldn’t read something it needs to price safely, such as current market rates or pricing settings. We refuse to quote rather than guess. What to do Wait the number of seconds in Retry-After (30), then retry with the same Idempotency-Key. Nothing was stored, so the retry runs normally. The same code answers POST /v1/quotes/{id}/accept (with straight-through binding on) when we can’t read current rates to check the quote’s price, and POST /v1/applications/{id}/send when the rates can’t be read or the e-signature service can’t take the agreement. Nothing was created or sent in either case, and the retry is the same: wait, then send the same request with the same Idempotency-Key. POST /v1/applications/{id}/void answers it when we can’t confirm with the e-signature service that nobody has signed, or can’t finish the void. Retry with the same Idempotency-Key: the retry finishes a void that was half done. GET /v1/applications and GET /v1/applications/{id} answer it when we can’t read the program settings an application’s requirements are checked against. Wait, then read again. If you’re a partner and it keeps happening for every deal, your account’s pricing settings may need attention: contact Bridgeline.