> ## 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.

# Create a link to a partner quote

> Returns a link to a page that shows this quote, in your brand, to the agency you are quoting for: the insured's name, the policies and every option at the agency's cost. Each call replaces the previous link, which stops working at once; nothing else about the quote changes, and expires_at never moves. An expired quote is a 409 QUOTE_EXPIRED. Retrying with the same Idempotency-Key returns the same link without replacing it again. A quote created by anyone else, or with a key of the other mode, is a 404.

For partner API keys. Returns a link to a page that shows the quote to the agency you're quoting for: your logo and colour, the insured's name, the policies, and every option at the **agency's cost**. See [send the quote to the agency](https://docs.bridgelinepf.com/guides/partner-quotes.md#send-the-quote-to-the-agency).

* Each call replaces the link. The previous one stops working at once, for everyone, and shows the same page as a link that never existed. That is how you stop a link you sent by mistake.
* Nothing else about the quote changes, and `expires_at` never moves. An expired quote returns [`409 QUOTE_EXPIRED`](https://docs.bridgelinepf.com/errors/QUOTE_EXPIRED); create a new quote instead.
* The same `Idempotency-Key` returns the same link without replacing it again. A new key, or no key, replaces the last link and makes another.
* The link is returned here only. The quote keeps only a hash of the link's token, so store `url` if you'll need it again. A response stored for an `Idempotency-Key` replay holds the link for up to 24 hours.
* You can make a link only for a quote your partner account created, with a key of the same mode. Any other id is a [`404 NOT_FOUND`](https://docs.bridgelinepf.com/errors/NOT_FOUND).
* A test key can make a link. The page then says the quote was made with a test key.
* The response has the same core shape as an agency's [hosted link](https://docs.bridgelinepf.com/api-reference/quotes/hosted-link.md) (`quote_id`, `url`, `expires_at`), plus `client_reference_id`. Its `object` is `partner_hosted_link`.
* `quote_id` is the quote's `pqt_` id. The path takes that id, or the `qte_` id a quote created before 2026-11-27 was returned with.
* An `Idempotency-Key` is tied to the exact path, so retry with the same form of the id you first sent: switching between `qte_` and `pqt_` under one key is a [`409 IDEMPOTENCY_KEY_REUSED`](https://docs.bridgelinepf.com/errors/IDEMPOTENCY_KEY_REUSED).

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

```javascript Node theme={null}
const res = await fetch(`https://portal.bridgelinepf.com/api/v1/partner/quotes/${quoteId}/hosted-link`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.BRIDGELINE_API_KEY}`,
    'Bridgeline-Version': '2026-09-23',
    'Idempotency-Key': crypto.randomUUID(),
  },
})
const { url } = await res.json()
```

```python Python theme={null}
import os
import uuid
import requests

