# Self hosted : API calls resulting only in 401 'invalid token'

**URL:** https://community.nocodb.com/t/self-hosted-api-calls-resulting-only-in-401-invalid-token/1291
**Category:** APIs
**Created:** [July 26, 2024, 5:33am UTC](https://community.nocodb.com/t/self-hosted-api-calls-resulting-only-in-401-invalid-token/1291 "2024-07-26T05:33:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bluechair](https://avatars.discourse-cdn.com/v4/letter/b/e19b73/32.png) [@bluechair](https://community.nocodb.com/u/bluechair)
#### Post date: [July 26, 2024, 5:33am UTC](https://community.nocodb.com/t/self-hosted-api-calls-resulting-only-in-401-invalid-token/1291/1 "2024-07-26T05:33:21Z")

</div>

I can’t figure out what I’m doing wrong — yesterday, FlutterFlow was able to GET data from my tables (using my API key). Today, on a different project, nada.

I’ve been testing various iterations at [reqbin.com](http://reqbin.com), as well, and I’m getting 401: invalid token, over and over, regardless of how I’m inputting the key (I’ve also now generated a new one, still no luck).

Having restarted the server, just in case, I’m at a total loss. Can anyone help me figure out how to figure out what I’m missing?

---

<div class="post-metadata">

### Author: ![Navi](https://avatars.discourse-cdn.com/v4/letter/n/3be4f8/32.png) [@Navi](https://community.nocodb.com/u/Navi)
#### Post date: [July 26, 2024, 5:45am UTC](https://community.nocodb.com/t/self-hosted-api-calls-resulting-only-in-401-invalid-token/1291/2 "2024-07-26T05:45:50Z")

</div>

Please ensure you are using xc-token header as indicated in our [docs](https://docs.nocodb.com/account-settings/api-tokens/).

Also ensure that there are no typos when copy pasting API token.

---

<div class="post-metadata">

### Author: ![bluechair](https://avatars.discourse-cdn.com/v4/letter/b/e19b73/32.png) [@bluechair](https://community.nocodb.com/u/bluechair)
#### Post date: [July 26, 2024, 5:57am UTC](https://community.nocodb.com/t/self-hosted-api-calls-resulting-only-in-401-invalid-token/1291/3 "2024-07-26T05:57:15Z")

</div>

Well, I _thought_ I had tried that at flutterflow, but evidently I hadn’t … as it just worked.

And it appears that reqbin was autogenerating auth headers that weren’t working.

Thanks for pointing me back to the documentation I swear I looked at 100 times already! Sometimes it takes that 101st perusal. 😅
