7 Replies Latest reply on Aug 2, 2017 4:10 AM by Gaurav Dwivedi

    Tableau Online - REST API Authentication

    Trevor Hunt

      I'm running into a problem I've been staring at for a bit... I'm attempting to authenticate via the REST api to Tableau Online so I can pull together some details on the data sources and connections used in various workbooks. I'm using an account I've created, granted site admin permissions, configured to authenticate via TableauID, and confirmed I can authenticate directly, but am still unable to get authenticated via the REST API.


      Any help would be appreciated. I'm sure it's something staring me in the face.



      Here's what I'm using to authenticate and the response I currently receive. Any guidance is appreciated!



      Example Tableau Online URL




      POST https://our.tableau.online.hostname/api/2.4/auth/signin




        <credentials name="<admin user name>" password="<admin pw>">

          <site contentUrl="<contenturl>" />





      <?xml version='1.0' encoding='UTF-8'?>

      <tsResponse xmlns="http://tableau.com/api" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tableau.com/api http://tableau.com/api/ts-api-2.4.xsd">

          <error code="401001">

              <summary>Signin Error</summary>

              <detail>Error signing in to Tableau Server</detail>




      Message was edited by: Trevor Hunt