You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Why is Endpoint address data not available via the API? #20818
But this info is STALE as you can see, my device is no longer on the 142.154.215.50 public IP (that was like 12 hours ago...) The 2606:3680:xxx IPv6 is also stale.
changed the title [-]Why is "Endpoints" data not available via the API?[/-][+]Why is Endpoint address data not available via the API?[/+]on Aug 11, 2026
Have you looked at the clientConnectivity field in the API response? That looks like it contains the Endpoints data you're looking for – but you need to opt-in to receiving it in the devices API. For example:
@alexwlchan thanks for that! looks like that is the data I was after. Yes I couldn't find that noted anywhere in the docs, so agree it would be great to have a list of additional fields.
web-uiIssues involving the Tailscale web client (http://100.100.100.100)
consoleIssues around the Tailscale console (login.tailscale.com)
and removed
web-uiIssues involving the Tailscale web client (http://100.100.100.100)
Activity
[-]Why is "Endpoints" data not available via the API?[/-][+]Why is Endpoint address data not available via the API?[/+]luckman212 commentedon Aug 11, 2026
Thanks for peeking at this. Let me know if any debug info is needed, or running with
TS_DEBUG_MAP=1etcalexwlchan commentedon Aug 11, 2026
Have you looked at the
clientConnectivityfield in the API response? That looks like it contains the Endpoints data you're looking for – but you need to opt-in to receiving it in the devices API. For example:That's not especially clear from the API docs though; we should think about how to make that more discoverable.
luckman212 commentedon Aug 12, 2026
@alexwlchan thanks for that! looks like that is the data I was after. Yes I couldn't find that noted anywhere in the docs, so agree it would be great to have a list of additional fields.
luckman212 commentedon Aug 16, 2026
Circling back to thank you again @alexwlchan
This extended API is exactly what I needed. I had a quick dig through the source to find some other useful field names (in case it helps anyone...)
tailscale/client/tailscale/devices.go
Lines 38 to 59 in cfe32b8