Renewing an Expired Authentication Token/Key
- Authentication tokens/keys allow external applications like Excel and Power BI to access your Playbook database using the API.
- Authentication tokens/keys are valid for one year. Once they expire an administrator can generate a new authentication token/key.
- To generate a new authentication token/key, select Dashboard.
/Reports/Authentication%20Tokens%20(Keys)/Auth%20Tokens%20-%20Dashboard%20menu.png?width=670&height=108&name=Auth%20Tokens%20-%20Dashboard%20menu.png)
- Open any report.
/Reports/Authentication%20Tokens%20(Keys)/Auth%20Tokens%20-%20Open%20any%20report.png?width=650&height=354&name=Auth%20Tokens%20-%20Open%20any%20report.png)
- Click Settings > Get an API/BI URL > Get Authentication Token > Copy Key. Note: only administrators can generate an authentication token.
- Warning - Make sure you copy the key! We do not store it, and you will not be able to see it again. And be sure to paste it in the right place before copying over it with a BI URL or Power Query.
/Reports/Authentication%20Tokens%20(Keys)/Auth%20Tokens%20-%20Get%20Authentication%20Token.png?width=670&height=383&name=Auth%20Tokens%20-%20Get%20Authentication%20Token.png)
- To update the authentication token/key in Excel...
- On the Query tab click the Query menu then click Edit.
/Reports/Authentication%20Tokens%20(Keys)/Auth%20Tokens%20-%20Excel%20-%20Edit%20Query.png?width=670&height=387&name=Auth%20Tokens%20-%20Excel%20-%20Edit%20Query.png)
- Click Advanced Editor.
/Reports/Authentication%20Tokens%20(Keys)/Auth%20Tokens%20-%20Excel%20-%20Advanced%20Editor%20Menu.png?width=670&height=408&name=Auth%20Tokens%20-%20Excel%20-%20Advanced%20Editor%20Menu.png)
- Copy/paste the new authentication token overriding all the text between the double quotes beginning with the word bearer.
/Reports/Authentication%20Tokens%20(Keys)/Auth%20Tokens%20-%20Excel%20-%20Adv%20Editor%20-%20Replace%20Authentication%20Token.png?width=670&height=390&name=Auth%20Tokens%20-%20Excel%20-%20Adv%20Editor%20-%20Replace%20Authentication%20Token.png)
- Click Done then Close & Load.
/Reports/Authentication%20Tokens%20(Keys)/Auth%20Tokens%20-%20Excel%20-%20Close%20and%20Load.png?width=670&height=416&name=Auth%20Tokens%20-%20Excel%20-%20Close%20and%20Load.png)
- Voila! Your Excel file's authentication token has been updated and valid for another year.
- On the Query tab click the Query menu then click Edit.
- To update the authentication token/key in Power BI...
- Click Transform data.
/Reports/Authentication%20Tokens%20(Keys)/Auth%20Tokens%20-%20PowerBI%20-%20Transform%20Data.png?width=670&height=407&name=Auth%20Tokens%20-%20PowerBI%20-%20Transform%20Data.png)
- Click Advanced Editor.
/Reports/Authentication%20Tokens%20(Keys)/Auth%20Tokens%20-%20PowerBI%20-%20Advanced%20Editor%20Menu.png?width=584&height=356&name=Auth%20Tokens%20-%20PowerBI%20-%20Advanced%20Editor%20Menu.png)
- Copy/paste the new authentication token overriding all the text between the double quotes beginning with the word bearer.
/Reports/Authentication%20Tokens%20(Keys)/Auth%20Tokens%20-%20PowerBI%20-%20Adv%20Editor%20-%20Replace%20Authentication%20Token.png?width=584&height=329&name=Auth%20Tokens%20-%20PowerBI%20-%20Adv%20Editor%20-%20Replace%20Authentication%20Token.png)
- Click Done then Close & Apply.
/Reports/Authentication%20Tokens%20(Keys)/Auth%20Tokens%20-%20PowerBI%20-%20Close%20and%20Apply.png?width=584&height=363&name=Auth%20Tokens%20-%20PowerBI%20-%20Close%20and%20Apply.png)
- Voila! Your Power BI file's authentication token has been updated and valid for another year.
- Click Transform data.
- Watch this video [3:10 min] for a demonstration.
- Need a hand? Contact a Customer Success Engineer today!