Skip to content

Describe the server

GET
/api/info
Code sample: Shell / cURL
curl --request GET \
--url http://127.0.0.1:8004/api/info \
--header 'Authorization: Bearer <token>'

Version, files, and listening address

Media typeapplication/json

GET /api/info: the fixed ServerInfo and what changes while it runs.

object
version
required
string
profile
string | null
config_file
string | null
state_file
string | null
token_file
string | null
token_source
required
string
listen_address
required
string
executable
string | null
log_files

Daily log files; None when file logging is off.

string | null
instance
required

Changes on every start, including an in-place upgrade.

string
pid
required

Kept by an in-place upgrade.

integer format: int32
upgrade_error

Why the last btmux upgrade failed, if it did.

string | null
tailscale
One of:

With --tailscale, whether the tailnet URL is served yet.

One of:
object
state
required
string
Allowed values: starting

Example

{
"tailscale": {
"state": "starting"
}
}

Missing or wrong access token

Media typetext/plain
string

The request’s Host or Origin isn’t allowed, or the caller can’t use this route (a guest token, or btmux connect)