# Tableau REST API

**URL:** <https://forum.knime.com/t/tableau-rest-api/75256>\
**Category:** KNIME Server\
**Created:** [November 14, 2023, 5:16pm UTC](https://forum.knime.com/t/tableau-rest-api/75256 "2023-11-14T17:16:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinnay](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/d6d6ee/32.png) [@kevinnay](https://forum.knime.com/u/kevinnay)\
**Post date:** [November 14, 2023, 5:16pm UTC](https://forum.knime.com/t/tableau-rest-api/75256/1 "2023-11-14T17:16:26Z")

</div>

Is there a way to get the authentication token from Tableau server? The API documentation indicates that the token is needed from the login, but there’s no Tableau connector node to do that. Tableau accepts REST requests, but at present I’m getting a variety of response codes that appear to be related to authentication that I can’t get past.

The following is from [Tableau.com](http://Tableau.com):

## Get a list of resources

To get a list of resources like users, you send a GET request. The request must include an `X-Tableau-Auth` header with the authentication token that was returned in the [Sign In](https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref.htm#sign_in) call. There is no request body.

The following examples shows a request that gets a list of users.

GET /api/2.2/sites/9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d/users/users HTTP/1.1 HOST: my-server X-Tableau-Auth: 12ab34cd56ef78ab90cd12ef34ab56cd

---

<div class="post-metadata">

**Author:** ![kevinnay](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/d6d6ee/32.png) [@kevinnay](https://forum.knime.com/u/kevinnay)\
**Post date:** [November 14, 2023, 6:05pm UTC](https://forum.knime.com/t/tableau-rest-api/75256/2 "2023-11-14T18:05:50Z")

</div>

It appears I can generate a PAT from Tableau and create the request header, but it’s still not responding yet.

---

<div class="post-metadata">

**Author:** ![dora\_gcs](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/e9c0ed/32.png) [@dora\_gcs](https://forum.knime.com/u/dora_gcs)\
**Post date:** [November 16, 2023, 2:49pm UTC](https://forum.knime.com/t/tableau-rest-api/75256/3 "2023-11-16T14:49:28Z")

</div>

Hello @kevinnay ,

you can use your PAT directly in the [Send to Tableau Server Node](https://hub.knime.com/knime/extensions/org.knime.features.ext.tableau.hyperapi/latest/org.knime.ext.tableau.hyperapi.sendtable.SendToTableauHyperNodeFactory2):

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/2/f/2f49bc81b543aa75c9aa1e25c29c9e768efe7960.png)

I also recommend to check out our [Tableau Integration Guide](https://docs.knime.com/latest/tableau_integration_user_guide/index.html#_introduction) and the [example](https://hub.knime.com/knime/spaces/Examples/05_Reporting/02_Tableau~_jVHDsZ0U8633Oex/) workflows on our Community Hub, maybe you will find useful information there.

Regards

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [February 14, 2024, 2:50pm UTC](https://forum.knime.com/t/tableau-rest-api/75256/4 "2024-02-14T14:50:16Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
