---
schema_version: "1"
id: 0b06906d324635d3bcc29eee4cd5f866bd86660ad8b9797f0d1c1b96de254725
title: Samples
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/tsm_api/docs/samples.md
canonical_url: https://help.tableau.com/v0.0/api/tsm_api/en-us/docs/samples.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 398d88e77c8250f5a351eab0b7ade33b6002c54012f41859d7f04ee5893a20f8
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](/v0.0/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
```