ts_create_key
Create a new authentication key for your Tailscale tailnet. Configure key reuse, device ephemerality, preauthorization, tags, and expiration.
Instructions
Create a new auth key. Requires TAILSCALE_WRITE_ENABLED=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | No | Description for the auth key | |
| reusable | No | Allow key to be used multiple times | |
| ephemeral | No | Devices using this key are ephemeral (auto-removed) | |
| preauthorized | No | Devices are pre-approved (no manual auth needed) | |
| tags | No | ACL tags for devices using this key | |
| expiry_seconds | No | Key lifetime in seconds (default 86400 = 24h) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |