Influxdb 2 sensor fails - error 401 bucket cannot be found

Hey folks,
I’m using Influx and I’m successfully sending data TO influxdb.
When I try and pull data FROM influxdb I get an error: 401

here’s what I have in sensors.yaml
the domain name and ssl cert are valid

- platform: influxdb
  port: 8086
  ssl: true
  api_version: 2
  organization: MY ORG
  token: MY TOKEN
    - group_function: mean
        - strings
      name: "pfSense DNS Query Time"
      query: >
       from(bucket: "pfsense-dns")
         |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
         |> filter(fn: (r) => r["_measurement"] == "unbound")
         |> filter(fn: (r) => r["_field"] == "total_recursion_time_avg")
         |> filter(fn: (r) => r["host"] == "")
         |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
         |> yield(name: "mean")
      range_start: "-1d"

anyone have influxdb queries working successfully?