In writing the documentation for some of my workflows using the Tableau Server REST API, I realized that there's not really any good instructions on how to create a Personal Access Tokens (PATs). The Tableau website does provides a lot of good information about PATs, but it does not provide a step-by-step on how to create one. While it's not difficult to create one, I thought it still would be helpful to share how to do it for those who've never created one before or are not as familiar with the Tableau Server/Cloud environment.
1. Click the profile icon located on the top right corner of Cloud and Server, and select “My Account Settings”
![](https://www.thedataschool.co.uk/content/images/2024/04/Screenshot-2024-04-24-172521.png)
2. Under the “Settings” tab, located on the far right, scroll down to the “Personal Access Tokens” section.
![](https://www.thedataschool.co.uk/content/images/2024/04/Screenshot-2024-04-24-172440.png)
3. For any workflows utilizing the Tableau Server REST API, use “X-Tableau-Auth” for the PAT name and click “Create Token”.
![](https://www.thedataschool.co.uk/content/images/2024/04/Screenshot-2024-04-24-172703.png)
4. A pop-up will appear with the Token Name and Secret that will need to be used in the Alteryx workflow.
![](https://www.thedataschool.co.uk/content/images/2024/04/Screenshot-2024-04-24-172735.png)
5. Insert the Token Names and Secrets in the first Text Input tool of the Alteryx workflow for the respective sites.
![](https://www.thedataschool.co.uk/content/images/2024/04/Screenshot-2024-04-24-172944.png)
6. Clicking “Revoke Token” will delete the existing PAT.
![](https://www.thedataschool.co.uk/content/images/2024/04/Screenshot-2024-04-24-173140.png)