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

> ## Agent Instructions
> Fletch makes insurance products discoverable to and purchasable by AI agents, while the carrier keeps control of product rules, disclosures, consent, and payments. Fletch provides agentic commerce and agentic distribution for insurance, including APIs, an MCP server, a Web SDK, and journeys in assistants such as ChatGPT. Company overview: https://fletch.co/llms.txt. Agentic commerce: https://fletch.co/ai/. Contact: info@fletch.co.

# Generate Quote

> Generate a travel insurance quote from trip and traveler details.

Send trip and traveler details to get a calculated travel insurance quote. The response includes one entry for each eligible provider. Each entry includes the premium, coverage options, and checkout URL for the purchase.

## Headers and parameters

**X-API-Key** `string` *required*

X-API-Key

**X-API-VERSION** `string` *required*

X-API-VERSION

## Body

**partner\_id** `string` *required*

Unique identifier for the partner.

**version** `string` *required*

Quote version requested, for example `v1.0_a`.

**quote\_id** `string`

To update a quote, provide its existing quote ID. To create a quote, leave this field empty.

**provider\_ids** `string[]`

Restrict the quote to specific providers by passing their provider ids.

**request** `object` *required*

Trip and traveler details used to calculate the quote.

**request.trip\_info.primary\_destination.country** `string` *required*

Primary destination country as an ISO 3166-1 alpha-2 code, for example `FR`.

**request.trip\_info.departure\_date** `string` *required*

Start date of the trip in `YYYY-MM-DD` format.

**request.trip\_info.return\_date** `string` *required*

End date of the trip in `YYYY-MM-DD` format.

**request.trip\_info.trip\_cost** `integer`

Total prepaid, non-refundable trip cost. Optional.

**request.primary\_traveler.date\_of\_birth** `string` *required*

Date of birth of the primary traveler in `YYYY-MM-DD` format.

**request.primary\_traveler.zip\_code** `string` *required*

Home zip code of the primary traveler.

**request.coverage\_options** `object`

Optional coverage flags such as `trip_cancellation_coverage`, `cancel_for_any_reason_option`, `adventure_option`, `vacation_rental_option`, `pet_option`, and `car_rental_option`.

```bash cURL theme={"dark"}
curl --request POST \
  --url https://sandbox-api.fletch.co/insurance/travel/v1/api/quote \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --header 'X-API-Key: YOUR_API_KEY' \
  --header 'X-API-VERSION: YOUR_API_VERSION' \
  --data '{
  "partner_id": "6a2d6a44-a5a4-45ac-97d7-2fabc59d2f13",
  "version": "v1.0_a",
  "quote_id": "",
  "request": {
    "trip_info": {
      "primary_destination": {
        "country": "FR",
        "state": "",
        "google_place_id": ""
      },
      "additional_destinations": [],
      "departure_date": "2026-01-01",
      "return_date": "2026-01-07",
      "trip_cost": 0
    },
    "primary_traveler": {
      "first_name": "Jane",
      "last_name": "Doe",
      "email": "jane.doe@example.com",
      "zip_code": "60090",
      "state": "IL",
      "date_of_birth": "1990-01-01"
    },
    "additional_travelers": [],
    "coverage_options": {
      "pet_option": false,
      "trip_cancellation_coverage": false,
      "cancel_for_any_reason_option": false,
      "adventure_option": false,
      "vacation_rental_option": false,
      "car_rental_option": {
        "selected": false,
        "car_dates_dto": [],
        "no_of_cars": 0
      }
    },
    "utm_params": {
      "utm_source": "",
      "utm_medium": "",
      "utm_campaign": "",
      "utm_term": "",
      "utm_referrer": "",
      "utm_content": "",
      "gclid": "",
      "fbclid": ""
    }
  }
}'
```

## Responses

**status** `string`

Outcome of the request. `success` when the quote was generated.

**data.quote\_id** `string`

This field contains the Fletch quote ID. Send this ID to the purchase tracking endpoint.

**data.quoteInfo** `array`

List of quotes, one entry per eligible provider.

**data.quoteInfo\[].total\_premium** `number`

Total premium for the quote in dollars.

**data.quoteInfo\[].pre\_discounted\_premium** `number`

Premium before any discount is applied.

**data.quoteInfo\[].checkout\_url** `string`

Provider checkout url used to complete the purchase.

**data.quoteInfo\[].insurance\_options** `object`

Coverage selections applied to this quote.

**data.quoteInfo\[].providerDetails** `object`

Insurance provider metadata such as name and logo.

**data.quoteInfo\[].provider\_id** `string`

Provider identifier. Pass this to the purchase tracking endpoint.

**data.trip\_details** `object`

Normalized trip details echoed back from the request.

**data.primary\_traveler** `object`

Primary traveler details echoed back from the request.

```json 200 theme={"dark"}
{
  "data": {
    "additional_travelers": [],
    "primary_traveler": {
      "date_of_birth": "1990-01-01",
      "email": "jane.doe@example.com",
      "first_name": "Jane",
      "last_name": "Doe",
      "state": "IL",
      "zip_code": "60090"
    },
    "quoteInfo": [
      {
        "checkout_url": "https://www.faye-stg.com/quote/offer?hash=59cdcaf7e0fb5317a76ca5a5adf8b137515e77c0",
        "discount_amount": null,
        "fee": [],
        "fletch_checkout_url": null,
        "insurance_options": {
          "adventure_option": false,
          "cancel_for_any_reason": false,
          "pet_option": false,
          "rental_car_coverage": false,
          "trip_cancellation": false
        },
        "pre_discounted_premium": 118.15,
        "providerDetails": {
          "display_name": "faye",
          "extended_icon_url": "faye",
          "icon_url": "faye_logo_url_will_replace_here",
          "name": "faye"
        },
        "provider_id": "8c0413e3-f541-45b5-8f38-7574f7f386aa",
        "total_premium": 118.15
      }
    ],
    "quote_id": "89bb9000-3beb-4fd7-a887-c9edda02f337",
    "trip_details": {
      "additional_destinations": [],
      "departure_date": "2026-01-01",
      "no_of_travellers": 1,
      "primary_destination": {
        "country": "FR",
        "google_place_id": "",
        "state": ""
      },
      "return_date": "2026-01-07",
      "trip_cost": 0
    },
    "utm_params": {
      "fbclid": "",
      "gclid": "",
      "utm_campaign": "",
      "utm_content": "",
      "utm_medium": "",
      "utm_referrer": "",
      "utm_source": "",
      "utm_term": ""
    }
  },
  "status": "success"
}
```

```json 401 theme={"dark"}
{
  "errors": {
    "code": "<ERROR_CODE>",
    "message": "<ERROR_MESSAGE>"
  }
}
```


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