# Read only API token results in \`FlightUnauthenticatedError\`

**URL:** <https://community.influxdata.com/t/read-only-api-token-results-in-flightunauthenticatederror/58086>\
**Category:** Client SDKs\
**Tags:** python\
**Created:** [November 14, 2025, 3:49pm UTC](https://community.influxdata.com/t/read-only-api-token-results-in-flightunauthenticatederror/58086 "2025-11-14T15:49:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bicarlsen](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@bicarlsen](https://community.influxdata.com/u/bicarlsen)\
**Post date:** [November 14, 2025, 3:49pm UTC](https://community.influxdata.com/t/read-only-api-token-results-in-flightunauthenticatederror/58086/1 "2025-11-14T15:49:46Z")

</div>

I’m using the Python SDK to query my database using SQL. Using an API token with read/write access succeeds, but when using a read only token I receive a `FlightUnauthenticatedError` error. The query is a read only query.  
e.g.  
`SELECT * FROM my_table`

---

<div class="post-metadata">

**Author:** ![suyash](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/suyash/32/15791_2.png) [@suyash](https://community.influxdata.com/u/suyash)\
**Post date:** [November 20, 2025, 12:08pm UTC](https://community.influxdata.com/t/read-only-api-token-results-in-flightunauthenticatederror/58086/2 "2025-11-20T12:08:20Z")

</div>

> [@bicarlsen](#):
>
> FlightUnauthenticatedError

Ensure that you are passing token correctly in Python and that the read-only token has the correct `"read"` permission for the database you are querying. If the problem is still there, perhaps create a new token and use that.

---

<div class="post-metadata">

**Author:** ![bicarlsen](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@bicarlsen](https://community.influxdata.com/u/bicarlsen)\
**Post date:** [December 23, 2025, 3:17pm UTC](https://community.influxdata.com/t/read-only-api-token-results-in-flightunauthenticatederror/58086/3 "2025-12-23T15:17:31Z")

</div>

I tried again, and it appears to work now without any code change. Not sure what was causing the problem originally. Thank you.