res = requests.post(
    f"https://portal.bridgelinepf.com/api/v1/partner/quotes/{quote_id}/hosted-link",
    headers={
        "Authorization": f"Bearer {os.environ['BRIDGELINE_API_KEY']}",
        "Bridgeline-Version": "2026-09-23",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    timeout=30,
)
url = res.json()["url"]
```

```json 200 theme={null}
{
  "object": "partner_hosted_link",
  "quote_id": "pqt_3kBdws4Iboz3EfcUQN2z68",
  "client_reference_id": "SUB-2026-0412",
  "url": "https://portal.bridgelinepf.com/p/4nHnCzyp1YZ78mOscafTROmG9hSYlXaplWVeA8CeU90",
  "expires_at": "2026-11-11T15:04:05Z"
}
```

```json 404 theme={null}
{
  "error": {
    "type": "not_found",
    "code": "NOT_FOUND",
    "message": "No such quote.",
    "param": "id",
    "doc_url": "https://docs.bridgelinepf.com/errors#NOT_FOUND",
    "request_id": "req_8fJ2kQ9xLm4TzW7nB3cY5pDv"
  }
}
```

```json 409 theme={null}
{
  "error": {
    "type": "conflict",
    "code": "QUOTE_EXPIRED",
    "message": "Create a new quote; an expired quote can't get a new link.",
    "doc_url": "https://docs.bridgelinepf.com/errors#QUOTE_EXPIRED",
    "request_id": "req_8fJ2kQ9xLm4TzW7nB3cY5pDv"
  }
}
```


## OpenAPI

````yaml POST /v1/partner/quotes/{id}/hosted-link
openapi: 3.1.0
info:
  title: Bridgeline Public API
  version: '2026-09-23'
  description: >-
    Premium finance quotes and applications for agencies, and partner quotes for
    distribution partners (the endpoints under /v1/partner/). Authenticate with
    an API key: an agency admin creates agency and broker keys in the Bridgeline
    portal under API Keys; a distribution partner's admin creates partner keys
    in the partner console under Settings, then API keys. Scopes: `quotes:read`
    (Read quotes), `quotes:write` (Create quotes and replace their links),
    `applications:read` (Read applications), `applications:write` (Accept a
    quote into an application), `agreements:write` (Send and void finance
    agreements). `loans:read` and `webhooks:manage` are reserved for endpoints
    that are not built yet and allow nothing today.
servers:
  - url: https://portal.bridgelinepf.com/api
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/partner/quotes/{id}/hosted-link:
    post:
      tags:
        - Partners
      summary: Create a link to a partner quote
      description: >-
        Returns a link to a page that shows this quote, in your brand, to the
        agency you are quoting for: the insured's name, the policies and every
        option at the agency's cost. Each call replaces the previous link, which
        stops working at once; nothing else about the quote changes, and
        expires_at never moves. An expired quote is a 409 QUOTE_EXPIRED.
        Retrying with the same Idempotency-Key returns the same link without
        replacing it again. A quote created by anyone else, or with a key of the
        other mode, is a 404.
      operationId: createPartnerQuoteHostedLink
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            description: >-
              The quote id (pqt_…). The qte_… form a quote created before
              2026-11-27 was returned with is accepted too.
          description: >-
            The quote id (pqt_…). The qte_… form a quote created before
            2026-11-27 was returned with is accepted too.
        - name: Bridgeline-Version
          in: header
          required: false
          description: >-
            API version (a date). Defaults to the version the API key is pinned
            to (set when the key is created); only a released version is
            accepted. Every response echoes the version used.
          schema:
            type: string
            enum:
              - '2026-09-23'
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Retrying with the same key and body within 24h replays the original
            response.
          schema:
            type: string
            minLength: 1
            maxLength: 255
      responses:
        '200':
          description: The new link.
          content:
            application/json:
              schema:
                type: object
                properties:
                  quote_id:
                    type: string
                    description: The quote this link opens (pqt_…).
                  url:
                    type: string
                    description: >-
                      The page to send to the agency. It shows the quote in your
                      brand, at the agency's cost. The quote keeps only a hash
                      of the link's token, so we can't show the link again:
                      store it if you need it. A response stored for an
                      Idempotency-Key replay holds the link for up to 24 hours.
                  expires_at:
                    type: string
                    description: >-
                      When the link stops showing a current quote: the quote's
                      own expires_at, which a new link never changes.
                  object:
                    type: string
                    const: partner_hosted_link
                  client_reference_id:
                    description: >-
                      The quote's client_reference_id, so you can match the link
                      to your own record.
                    type:
                      - string
                      - 'null'
                required:
                  - quote_id
                  - url
                  - expires_at
                  - object
                  - client_reference_id
                description: >-
                  A link to a partner quote page. Requesting a new one replaces
                  it.
        '400':
          description: Malformed request (bad JSON, version or header).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, revoked or expired API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            API access not enabled for this partner (API_ACCESS_NOT_ENABLED for
            a live key, TEST_MODE_NOT_ENABLED for a test key), an API key whose
            type cannot call this endpoint (KEY_TYPE_NOT_ALLOWED) or a missing
            scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found (also returned for an id your key cannot see).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Idempotency-Key reused with a different request, or still in flight.
            QUOTE_EXPIRED: the quote has expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited. See Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal error. Safe to retry with the same Idempotency-Key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
            - doc_url
            - request_id
          properties:
            type:
              type: string
              enum:
                - invalid_request
                - authentication
                - permission
                - not_found
                - conflict
                - rate_limit
                - api_error
              description: The broad category of the error. Additional values may be added.
              x-extensible-enum: true
            code:
              type: string
              description: >-
                Stable, machine-readable error code. Branch on this, never on
                `message`.
              examples:
                - INVALID_REQUEST
                - INVALID_JSON
                - INVALID_API_VERSION
                - INVALID_PAGINATION
                - IDEMPOTENCY_KEY_REQUIRED
                - IDEMPOTENCY_KEY_INVALID
                - VALIDATION_FAILED
                - INVALID_API_KEY
                - KEY_REVOKED
                - KEY_EXPIRED
                - MISSING_SCOPE
                - BROKER_NOT_ACTIVE
                - DEFAULT_BROKER_INACTIVE
                - ACTING_BROKER_NOT_ALLOWED
                - API_ACCESS_NOT_ENABLED
                - TEST_MODE_NOT_ENABLED
                - TEST_MODE_ONLY
                - KEY_TYPE_NOT_ALLOWED
                - APPLICATIONS_NOT_ENABLED
                - STRAIGHT_THROUGH_NOT_ENABLED
                - NOT_FOUND
                - METHOD_NOT_ALLOWED
                - IDEMPOTENCY_KEY_REUSED
                - IDEMPOTENCY_REQUEST_IN_PROGRESS
                - QUOTE_EXPIRED
                - QUOTE_ALREADY_INTERESTED
                - QUOTE_ALREADY_ACCEPTED
                - QUOTE_NOT_ACCEPTABLE
                - QUOTE_PRICE_CHANGED
                - APPLICATION_NOT_SENDABLE
                - APPLICATION_PRICE_LAPSED
                - APPLICATION_CANCELED
                - AGREEMENT_ALREADY_SIGNED
                - AGREEMENT_NOT_VOIDABLE
                - APPLICATION_MANAGED_IN_PORTAL
                - RATE_LIMITED
                - INTERNAL
                - IDEMPOTENCY_RECORD_LOST
                - SERVICE_UNAVAILABLE
            message:
              type: string
            param:
              type: string
            details:
              type: array
              items:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                  message:
                    type: string
                  param:
                    type: string
            application_id:
              type: string
              description: >-
                Only on QUOTE_ALREADY_ACCEPTED: the id (app_…) of the
                application the quote became. It may have been created by a
                different call than yours.
            doc_url:
              type: string
              format: uri
            request_id:
              type: string
              pattern: ^req_
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: bl_live_… or bl_test_… API key.

````

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