# API token not found. Please provide it and it will be saved in '~/.transifexrc'

**URL:** https://community.transifex.com/t/api-token-not-found-please-provide-it-and-it-will-be-saved-in-transifexrc/3819
**Category:** Q&A
**Created:** [March 4, 2024, 4:51pm UTC](https://community.transifex.com/t/api-token-not-found-please-provide-it-and-it-will-be-saved-in-transifexrc/3819 "2024-03-04T16:51:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DelazJ](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/delazj/32/2590_2.png) [@DelazJ](https://community.transifex.com/u/DelazJ)
#### Post date: [March 4, 2024, 4:51pm UTC](https://community.transifex.com/t/api-token-not-found-please-provide-it-and-it-will-be-saved-in-transifexrc/3819/1 "2024-03-04T16:51:41Z")

</div>

Hi,  
I have a script that should regularly pull translations from Tx to repo. I wrote “should” because it doesn’t output same results whether run as a github action or locally. But this is a side issue.

That script used to work and worked even last week both as a github action and from a local call. I tried it again yesterday and it started to fail:

- in local (I’m not on the computer right now but something like): `401 Unauthorized: invalid token`. I tried to `tx pull` locally and have the pull aborted as soon as it started. But I can run another script to fetch statistics from the project on Transifex, using the token.
- the github action returns: `API token not found. Please provide it and it will be saved in '~/.transifexrc'.`  
I regenerate the token from Transifex, replace it in the repo settings, rerun and keep getting the same message. See [Pull translations · qgis/QGIS-Documentation@6946583 · GitHub](https://github.com/qgis/QGIS-Documentation/actions/runs/8139958788/job/22244206900#step:7:7)

Any hints, please? I’m available for any more details.  
Thanks.

---

<div class="post-metadata">

### Author: ![Sandy\_DLR](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/sandy_dlr/32/2498_2.png) [@Sandy\_DLR](https://community.transifex.com/u/Sandy_DLR)
#### Post date: [March 5, 2024, 2:24am UTC](https://community.transifex.com/t/api-token-not-found-please-provide-it-and-it-will-be-saved-in-transifexrc/3819/2 "2024-03-05T02:24:36Z")

</div>

Hello [DelazJ](https://community.transifex.com/u/DelazJ),

Are you using the CLI? Could you please share your .tx/config file and the content of your .transifexrc file(without your token)? Is your valid token there?

_-Sandy_

---

<div class="post-metadata">

### Author: ![DelazJ](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/delazj/32/2590_2.png) [@DelazJ](https://community.transifex.com/u/DelazJ)
#### Post date: [March 5, 2024, 9:21am UTC](https://community.transifex.com/t/api-token-not-found-please-provide-it-and-it-will-be-saved-in-transifexrc/3819/3 "2024-03-05T09:21:06Z")

</div>

Hello Sandy.  
Good catch 😉  
I inspected once again my files and spotted an issue in my .tx/config file using

> host = [https://www.transifex.com](https://www.transifex.com)

instead of

> host = [https://app.transifex.com](https://app.transifex.com)

I launched again my action and it passed the token level and is currently trying to pull files on Tx. So all good now.  
Thanks again.
