# FBT

To perform an FBT query send a `POST` request to the `/analysis/fbt` endpoint specifying the item ID(s) in the [filter](#filterable-fields-and-allowed-operators) without any extra query keys:

```json
{
  "filter": {
    "line_items": {
      "item_ids": {
        "in": [
          "...",
          "..."

          // ...

        ]
      }
    }
  },
  "meta": { ... }
}
```

{% hint style="info" %}
Please find more information on how the FBT queries work [here](https://app.gitbook.com/s/ASSiAvbL4nFnkl8plQy2/getting-started/analysis/fbt).
{% endhint %}

## Filterable fields and allowed operators

Please find below the full list of the fields (and related attributes) you can use in the `filter` object of a FBT query, and the associated allowed values and valid operators.

#### `line_items` field

| Attribute      | Type   | Values                                           |
| -------------- | ------ | ------------------------------------------------ |
| **`item_ids`** | Object | <p>One of:</p><p><code>"in": \["..."]</code></p> |

{% hint style="info" %}
The `item_ids.in` object is a list of SKU or bundle IDs associated as line items to one or more orders and the `in` operator works according to the `AND` logic (i.e. matches *all* of the specified array's values).
{% endhint %}
