> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bridgelinepf.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Partner quickstart

> For distribution partners: check your partner key, price a deal at the agency's cost, send the agency a link and see who's interested.

This page is for distribution partners (wholesalers, MGAs and software platforms quoting for the agencies they work with) using a partner API key. Every partner endpoint is under `/v1/partner/`. If you're an agency, use the [quickstart](https://docs.bridgelinepf.com/quickstart.md) instead.

Every sample sends `Bridgeline-Version: 2026-09-23` to pin the API version. See [versioning](https://docs.bridgelinepf.com/changelog.md#versioning).

**1. Get a partner key**

Bridgeline turns on API access for your organization. Then an admin of your organization signs in to the partner console at [portal.bridgelinepf.com/wholesaler/sign-in](https://portal.bridgelinepf.com/wholesaler/sign-in), opens **Settings**, then **API keys**, and creates a key with `quotes:write` and `quotes:read`. The key is shown once.

Start with a test key (`bl_test_`) if test mode is on for you: real pricing, quotes kept apart from live ones, and nobody is emailed.

```bash theme={null}
export BRIDGELINE_API_KEY="bl_test_..."   # or bl_live_...
```

**2. Check the key**

```bash theme={null}
curl https://portal.bridgelinepf.com/api/v1/partner/whoami \
  -H "Authorization: Bearer $BRIDGELINE_API_KEY" \
  -H "Bridgeline-Version: 2026-09-23"
```

```json Response theme={null}
{
  "object": "partner_whoami",
  "livemode": false,
  "partner": {"name": "Gulf Coast Wholesale Brokers"},
  "api_key": {"type": "partner", "scopes": ["quotes:read", "quotes:write"]},
  "api_version": "2026-09-23"
}
```

A `403 KEY_TYPE_NOT_ALLOWED` means the key is an agency key. A `403 API_ACCESS_NOT_ENABLED` (live key) or `TEST_MODE_NOT_ENABLED` (test key) means that mode isn't on for your organization yet: ask your Bridgeline contact.

**3. Price a deal**

Send the insured and the policies, the same deal fields an agency sends. There is no `broker_email`.

```bash theme={null}
EFFECTIVE=$(date -u +%F)
EXPIRES=$(date -u -d '+365 days' +%F 2>/dev/null || date -u -v+365d +%F)  # GNU date, or BSD/macOS date

QUOTE=$(curl -s https://portal.bridgelinepf.com/api/v1/partner/quotes \
  -H "Authorization: Bearer $BRIDGELINE_API_KEY" \
  -H "Bridgeline-Version: 2026-09-23" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "client_reference_id": "SUB-2026-0412",
    "insured": {
      "name": "Lone Star Fabrication LLC",
      "address": {"state": "TX"}
    },
    "policies": [{
      "premium": "46100.00",
      "minimum_earned": {"rate": 0.25},
      "effective_date": "'"$EFFECTIVE"'",
      "expiration_date": "'"$EXPIRES"'",
      "carrier": {"name": "Scottsdale Insurance Company"},
      "coverages": [{"type": "general_liability"}]
    }]
  }' | tee quote.json | jq -r .id)
echo "$QUOTE"
```

This keeps the response in `quote.json` and the quote's id in `$QUOTE` (it needs [`jq`](https://jqlang.org)). You get `201 Created` with a `partner_quote`: its `id` (`pqt_...`), `price_basis: "agency_cost"`, `eligibility` and `options`, every down payment and term we can offer. The figures are what the **agency** pays, before it adds its own compensation. A deal we can't finance is still a `201`, with `eligibility.status: "ineligible"` and no options. See [partner quotes](https://docs.bridgelinepf.com/guides/partner-quotes.md).

**4. Send the agency a link**

```bash theme={null}
curl -X POST "https://portal.bridgelinepf.com/api/v1/partner/quotes/$QUOTE/hosted-link" \
  -H "Authorization: Bearer $BRIDGELINE_API_KEY" \
  -H "Bridgeline-Version: 2026-09-23" \
  -H "Idempotency-Key: $(uuidgen)" | tee link.json | jq -r .url
```

The response's `url` opens a page in your brand that shows the agency every option. Store it: it's returned only here. Email it to the agency yourself; we don't send it.

**5. See who's interested**

When someone at the agency picks an option and taps **I'm interested**, we email you and the quote's `interest` is set. To find those quotes:

```bash theme={null}
curl "https://portal.bridgelinepf.com/api/v1/partner/quotes?interested=true" \
  -H "Authorization: Bearer $BRIDGELINE_API_KEY" \
  -H "Bridgeline-Version: 2026-09-23"
```

Each quote in `data` has `interest`: when, the option, the name and email they typed, and their note. With a test key, open the link yourself and send the form: the interest is recorded and nobody is emailed.

## Next steps

> [card] [Partner quotes](https://docs.bridgelinepf.com/guides/partner-quotes.md)
>
> The price basis, the link and what the agency sees.

> [card] [List partner quotes](https://docs.bridgelinepf.com/api-reference/partner/quotes/list.md)
>
> Filters and paging.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.