How to Authenticate


There are two primary ways you can use the Tableau Metadata API:

To access and use the Metadata API in one of the two ways described above, it’s important to know if your Tableau Online site or Tableau Server is licensed with the Data Management Add-on.

In this section

Authenticate through Sign In method

The Metadata API requires that you send an authentication token with each query sent. The token lets Tableau Online or Tableau Server verify your identity and makes sure that you’re signed in. To get a token, you can call the Sign In method, in one of two ways, using the Tableau REST API versions 3.6 or later.

Sign In using a personal access token

Refer to the personal access token section of the Tableau Server REST API Help for more information.

Sign In using username and password

Refer to the username and password section of the Tableau Server REST API Help for more information.

For more information about token expiration, changing the token timeout value, and more, see Using the Authentication Token In Subsequent Calls topic in the Tableau Server REST API Help.