Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

ngrok Tunnel Sessions API

Tunnel Sessions represent running ngrok agent connections.

ngrok Tunnel Sessions API is one of 24 APIs that ngrok publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 12 JSON Schema definitions.

Tagged areas include Tunnel Sessions. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a JSON-LD context, a GitHub repository, and 12 JSON Schemas.

This API exposes 5 operations across 5 paths, and defines 3 schemas. It is described by OpenAPI 3.1.0, at version 2.0.0.

Requests are made against a single base URL, https://api.ngrok.com.

5 operations 5 paths 3 schemas 2 GET3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2.0.0
Base URL
https://api.ngrok.com
Authentication
HTTP Bearer, API Key
Contact
Resource Areas
1

Authentication & Security 2

ngrok Tunnel Sessions API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). An API key is passed in the header as Authorization (apiKeyAuth). By default, every request must be authenticated.

  • bearerAuth — Use an ngrok API key as a Bearer token. Create API keys from the ngrok dashboard or via the API Keys endpoints.
  • apiKeyAuth — Pass the API key in the Authorization header prefixed with 'Bearer '.

Paths & Operations 5

Across 5 paths, the API surfaces 5 operations — 2 GET, 3 POST. Each is listed below with its method, path, parameters, and response codes.

Tunnel Sessions 5

Tunnel Sessions represent running ngrok agent connections.

GET
/tunnel_sessions
Ngrok List Tunnel Sessions
listTunnelSessions 2 params → 200
GET
/tunnel_sessions/{id}
Ngrok Get Tunnel Session
getTunnelSession 1 param → 200
POST
/tunnel_sessions/{id}/restart
Ngrok Restart Tunnel Session
restartTunnelSession 1 param → 204
POST
/tunnel_sessions/{id}/stop
Ngrok Stop Tunnel Session
stopTunnelSession 1 param → 204
POST
/tunnel_sessions/{id}/update
Ngrok Update Tunnel Session Agent
updateTunnelSessionAgent 1 param body → 204

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are TunnelSession (10 properties), TunnelSessionList (3 properties), Ref (2 properties). Each schema is shown below with its type and property counts.

Ref
object
2 properties
TunnelSession
object
10 properties
TunnelSessionList
object
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

ngrok-tunnel-sessions-api-openapi.yml Raw ↑

Other APIs ngrok publishes across the network.

ngrok Abuse Reports API
ngrok Agent Ingresses API
ngrok API Keys API
ngrok Backends API
ngrok Certificate Authorities API
ngrok Credentials API
ngrok Edges HTTPS API
ngrok Edges TCP API
ngrok Edges TLS API
ngrok Endpoints API
ngrok Event Destinations API
ngrok Event Subscriptions API