Automations
Last validated: Dec 14, 2025
Streamline and automate your Tailscale workflow using official infrastructure as code (IaC) providers, the Tailscale application programming interface (API), webhooks, and integrations.
Infrastructure as code
Infrastructure as code (IaC) is a method of managing infrastructure using machine-readable definition files rather than physical hardware or interactive configuration tools. Tailscale offers official providers for Terraform and Pulumi that let you interact with the Tailscale API to manage various Tailscale resources, such as access control policies, devices, nameservers, and other configurations.
Manage Tailscale resources using Terraform \ \ Use the Terraform Tailscale provider to interact with the Tailscale API. Manage Tailscale resources using Pulumi \ \ Use the Pulumi Tailscale provider to interact with the Tailscale API.
API
Tailscale offers an API to let you automate various aspects of your network.
Tailscale API \ \ Explore the Tailscale application programming interface (API).
Webhooks
Webhooks let you subscribe to certain events on your Tailscale network and process the event notifications through an integration or app.
Webhooks \ \ Set up a webhook to receive notification of events on your Tailscale network.
GitOps
GitOps for Tailscale is an alternative to managing access control policies and the tailnet policy file using the admin console.
GitOps for Tailscale with Bitbucket \ \ Use a Bitbucket CI to maintain your tailnet policy file as code. GitOps for Tailscale with GitLab CI \ \ Use a GitLab CI to maintain your tailnet policy file as code. GitOps for Tailscale with GitHub Actions \ \ Use a GitHub Action to maintain your tailnet policy file as code.
Tailscale Shortcuts for macOS and iOS
Tailscale works with the Shortcuts app on macOS and iOS to provide several built-in shortcut actions, allowing you to automate tasks. For example, you can create shortcuts to connect your device to a tailnet, use an exit node, or switch user accounts.
Ask AI
reCAPTCHA
Recaptcha requires verification.
protected by reCAPTCHA