Tailscale
Manage devices and network settings in your Tailscale tailnet
Interact with the Tailscale API to manage devices, DNS, ACLs, auth keys, users, and routes across your tailnet.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
| Parameter | Type | Description |
|---|
devices | array | List of devices in the tailnet |
↳ id | string | Device ID |
↳ name | string | Device name |
↳ hostname | string | Device hostname |
↳ user | string | Associated user |
↳ os | string | Operating system |
↳ clientVersion | string | Tailscale client version |
↳ addresses | array | Tailscale IP addresses |
↳ tags | array | Device tags |
↳ authorized | boolean | Whether the device is authorized |
↳ blocksIncomingConnections | boolean | Whether the device blocks incoming connections |
↳ lastSeen | string | Last seen timestamp |
↳ created | string | Creation timestamp |
count | number | Total number of devices |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
deviceId | string | Yes | No description |
| Parameter | Type | Description |
|---|
id | string | Device ID |
name | string | Device name |
hostname | string | Device hostname |
user | string | Associated user |
os | string | Operating system |
clientVersion | string | Tailscale client version |
addresses | array | Tailscale IP addresses |
tags | array | Device tags |
authorized | boolean | Whether the device is authorized |
blocksIncomingConnections | boolean | Whether the device blocks incoming connections |
lastSeen | string | Last seen timestamp |
created | string | Creation timestamp |
isExternal | boolean | Whether the device is external |
updateAvailable | boolean | Whether an update is available |
machineKey | string | Machine key |
nodeKey | string | Node key |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
deviceId | string | Yes | No description |
| Parameter | Type | Description |
|---|
success | boolean | Whether the device was successfully deleted |
deviceId | string | ID of the deleted device |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
deviceId | string | Yes | No description |
authorized | boolean | Yes | No description |
| Parameter | Type | Description |
|---|
success | boolean | Whether the operation succeeded |
deviceId | string | Device ID |
authorized | boolean | Authorization status after the operation |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
deviceId | string | Yes | No description |
tags | string | Yes | Comma-separated list of tags (e.g., "tag:server,tag:production") |
| Parameter | Type | Description |
|---|
success | boolean | Whether the tags were successfully set |
deviceId | string | deviceId output from the tool |
tags | array | Tags set on the device |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
deviceId | string | Yes | No description |
| Parameter | Type | Description |
|---|
advertisedRoutes | array | Subnet routes the device is advertising |
enabledRoutes | array | Subnet routes that are approved/enabled |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
deviceId | string | Yes | No description |
routes | string | Yes | Comma-separated list of subnet routes to enable (e.g., "10.0.0.0/24,192.168.1.0/24") |
| Parameter | Type | Description |
|---|
advertisedRoutes | array | Subnet routes the device is advertising |
enabledRoutes | array | Subnet routes that are now enabled |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
deviceId | string | Yes | No description |
keyExpiryDisabled | boolean | Yes | No description |
| Parameter | Type | Description |
|---|
success | boolean | Whether the operation succeeded |
deviceId | string | deviceId output from the tool |
keyExpiryDisabled | boolean | Whether key expiry is now disabled |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
| Parameter | Type | Description |
|---|
dns | array | List of DNS nameserver addresses |
magicDNS | boolean | Whether MagicDNS is enabled |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
dns | string | Yes | Comma-separated list of DNS nameserver IP addresses (e.g., "8.8.8.8,8.8.4.4") |
| Parameter | Type | Description |
|---|
dns | array | Updated list of DNS nameserver addresses |
magicDNS | boolean | Whether MagicDNS is enabled |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
| Parameter | Type | Description |
|---|
magicDNS | boolean | Whether MagicDNS is enabled |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
magicDNS | boolean | Yes | No description |
| Parameter | Type | Description |
|---|
magicDNS | boolean | Updated MagicDNS status |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
| Parameter | Type | Description |
|---|
searchPaths | array | List of DNS search path domains |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
searchPaths | string | Yes | Comma-separated list of DNS search path domains (e.g., "corp.example.com,internal.example.com") |
| Parameter | Type | Description |
|---|
result | array | Updated list of DNS search path domains |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
| Parameter | Type | Description |
|---|
users | array | List of users in the tailnet |
↳ id | string | User ID |
↳ displayName | string | Display name |
↳ loginName | string | Login name / email |
↳ profilePicURL | string | Profile picture URL |
↳ role | string | User role (owner, admin, member, etc.) |
↳ status | string | User status (active, suspended, etc.) |
↳ type | string | User type (member, shared, tagged) |
↳ created | string | Creation timestamp |
↳ lastSeen | string | Last seen timestamp |
↳ deviceCount | number | Number of devices owned by user |
count | number | Total number of users |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
reusable | boolean | No | No description |
ephemeral | boolean | No | No description |
preauthorized | boolean | No | No description |
tags | string | No | Comma-separated list of tags for devices using this key (e.g., "tag:server,tag:prod") |
description | string | No | No description |
expirySeconds | number | No | No description |
| Parameter | Type | Description |
|---|
id | string | Auth key ID |
key | string | The auth key value (only shown once at creation) |
description | string | Key description |
created | string | Creation timestamp |
expires | string | Expiration timestamp |
revoked | string | Revocation timestamp (empty if not revoked) |
capabilities | object | Key capabilities |
↳ reusable | boolean | Whether the key is reusable |
↳ ephemeral | boolean | Whether devices are ephemeral |
↳ preauthorized | boolean | Whether devices are pre-authorized |
↳ tags | array | Tags applied to devices using this key |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
| Parameter | Type | Description |
|---|
keys | array | List of auth keys |
↳ id | string | Auth key ID |
↳ description | string | Key description |
↳ created | string | Creation timestamp |
↳ expires | string | Expiration timestamp |
↳ revoked | string | Revocation timestamp |
↳ capabilities | object | Key capabilities |
↳ reusable | boolean | Whether the key is reusable |
↳ ephemeral | boolean | Whether devices are ephemeral |
↳ preauthorized | boolean | Whether devices are pre-authorized |
↳ tags | array | Tags applied to devices |
count | number | Total number of auth keys |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
keyId | string | Yes | No description |
| Parameter | Type | Description |
|---|
id | string | Auth key ID |
description | string | Key description |
created | string | Creation timestamp |
expires | string | Expiration timestamp |
revoked | string | Revocation timestamp |
capabilities | object | Key capabilities |
↳ reusable | boolean | Whether the key is reusable |
↳ ephemeral | boolean | Whether devices are ephemeral |
↳ preauthorized | boolean | Whether devices are pre-authorized |
↳ tags | array | Tags applied to devices using this key |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
keyId | string | Yes | No description |
| Parameter | Type | Description |
|---|
success | boolean | Whether the auth key was successfully deleted |
keyId | string | ID of the deleted auth key |
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | No description |
tailnet | string | Yes | Tailnet name (e.g., example.com) or "-" for default |
| Parameter | Type | Description |
|---|
acl | string | ACL policy as JSON string |
etag | string | ETag for the current ACL version (use with If-Match header for updates) |