Skip to main content

Tailscale API tools

Contents

tailscale_api

This module provides the TailscaleAPIClient object for working with the Tailscale API. You can authenticate with the API using either an API access token or an OAuth client ID and secret.

import tailscale_api

tsc = tailscale_api.TailscaleAPIClient()

# authenticate with an access token
token = "tskey-api-..."
tsc.set_token(token)
for device in tsc.devices():
    print(device.name)

# authenticate with oauth
ts_client_id = "kHJw5W..."
ts_client_secret = "tskey-client-..."
tsc.set_oauth_client_info(ts_client_id, ts_client_secret)
tsc.set_token(tsc.get_oauth_token())
for device in tsc.devices():
    print(device.name)

The TailscaleAPIClient object does not currently support all available features of the Tailscale API.

Metadata

Release files for tailscale-api 2026.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tailscale-api 2026.0
File Size Uploaded Provenance
tailscale_api-2026.0.tar.gz 2.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tailscale-api 2026.0
File Interpreter ABI Platform
tailscale_api-2026.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.5 kB

Release files / tailscale_api-2026.0.tar.gz

Download URL tailscale_api-2026.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ad16e3c841eb1e24c7d0cad76893ed40817dab33474837dac3ee184c21d18efb
BLAKE2b-256 checksum
How to use checksums
f1a39f49c5115f6d45403370b41400c39759baca706b3947b086b536ea25dde4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / tailscale_api-2026.0-py3-none-any.whl

Download URL tailscale_api-2026.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcfdb582f6bc1c47dc2558cfc8c58b7033f5042dcfd88b29b66813aa20971f89
BLAKE2b-256 checksum
How to use checksums
7405bb92ad57308c319d9dc63ea4a0c3722548fd0edfaf889f63030097f449d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for tailscale-api 2026.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tailscale_api-2026.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page