cURL
curl --request GET \ --url https://api.ngrok.com/tunnel_sessions \ --header 'Authorization: Bearer <token>' \ --header 'ngrok-version: <ngrok-version>'
{ "tunnel_sessions": [ { "agent_version": "<string>", "credential": { "id": "<string>", "uri": "<string>" }, "id": "<string>", "ip": "<string>", "metadata": "<string>", "os": "<string>", "region": "<string>", "started_at": "<string>", "transport": "<string>", "uri": "<string>" } ], "uri": "<string>", "next_page_uri": "<string>" }
List all online tunnel sessions running on this account.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
list of all tunnel sessions on this account
Show child attributes
version of the ngrok agent that started this ngrok tunnel session
reference to the tunnel credential or ssh credential used by the ngrok agent to start this tunnel session
a resource identifier
a uri for locating a resource
unique tunnel session resource identifier
source ip address of the tunnel session
arbitrary user-defined data specified in the metadata property in the ngrok configuration file. See the metadata configuration option
operating system of the host the ngrok agent is running on
the ngrok region identifier in which this tunnel session was started
time when the tunnel session first connected to the ngrok servers
the transport protocol used to start the tunnel session. Either ngrok/v2 or ssh
ngrok/v2
ssh
URI to the API resource of the tunnel session
URI to the API resource of the tunnel session list
URI of the next page, or null if there is no next page
Was this page helpful?