---
schema_version: "1"
id: 2e359c67f9ae61a13b3e8776881e510f0c6793d361e15d1dcaf414c678815468
title: Samples
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/tsm_api/docs/samples.md
canonical_url: https://help.tableau.com/current/api/tsm_api/en-us/docs/samples.htm
source_site: help.tableau.com
content_type: documentation
content_hash: ae08367b8caf344e2ae1595304958f9a822fcb1d8950f56ebf430b0ebc93e0e1
description: Documentation for Tableau Services Manager API
---
# Samples

  

The TSM API documentation includes samples written in Python version 2.7 and a Postman collection that you can use to explore the API.

For more information about Postman, see [Test with Postman](/current/api/tsm_api/en-us/docs/postman.htm).

> [Download the samples](https://help.tableau.com/samples/en-us/tsm_api/samples.zip)

## Samples list

- `authentication.py`. Sign in and out of TSM.
- `backup_restore.py`. Create a backup of Tableau Server and restore the backup.
- `status.py`. Get the status of Tableau Server.

These samples all use the included `tsmutils.py` module to format request URLs, specify the TSM API version (currently 0.5), and process request responses.

## Run the samples

The samples can be run from the command line and include command line help. Use the `-h` flag for information about the available options for each sample.

For example, for information about the `backup_restore.py` sample, run the following command:

```
python backup_restore.py -h
```