Using the server method of the Tableau Server REST API you can:
Postman is a free, comprehensive API platform that simplifies the entire API lifecycle, providing a collaborative environment for designing, testing, and managing APIs. Postman allows you to construct, send, and examine HTTP requests to the Tableau Server or Tableau Cloud API without writing initial code.
Postman: Server(Link opens in a new window)
Deletes a specified session. This method is not available for Tableau Cloud and is typically used in programmatic management of the life cycles of embedded Tableau sessions.
DELETE api/api-version/sessions/session-id
| api-version | The version of the API to use, such as3.27. For more information, seeREST API and Resource Versions. |
| session-id | The unique ID of the session to be deleted. A session's ID and other metadata can be queried from the Tableau Server Postgres repository. Reading the Postgres repository excessively can impact performance and that writing directly to the repository is not supported in any form. For more information, seeCollect Data with the Tableau Server Repository andTableau Server Postgres Data Dictionary. |
None.
This method can only be called by server administrators.
Scope added in API 3.27 (Tableau Cloud December 2025 / Server 2025.3).
tableau:sessions:deleteFor more information, seeAccess scopes for UATs(Link opens in a new window) (Cloud)and access scopes for connected apps:Cloud(Link opens in a new window),Server-Windows(Link opens in a new window),orServer-Linux(Link opens in a new window).
204
None
Version 3.9 and later. For more information, seeREST API and Resource Versions.
| HTTP status | error Code | Condition | Details |
|---|---|---|---|
| 400 | 400000 | Bad request | The content of the request body is missing or incomplete, or contains malformed XML. |
| 400 | 400105 | Session delete error | An unknown error occurred and the session could not be deleted. |
| 401 | 401000 | Unauthorized access | No authorization credentials were provided. |
| 401 | 401002 | Unauthorized access | Invalid authorization credentials were provided. |
| 404 | 404000 | Resource not found | The site ID in the URI doesn't correspond to an existing site. |
| 404 | 404029 | Content not found | The requested asset could not be found. |
Returns details of the current session of Tableau Server.
GET /api/api-version/sessions/current
| api-version | The version of the API to use, such as |
None
This method can be called by all authenticated users.
200
<tsResponse"> <session><site name="site-name" contentUrl="" adminMode="admin-mode" disableSubscriptions="disable-subscription-flag" state="state" revisionHistoryEnabled="revision-history-enabled-flag" subscribeOthersEnabled="subscribe-others-enabled-flag" guestAccessEnabled="guest-access-enabled-flag" cacheWarmupEnabled="cache-warmup-enabled-flag [REMOVED IN API 3.19]" editingFlowsEnabled="editing-flows-enabled-flag" schedulingFlowsEnabled="scheduling-flows-enabled-flag" extractEncryptionMode="extract-encryption-mode" mobileBiometricsEnabled="mobile-biometrics-enabled-flag" sheetImageEnabled="sheetimage-enabled-flag" catalogingEnabled="catalog-enabled-flag" derivedPermissionsEnabled="true"/> <user authSetting="ServerDefault" externalAuthUserId="" lastLogin="2020-04-29T04:59:08Z" name="workgroupuser" siteRole="ServerAdministrator"/> </session></tsResponse>The response for users without administrator permissions contains only the siteuser,id,name, andcontent-url attributes.
Version 3.1 and later. For more information, seeREST API and Resource Versions.
| HTTP status | error Code | Condition | Details |
|---|---|---|---|
| 405 | 405000 | Invalid request method | Request type was notGET. |
For more information, seeHandling Errors.
<tsResponse"> <session> <site name="Default" contentUrl="" adminMode="ContentAndUsers" disableSubscriptions="false" state="Active" revisionHistoryEnabled="true" subscribeOthersEnabled="true" guestAccessEnabled="false" cacheWarmupEnabled="true" [REMOVED IN API 3.19] editingFlowsEnabled="false" schedulingFlowsEnabled="false" extractEncryptionMode="enabled" mobileBiometricsEnabled="false" sheetImageEnabled="true" catalogingEnabled="true" derivedPermissionsEnabled="true"/> <user authSetting="ServerDefault" externalAuthUserId="" lastLogin="2020-04-29T04:59:08Z" name="workgroupuser" siteRole="ServerAdministrator"/> </session></tsResponse>Returns the details of the Active Directory domains that are in use on the server, including their full domain names, nicknames and IDs. If the server is configured to use local authentication, the command returns only the domain namelocal.
GET /api/api-version/domains/
| api-version | The version of the API to use, such as3.27. For more information, seeREST API and Resource Versions. |
None
This method can only be called by server administrators.
Scope added in API 3.27 (Tableau Cloud December 2025 / Server 2025.3).
tableau:domains:readFor more information, seeAccess scopes for UATs(Link opens in a new window) (Cloud)and access scopes for connected apps:Cloud(Link opens in a new window),Server-Windows(Link opens in a new window),orServer-Linux(Link opens in a new window).
200
<tsRequest> <domainList> <domainapi-placeholder">domain-id-int" name="domain-name" shortName="domain-nickname" /> </domainList></tsRequest>Version 3.11 and later. For more information, seeREST API and Resource Versions.
| HTTP status | error Code | Condition | Details |
|---|---|---|---|
| 405 | 405000 | Invalid request method | Request type was notGET. |
For more information, seeHandling Errors.
curl "http://MY-SERVER/api/3.27/domains" -X GET -H "X-Tableau-Auth:12ab34cd56ef78ab90cd12ef34ab56cd"
Example response body:
<tsRequest> <domainList> <domain name="domain.com" shortName="myDomainNickName" /> < . . . more domains . . . /> </domainList></tsRequest>Returns the version of Tableau Server and the supported version of the REST API.
GET /api/api-version/serverinfo
| api-version | The version of the API to use, such as |
None
This method can be called by all users and does not require authentication.
Scope added in API 3.27 (Tableau Cloud December 2025 / Server 2025.3).
tableau:server:readFor more information, seeAccess scopes for UATs(Link opens in a new window) (Cloud)and access scopes for connected apps:Cloud(Link opens in a new window),Server-Windows(Link opens in a new window),orServer-Linux(Link opens in a new window).
200
<tsResponse> <serverInfo> <productVersion build="build-number">product-version</productVersion> <restApiVersion>api-version</restApiVersion> </serverInfo></tsResponse>The response contains the following information:
Version 2.4 and later. For more information, seeREST API and Resource Versions.
| HTTP status | error Code | Condition | Details |
|---|---|---|---|
| 405 | 405000 | Invalid request method | Request type was notGET. |
For more information, seeHandling Errors.
Changes the nickname or full domain name of an Active Directory domain on the server. This method is not available on Tableau Cloud.
A domain nickname, also called short name, is the Windows NetBIOS domain name. You can modify the nickname for any domain the server is using.
In general, you can modify the full domain name for any domain except the one that you used to sign in. However, if the user name that you arecurrently signed in with exists in both the current domain and the new domain, you can modify the full name for the current domain.For information about how to enable access for users from multiple domains, seeSupport for multiple domains(Link opens in a new window).
If the domain islocal, it's names cannot be changed.
PUT /api/api-version/domains/domain-id
| api-version | The version of the API to use, such as3.27. For more information, seeREST API and Resource Versions. |
| domain-id | The integer ID of the of the Active Directory domain being updated. Find a domain's ID usingList Server Active Directory Domains. |
<tsRequest> <domain name="new-domain-name" shortName="new-domain-nickname" /></tsRequest>Any combination of attributes is valid. If no attributes or nested elements are included, no update is made.
| new-domain-name | A new full domain name you are using to replace the existing one. |
| new-domain-nickname | A new domain nickname you are using to replace the existing one. |
This method can only be called by server administrators.
Scope added in API 3.27 (Tableau Cloud December 2025 / Server 2025.3).
tableau:domains:updateFor more information, seeAccess scopes for UATs(Link opens in a new window) (Cloud)and access scopes for connected apps:Cloud(Link opens in a new window),Server-Windows(Link opens in a new window),orServer-Linux(Link opens in a new window).
200
Example response:
<tsRequest> <domainapi-placeholder">domain-id-int" name="domain-name" shortName="domain-nickname" /></tsRequest>Version 3.11 and later. For more information, seeREST API and Resource Versions.
| HTTP status | error Code | Condition | Details |
|---|---|---|---|
| 400 | 400000 | Bad request | The content of the request body is missing or incomplete, or contains malformed XML. |
| 401 | 401000 | Unauthorized access | No authorization credentials were provided. |
| 401 | 401002 | Unauthorized access | Invalid authorization credentials were provided. |
| 404 | 404032 | Resource not found | The requested domain ID in the URI doesn't correspond to an existing domain. |
For more information, seeHandling Errors.
For an Active Directory with the ID of1045, name ofmyOldDomainName, and a nickname ofmyOldDomainNickname:
curl "http://MY-SERVER/api/3.27/domains/f34ab56cd12ab34cd56ef78ab90cd12ef" -X PUT -H "X-Tableau-Auth:12ab34cd56ef78ab90cd12ef34ab56cd" -d @update-domain.xml
Content of update-domain.xml:
<tsRequest> <domain name="myNewDomainName.com" shortName="myNewDomainNickName" /></tsRequest>Example response body:
<tsRequest> <domain name="myNewDomainName.com" shortName="myDomainNickName" /></tsRequest>