Skip to main content
With the ngrok agent CLI, you can use built-in commands to interact with the ngrok API. For more information about the ngrok API and interfacing with it directly, see the ngrok api page.
If you want to programmatically control the ngrok agent, the Agent SDKs are usually a more flexible and powerful choice.

ngrok api

The api command provides access to ngrok’s API. You can use the API through one of the api subcommmands. All api subcommands require an API key. You can configure it either through a command flag (—api-key) or add it in ngrok’s configuration file (api_key). You can get the initial API key at https://dashboard.ngrok.com/api-keys. Additional keys can be created through ‘ngrok api api-keys create’ subcommand.

SubCommands

Flags

ngrok api abuse-reports

Abuse Reports allow you to submit take-down requests for URLs hosted by ngrok that violate ngrok’s terms of service.

SubCommands

Flags

ngrok api abuse-reports create

Creates a new abuse report which will be reviewed by our system and abuse response team. This API is only available to authorized accounts. Contact abuse@ngrok.com to request access

Usage

Flags

ngrok api abuse-reports get

Get the detailed status of abuse report by ID.

Usage

Flags

ngrok api agent-ingresses

SubCommands

Flags

ngrok api agent-ingresses create

Create a new Agent Ingress. The ngrok agent can be configured to connect to ngrok via the new set of addresses on the returned Agent Ingress.

Usage

Flags

ngrok api agent-ingresses delete

Delete an Agent Ingress by ID

Usage

Flags

ngrok api agent-ingresses get

Get the details of an Agent Ingress by ID.

Usage

Flags

ngrok api agent-ingresses list

List all Agent Ingresses owned by this account

Usage

Flags

ngrok api agent-ingresses update

Update attributes of an Agent Ingress by ID.

Usage

Flags

ngrok api ai-gateway-api-keys

AIGatewayAPIKeys is an api service for managing API keys used to authenticate requests to AI Gateway endpoints.

SubCommands

Flags

ngrok api ai-gateway-api-keys create

Create a new AI Gateway API Key

Usage

Flags

ngrok api ai-gateway-api-keys delete

Delete an AI Gateway API Key

Usage

Flags

ngrok api ai-gateway-api-keys get

Get an AI Gateway API Key by ID

Usage

Flags

ngrok api ai-gateway-api-keys list

List all AI Gateway API Keys owned by account

Usage

Flags

ngrok api ai-gateway-api-keys update

Update an existing AI Gateway API Key by ID

Usage

Flags

ngrok api ai-gateway-provider-keys

AIGatewayProviderKeys is an api service for managing provider keys attached to an AI Gateway API Key.

SubCommands

Flags

ngrok api ai-gateway-provider-keys create

Create a new AI Gateway Provider Key

Usage

Flags

ngrok api ai-gateway-provider-keys delete

Delete an AI Gateway Provider Key

Usage

Flags

ngrok api ai-gateway-provider-keys get

Get an AI Gateway Provider Key by ID

Usage

Flags

ngrok api ai-gateway-provider-keys list

List AI Gateway Provider Keys

Usage

Flags

ngrok api ai-gateway-provider-keys update

Update an existing AI Gateway Provider Key by ID

Usage

Flags

ngrok api api-keys

API Keys are used to authenticate to the ngrok API (https://ngrok.com/docs/api#authentication). You may use the API itself to provision and manage API Keys but you’ll need to provision your first API key from the API Keys page (https://dashboard.ngrok.com/api-keys) on your ngrok.com dashboard.

SubCommands

Flags

ngrok api api-keys create

Create a new API key. The generated API key can be used to authenticate to the ngrok API.

Usage

Flags

ngrok api api-keys delete

Delete an API key by ID

Usage

Flags

ngrok api api-keys get

Get the details of an API key by ID.

Usage

Flags

ngrok api api-keys list

List all API keys owned by this account

Usage

Flags

ngrok api api-keys update

Update attributes of an API key by ID.

Usage

Flags

ngrok api application-sessions

SubCommands

Flags

ngrok api application-sessions delete

Delete an application session by ID.

Usage

Flags

ngrok api application-sessions get

Get an application session by ID.

Usage

Flags

ngrok api application-sessions list

List all application sessions for this account.

Usage

Flags

ngrok api application-users

SubCommands

Flags

ngrok api application-users delete

Delete an application user by ID.

Usage

Flags

ngrok api application-users get

Get an application user by ID.

Usage

Flags

ngrok api application-users list

List all application users for this account.

Usage

Flags

ngrok api backends

SubCommands

Flags

ngrok api backends failover

A Failover backend defines failover behavior within a list of referenced backends. Traffic is sent to the first backend in the list. If that backend is offline or no connection can be established, ngrok attempts to connect to the next backend in the list until one is successful.

SubCommands

Flags

ngrok api backends failover create

Create a new Failover backend

Usage

Flags

ngrok api backends failover delete

Delete a Failover backend by ID.

Usage

Flags

ngrok api backends failover get

Get detailed information about a Failover backend by ID

Usage

Flags

ngrok api backends failover list

List all Failover backends on this account

Usage

Flags

ngrok api backends failover update

Update Failover backend by ID

Usage

Flags

ngrok api backends http-response

SubCommands

Flags

ngrok api backends http-response create

Usage

Flags

ngrok api backends http-response delete

Usage

Flags

ngrok api backends http-response get

Usage

Flags

ngrok api backends http-response list

Usage

Flags

ngrok api backends http-response update

Usage

Flags

ngrok api backends static-address

A static backend sends traffic to a TCP address (hostname and port) that is reachable on the public internet.

SubCommands

Flags

ngrok api backends static-address create

Create a new static backend

Usage

Flags

ngrok api backends static-address delete

Delete a static backend by ID.

Usage

Flags

ngrok api backends static-address get

Get detailed information about a static backend by ID

Usage

Flags

ngrok api backends static-address list

List all static backends on this account

Usage

Flags

ngrok api backends static-address update

Update static backend by ID

Usage

Flags

ngrok api backends tunnel-group

A Tunnel Group Backend balances traffic among all online tunnels that match a label selector.

SubCommands

Flags

ngrok api backends tunnel-group create

Create a new TunnelGroup backend

Usage

Flags

ngrok api backends tunnel-group delete

Delete a TunnelGroup backend by ID.

Usage

Flags

ngrok api backends tunnel-group get

Get detailed information about a TunnelGroup backend by ID

Usage

Flags

ngrok api backends tunnel-group list

List all TunnelGroup backends on this account

Usage

Flags

ngrok api backends tunnel-group update

Update TunnelGroup backend by ID

Usage

Flags

ngrok api backends weighted

A Weighted Backend balances traffic among the referenced backends. Traffic is assigned proportionally to each based on its weight. The percentage of traffic is calculated by dividing a backend’s weight by the sum of all weights.

SubCommands

Flags

ngrok api backends weighted create

Create a new Weighted backend

Usage

Flags

ngrok api backends weighted delete

Delete a Weighted backend by ID.

Usage

Flags

ngrok api backends weighted get

Get detailed information about a Weighted backend by ID

Usage

Flags

ngrok api backends weighted list

List all Weighted backends on this account

Usage

Flags

ngrok api backends weighted update

Update Weighted backend by ID

Usage

Flags

ngrok api bot-users

SubCommands

Flags

ngrok api bot-users create

Create a new bot user

Usage

Flags

ngrok api bot-users delete

Delete a bot user by ID

Usage

Flags

ngrok api bot-users get

Get the details of a Bot User by ID.

Usage

Flags

ngrok api bot-users list

List all bot users in this account.

Usage

Flags

ngrok api bot-users update

Update attributes of a bot user by ID.

Usage

Flags

ngrok api certificate-authorities

Certificate Authorities are x509 certificates that are used to sign other x509 certificates. Attach a Certificate Authority to the Mutual TLS module to verify that the TLS certificate presented by a client has been signed by this CA. Certificate Authorities are used only for mTLS validation only and thus a private key is not included in the resource.

SubCommands

Flags

ngrok api certificate-authorities create

Upload a new Certificate Authority

Usage

Flags

ngrok api certificate-authorities delete

Delete a Certificate Authority

Usage

Flags

ngrok api certificate-authorities get

Get detailed information about a certificate authority

Usage

Flags

ngrok api certificate-authorities list

List all Certificate Authority on this account

Usage

Flags

ngrok api certificate-authorities update

Update attributes of a Certificate Authority by ID

Usage

Flags

ngrok api credentials

Tunnel Credentials are ngrok agent authtokens. They authorize the ngrok agent to connect the ngrok service as your account. They are installed with the ngrok config add-authtoken command or by specifying it in the ngrok.yml configuration file with the authtoken property.

SubCommands

Flags

ngrok api credentials create

Create a new tunnel authtoken credential. This authtoken credential can be used to start a new tunnel session. The response to this API call is the only time the generated token is available. If you need it for future use, you must save it securely yourself.

Usage

Flags

ngrok api credentials delete

Delete a tunnel authtoken credential by ID

Usage

Flags

ngrok api credentials get

Get detailed information about a tunnel authtoken credential

Usage

Flags

ngrok api credentials list

List all tunnel authtoken credentials on this account

Usage

Flags

ngrok api credentials update

Update attributes of an tunnel authtoken credential by ID

Usage

Flags

ngrok api edge-modules

SubCommands

Flags

ngrok api edge-modules https-edge-mutual-tls

SubCommands

Flags

ngrok api edge-modules https-edge-mutual-tls delete

Usage

Flags

ngrok api edge-modules https-edge-mutual-tls get

Usage

Flags

ngrok api edge-modules https-edge-mutual-tls replace

Usage

Flags

ngrok api edge-modules https-edge-route-backend

SubCommands

Flags

ngrok api edge-modules https-edge-route-backend delete

Usage

Flags

ngrok api edge-modules https-edge-route-backend get

Usage

Flags

ngrok api edge-modules https-edge-route-backend replace

Usage

Flags

ngrok api edge-modules https-edge-route-circuit-breaker

SubCommands

Flags

ngrok api edge-modules https-edge-route-circuit-breaker delete

Usage

Flags

ngrok api edge-modules https-edge-route-circuit-breaker get

Usage

Flags

ngrok api edge-modules https-edge-route-circuit-breaker replace

Usage

Flags

ngrok api edge-modules https-edge-route-compression

SubCommands

Flags

ngrok api edge-modules https-edge-route-compression delete

Usage

Flags

ngrok api edge-modules https-edge-route-compression get

Usage

Flags

ngrok api edge-modules https-edge-route-compression replace

Usage

Flags

ngrok api edge-modules https-edge-route-ip-restriction

SubCommands

Flags

ngrok api edge-modules https-edge-route-ip-restriction delete

Usage

Flags

ngrok api edge-modules https-edge-route-ip-restriction get

Usage

Flags

ngrok api edge-modules https-edge-route-ip-restriction replace

Usage

Flags

ngrok api edge-modules https-edge-route-oauth

SubCommands

Flags

ngrok api edge-modules https-edge-route-oauth delete

Usage

Flags

ngrok api edge-modules https-edge-route-oauth get

Usage

Flags

ngrok api edge-modules https-edge-route-oauth replace

Usage

Flags

ngrok api edge-modules https-edge-route-oidc

SubCommands

Flags

ngrok api edge-modules https-edge-route-oidc delete

Usage

Flags

ngrok api edge-modules https-edge-route-oidc get

Usage

Flags

ngrok api edge-modules https-edge-route-oidc replace

Usage

Flags

ngrok api edge-modules https-edge-route-request-headers

SubCommands

Flags

ngrok api edge-modules https-edge-route-request-headers delete

Usage

Flags

ngrok api edge-modules https-edge-route-request-headers get

Usage

Flags

ngrok api edge-modules https-edge-route-request-headers replace

Usage

Flags

ngrok api edge-modules https-edge-route-response-headers

SubCommands

Flags

ngrok api edge-modules https-edge-route-response-headers delete

Usage

Flags

ngrok api edge-modules https-edge-route-response-headers get

Usage

Flags

ngrok api edge-modules https-edge-route-response-headers replace

Usage

Flags

ngrok api edge-modules https-edge-route-saml

SubCommands

Flags

ngrok api edge-modules https-edge-route-saml delete

Usage

Flags

ngrok api edge-modules https-edge-route-saml get

Usage

Flags

ngrok api edge-modules https-edge-route-saml replace

Usage

Flags

ngrok api edge-modules https-edge-route-traffic-policy

SubCommands

Flags

ngrok api edge-modules https-edge-route-traffic-policy delete

Usage

Flags

ngrok api edge-modules https-edge-route-traffic-policy get

Usage

Flags

ngrok api edge-modules https-edge-route-traffic-policy replace

Usage

Flags

ngrok api edge-modules https-edge-route-user-agent-filter

SubCommands

Flags

ngrok api edge-modules https-edge-route-user-agent-filter delete

Usage

Flags

ngrok api edge-modules https-edge-route-user-agent-filter get

Usage

Flags

ngrok api edge-modules https-edge-route-user-agent-filter replace

Usage

Flags

ngrok api edge-modules https-edge-route-webhook-verification

SubCommands

Flags

ngrok api edge-modules https-edge-route-webhook-verification delete

Usage

Flags

ngrok api edge-modules https-edge-route-webhook-verification get

Usage

Flags

ngrok api edge-modules https-edge-route-webhook-verification replace

Usage

Flags

ngrok api edge-modules https-edge-route-websocket-tcp-converter

SubCommands

Flags

ngrok api edge-modules https-edge-route-websocket-tcp-converter delete

Usage

Flags

ngrok api edge-modules https-edge-route-websocket-tcp-converter get

Usage

Flags

ngrok api edge-modules https-edge-route-websocket-tcp-converter replace

Usage

Flags

ngrok api edge-modules https-edge-tls-termination

SubCommands

Flags

ngrok api edge-modules https-edge-tls-termination delete

Usage

Flags

ngrok api edge-modules https-edge-tls-termination get

Usage

Flags

ngrok api edge-modules https-edge-tls-termination replace

Usage

Flags

ngrok api edge-modules tcp-edge-backend

SubCommands

Flags

ngrok api edge-modules tcp-edge-backend delete

Usage

Flags

ngrok api edge-modules tcp-edge-backend get

Usage

Flags

ngrok api edge-modules tcp-edge-backend replace

Usage

Flags

ngrok api edge-modules tcp-edge-ip-restriction

SubCommands

Flags

ngrok api edge-modules tcp-edge-ip-restriction delete

Usage

Flags

ngrok api edge-modules tcp-edge-ip-restriction get

Usage

Flags

ngrok api edge-modules tcp-edge-ip-restriction replace

Usage

Flags

ngrok api edge-modules tcp-edge-traffic-policy

SubCommands

Flags

ngrok api edge-modules tcp-edge-traffic-policy delete

Usage

Flags

ngrok api edge-modules tcp-edge-traffic-policy get

Usage

Flags

ngrok api edge-modules tcp-edge-traffic-policy replace

Usage

Flags

ngrok api edge-modules tls-edge-backend

SubCommands

Flags

ngrok api edge-modules tls-edge-backend delete

Usage

Flags

ngrok api edge-modules tls-edge-backend get

Usage

Flags

ngrok api edge-modules tls-edge-backend replace

Usage

Flags

ngrok api edge-modules tls-edge-ip-restriction

SubCommands

Flags

ngrok api edge-modules tls-edge-ip-restriction delete

Usage

Flags

ngrok api edge-modules tls-edge-ip-restriction get

Usage

Flags

ngrok api edge-modules tls-edge-ip-restriction replace

Usage

Flags

ngrok api edge-modules tls-edge-mutual-tls

SubCommands

Flags

ngrok api edge-modules tls-edge-mutual-tls delete

Usage

Flags

ngrok api edge-modules tls-edge-mutual-tls get

Usage

Flags

ngrok api edge-modules tls-edge-mutual-tls replace

Usage

Flags

ngrok api edge-modules tls-edge-tls-termination

SubCommands

Flags

ngrok api edge-modules tls-edge-tls-termination delete

Usage

Flags

ngrok api edge-modules tls-edge-tls-termination get

Usage

Flags

ngrok api edge-modules tls-edge-tls-termination replace

Usage

Flags

ngrok api edge-modules tls-edge-traffic-policy

SubCommands

Flags

ngrok api edge-modules tls-edge-traffic-policy delete

Usage

Flags

ngrok api edge-modules tls-edge-traffic-policy get

Usage

Flags

ngrok api edge-modules tls-edge-traffic-policy replace

Usage

Flags

ngrok api edges

SubCommands

Flags

ngrok api edges https

SubCommands

Flags

ngrok api edges https create

Create an HTTPS Edge

Usage

Flags

ngrok api edges https delete

Delete an HTTPS Edge by ID

Usage

Flags

ngrok api edges https get

Get an HTTPS Edge by ID

Usage

Flags

ngrok api edges https list

Returns a list of all HTTPS Edges on this account

Usage

Flags

ngrok api edges https update

Updates an HTTPS Edge by ID. If a module is not specified in the update, it will not be modified. However, each module configuration that is specified will completely replace the existing value. There is no way to delete an existing module via this API, instead use the delete module API.

Usage

Flags

ngrok api edges https-routes

SubCommands

Flags

ngrok api edges https-routes create

Create an HTTPS Edge Route

Usage

Flags

ngrok api edges https-routes delete

Delete an HTTPS Edge Route by ID

Usage

Flags

ngrok api edges https-routes get

Get an HTTPS Edge Route by ID

Usage

Flags

ngrok api edges https-routes update

Updates an HTTPS Edge Route by ID. If a module is not specified in the update, it will not be modified. However, each module configuration that is specified will completely replace the existing value. There is no way to delete an existing module via this API, instead use the delete module API.

Usage

Flags

ngrok api edges tcp

SubCommands

Flags

ngrok api edges tcp create

Create a TCP Edge

Usage

Flags

ngrok api edges tcp delete

Delete a TCP Edge by ID

Usage

Flags

ngrok api edges tcp get

Get a TCP Edge by ID

Usage

Flags

ngrok api edges tcp list

Returns a list of all TCP Edges on this account

Usage

Flags

ngrok api edges tcp update

Updates a TCP Edge by ID. If a module is not specified in the update, it will not be modified. However, each module configuration that is specified will completely replace the existing value. There is no way to delete an existing module via this API, instead use the delete module API.

Usage

Flags

ngrok api edges tls

SubCommands

Flags

ngrok api edges tls create

Create a TLS Edge

Usage

Flags

ngrok api edges tls delete

Delete a TLS Edge by ID

Usage

Flags

ngrok api edges tls get

Get a TLS Edge by ID

Usage

Flags

ngrok api edges tls list

Returns a list of all TLS Edges on this account

Usage

Flags

ngrok api edges tls update

Updates a TLS Edge by ID. If a module is not specified in the update, it will not be modified. However, each module configuration that is specified will completely replace the existing value. There is no way to delete an existing module via this API, instead use the delete module API.

Usage

Flags

ngrok api endpoint-configurations

Endpoint Configurations are a reusable group of modules that encapsulate how traffic to a domain or address is handled. Endpoint configurations are only applied to Domains and TCP Addresses they have been attached to.

SubCommands

Flags

ngrok api endpoint-configurations create

Create a new endpoint configuration

Usage

Flags

ngrok api endpoint-configurations delete

Delete an endpoint configuration. This operation will fail if the endpoint configuration is still referenced by any reserved domain or reserved address.

Usage

Flags

ngrok api endpoint-configurations get

Returns detailed information about an endpoint configuration

Usage

Flags

ngrok api endpoint-configurations list

Returns a list of all endpoint configurations on this account

Usage

Flags

ngrok api endpoint-configurations update

Updates an endpoint configuration. If a module is not specified in the update, it will not be modified. However, each module configuration that is specified will completely replace the existing value. There is no way to delete an existing module via this API, instead use the delete module API.

Usage

Flags

ngrok api endpoints

Endpoints provides an API for querying the endpoint objects which define what tunnel or edge is used to serve a hostport. Only active endpoints associated with a tunnel or backend are returned.

SubCommands

Flags

ngrok api endpoints create

Create an endpoint, currently available only for cloud endpoints

Usage

Flags

ngrok api endpoints delete

Delete an Endpoint by ID, currently available only for cloud endpoints

Usage

Flags

ngrok api endpoints get

Get the status of an endpoint by ID

Usage

Flags

ngrok api endpoints list

List all active endpoints on the account

Usage

Flags

ngrok api endpoints update

Update an Endpoint by ID, currently available only for cloud endpoints

Usage

Flags

ngrok api event-destinations

SubCommands

Flags

ngrok api event-destinations create

Create a new Event Destination. It will not apply to anything until it is associated with an Event Subscription.

Usage

Flags

ngrok api event-destinations delete

Delete an Event Destination. If the Event Destination is still referenced by an Event Subscription.

Usage

Flags

ngrok api event-destinations get

Get detailed information about an Event Destination by ID.

Usage

Flags

ngrok api event-destinations list

List all Event Destinations on this account.

Usage

Flags

ngrok api event-destinations send-test-event

Send a test event to an Event Destination

Usage

Flags

ngrok api event-destinations update

Update attributes of an Event Destination.

Usage

Flags

ngrok api event-sources

SubCommands

Flags

ngrok api event-sources create

Add an additional type for which this event subscription will trigger

Usage

Flags

ngrok api event-sources delete

Remove a type for which this event subscription will trigger

Usage

Flags

ngrok api event-sources get

Get the details for a given type that triggers for the given event subscription

Usage

Flags

ngrok api event-sources list

List the types for which this event subscription will trigger

Usage

Flags

ngrok api event-sources update

Update the type for which this event subscription will trigger

Usage

Flags

ngrok api event-subscriptions

SubCommands

Flags

ngrok api event-subscriptions create

Create an Event Subscription.

Usage

Flags

ngrok api event-subscriptions delete

Delete an Event Subscription.

Usage

Flags

ngrok api event-subscriptions get

Get an Event Subscription by ID.

Usage

Flags

ngrok api event-subscriptions list

List this Account’s Event Subscriptions.

Usage

Flags

ngrok api event-subscriptions update

Update an Event Subscription.

Usage

Flags

ngrok api ip-policies

IP Policies are reusable groups of CIDR ranges with an allow or deny action. They can be attached to endpoints via the Endpoint Configuration IP Policy module. They can also be used with IP Restrictions to control source IP ranges that can start tunnel sessions and connect to the API and dashboard.

SubCommands

Flags

ngrok api ip-policies create

Create a new IP policy. It will not apply to any traffic until you associate to a traffic source via an endpoint configuration or IP restriction.

Usage

Flags

ngrok api ip-policies delete

Delete an IP policy. If the IP policy is referenced by another object for the purposes of traffic restriction it will be treated as if the IP policy remains but has zero rules.

Usage

Flags

ngrok api ip-policies get

Get detailed information about an IP policy by ID.

Usage

Flags

ngrok api ip-policies list

List all IP policies on this account

Usage

Flags

ngrok api ip-policies update

Update attributes of an IP policy by ID

Usage

Flags

ngrok api ip-policy-rules

IP Policy Rules are the IPv4 or IPv6 CIDRs entries that make up an IP Policy.

SubCommands

Flags

ngrok api ip-policy-rules create

Create a new IP policy rule attached to an IP Policy.

Usage

Flags

ngrok api ip-policy-rules delete

Delete an IP policy rule.

Usage

Flags

ngrok api ip-policy-rules get

Get detailed information about an IP policy rule by ID.

Usage

Flags

ngrok api ip-policy-rules list

List all IP policy rules on this account

Usage

Flags

ngrok api ip-policy-rules update

Update attributes of an IP policy rule by ID

Usage

Flags

ngrok api ip-restrictions

An IP restriction is a restriction placed on the CIDRs that are allowed to initiate traffic to a specific aspect of your ngrok account. An IP restriction has a type which defines the ingress it applies to. IP restrictions can be used to enforce the source IPs that can make API requests, log in to the dashboard, start ngrok agents, and connect to your public-facing endpoints.

SubCommands

Flags

ngrok api ip-restrictions create

Create a new IP restriction

Usage

Flags

ngrok api ip-restrictions delete

Delete an IP restriction

Usage

Flags

ngrok api ip-restrictions get

Get detailed information about an IP restriction

Usage

Flags

ngrok api ip-restrictions list

List all IP restrictions on this account

Usage

Flags

ngrok api ip-restrictions update

Update attributes of an IP restriction by ID

Usage

Flags

ngrok api kubernetes-operators

KubernetesOperators is used by the Kubernetes Operator to register and manage its own resource, as well as for users to see active kubernetes clusters.

SubCommands

Flags

ngrok api kubernetes-operators create

Create a new Kubernetes Operator

Usage

Flags

ngrok api kubernetes-operators delete

Delete a Kubernetes Operator

Usage

Flags

ngrok api kubernetes-operators get

Get of a Kubernetes Operator

Usage

Flags

ngrok api kubernetes-operators get-bound-endpoints

List Endpoints bound to a Kubernetes Operator

Usage

Flags

ngrok api kubernetes-operators list

List all Kubernetes Operators owned by this account

Usage

Flags

ngrok api kubernetes-operators update

Update an existing Kubernetes operator by ID.

Usage

Flags

ngrok api personal-access-tokens

Personal Access Tokens (PATs) are bearer credentials that authenticate the ngrok agent as the issuing principal. The token secret is only returned at creation time; save it securely. The effective permissions of a PAT are derived from the principal’s membership in the account at authentication time.

SubCommands

Flags

ngrok api personal-access-tokens create

Create a new Personal Access Token. The token secret is only returned in this response and cannot be retrieved later. If lost, you must create a new token.

Usage

Flags

ngrok api personal-access-tokens delete

Revoke a Personal Access Token by ID.

Usage

Flags

ngrok api personal-access-tokens get

Get a Personal Access Token by ID.

Usage

Flags

ngrok api personal-access-tokens list

List all Personal Access Tokens for this account

Usage

Flags

ngrok api personal-access-tokens update

Update attributes of a Personal Access Token by ID.

Usage

Flags

ngrok api pointcfg-module

SubCommands

Flags

ngrok api pointcfg-module backend

SubCommands

Flags

ngrok api pointcfg-module backend delete

Usage

Flags

ngrok api pointcfg-module backend get

Usage

Flags

ngrok api pointcfg-module backend replace

Usage

Flags

ngrok api pointcfg-module basic-auth

SubCommands

Flags

ngrok api pointcfg-module basic-auth delete

Usage

Flags

ngrok api pointcfg-module basic-auth get

Usage

Flags

ngrok api pointcfg-module basic-auth replace

Usage

Flags

ngrok api pointcfg-module circuit-breaker

SubCommands

Flags

ngrok api pointcfg-module circuit-breaker delete

Usage

Flags

ngrok api pointcfg-module circuit-breaker get

Usage

Flags

ngrok api pointcfg-module circuit-breaker replace

Usage

Flags

ngrok api pointcfg-module compression

SubCommands

Flags

ngrok api pointcfg-module compression delete

Usage

Flags

ngrok api pointcfg-module compression get

Usage

Flags

ngrok api pointcfg-module compression replace

Usage

Flags

ngrok api pointcfg-module ip-policy

SubCommands

Flags

ngrok api pointcfg-module ip-policy delete

Usage

Flags

ngrok api pointcfg-module ip-policy get

Usage

Flags

ngrok api pointcfg-module ip-policy replace

Usage

Flags

ngrok api pointcfg-module mutual-tls

SubCommands

Flags

ngrok api pointcfg-module mutual-tls delete

Usage

Flags

ngrok api pointcfg-module mutual-tls get

Usage

Flags

ngrok api pointcfg-module mutual-tls replace

Usage

Flags

ngrok api pointcfg-module oauth

SubCommands

Flags

ngrok api pointcfg-module oauth delete

Usage

Flags

ngrok api pointcfg-module oauth get

Usage

Flags

ngrok api pointcfg-module oauth replace

Usage

Flags

ngrok api pointcfg-module oidc

SubCommands

Flags

ngrok api pointcfg-module oidc delete

Usage

Flags

ngrok api pointcfg-module oidc get

Usage

Flags

ngrok api pointcfg-module oidc replace

Usage

Flags

ngrok api pointcfg-module request-headers

SubCommands

Flags

ngrok api pointcfg-module request-headers delete

Usage

Flags

ngrok api pointcfg-module request-headers get

Usage

Flags

ngrok api pointcfg-module request-headers replace

Usage

Flags

ngrok api pointcfg-module response-headers

SubCommands

Flags

ngrok api pointcfg-module response-headers delete

Usage

Flags

ngrok api pointcfg-module response-headers get

Usage

Flags

ngrok api pointcfg-module response-headers replace

Usage

Flags

ngrok api pointcfg-module saml

SubCommands

Flags

ngrok api pointcfg-module saml delete

Usage

Flags

ngrok api pointcfg-module saml get

Usage

Flags

ngrok api pointcfg-module saml replace

Usage

Flags

ngrok api pointcfg-module tls-termination

SubCommands

Flags

ngrok api pointcfg-module tls-termination delete

Usage

Flags

ngrok api pointcfg-module tls-termination get

Usage

Flags

ngrok api pointcfg-module tls-termination replace

Usage

Flags

ngrok api pointcfg-module webhook-validation

SubCommands

Flags

ngrok api pointcfg-module webhook-validation delete

Usage

Flags

ngrok api pointcfg-module webhook-validation get

Usage

Flags

ngrok api pointcfg-module webhook-validation replace

Usage

Flags

ngrok api reserved-addrs

Reserved Addresses are TCP addresses that can be used to listen for traffic. TCP address hostnames and ports are assigned by ngrok, they cannot be chosen.

SubCommands

Flags

ngrok api reserved-addrs create

Create a new reserved address.

Usage

Flags

ngrok api reserved-addrs delete

Delete a reserved address.

Usage

Flags

ngrok api reserved-addrs delete-endpoint-config

Detach the endpoint configuration attached to a reserved address.

Usage

Flags

ngrok api reserved-addrs get

Get the details of a reserved address.

Usage

Flags

ngrok api reserved-addrs list

List all reserved addresses on this account.

Usage

Flags

ngrok api reserved-addrs update

Update the attributes of a reserved address.

Usage

Flags

ngrok api reserved-domains

Reserved Domains are hostnames that you can listen for traffic on. Domains can be used to listen for http, https or tls traffic. You may use a domain that you own by creating a CNAME record specified in the returned resource. This CNAME record points traffic for that domain to ngrok’s edge servers.

SubCommands

Flags

ngrok api reserved-domains create

Create a new reserved domain.

Usage

Flags

ngrok api reserved-domains delete

Delete a reserved domain.

Usage

Flags

ngrok api reserved-domains delete-certificate

Detach the certificate attached to a reserved domain.

Usage

Flags

ngrok api reserved-domains delete-certificate-management-policy

Detach the certificate management policy attached to a reserved domain.

Usage

Flags

ngrok api reserved-domains delete-http-endpoint-config

Detach the http endpoint configuration attached to a reserved domain.

Usage

Flags

ngrok api reserved-domains delete-https-endpoint-config

Detach the https endpoint configuration attached to a reserved domain.

Usage

Flags

ngrok api reserved-domains get

Get the details of a reserved domain.

Usage

Flags

ngrok api reserved-domains list

List all reserved domains on this account.

Usage

Flags

ngrok api reserved-domains update

Update the attributes of a reserved domain.

Usage

Flags

ngrok api root

SubCommands

Flags

ngrok api root get

Usage

Flags

ngrok api root self

Get the details of the data used in this current request

Usage

Flags

ngrok api secrets

Secrets is an api service for securely storing and managing sensitive data such as secrets, credentials, and tokens.

SubCommands

Flags

ngrok api secrets create

Create a new Secret

Usage

Flags

ngrok api secrets delete

Delete a Secret

Usage

Flags

ngrok api secrets get

Get a Secret by ID

Usage

Flags

ngrok api secrets list

List all Secrets owned by account

Usage

Flags

ngrok api secrets update

Update an existing Secret by ID

Usage

Flags

ngrok api service-users

SubCommands

Flags

ngrok api service-users create

Create a new service user

Usage

Flags

ngrok api service-users delete

Delete a service user by ID

Usage

Flags

ngrok api service-users get

Get the details of a Bot User by ID.

Usage

Flags

ngrok api service-users list

List all service users in this account.

Usage

Flags

ngrok api service-users update

Update attributes of a service user by ID.

Usage

Flags

ngrok api ssh-certificate-authorities

An SSH Certificate Authority is a pair of an SSH Certificate and its private key that can be used to sign other SSH host and user certificates.

SubCommands

Flags

ngrok api ssh-certificate-authorities create

Create a new SSH Certificate Authority

Usage

Flags

ngrok api ssh-certificate-authorities delete

Delete an SSH Certificate Authority

Usage

Flags

ngrok api ssh-certificate-authorities get

Get detailed information about an SSH Certificate Authority

Usage

Flags

ngrok api ssh-certificate-authorities list

List all SSH Certificate Authorities on this account

Usage

Flags

ngrok api ssh-certificate-authorities update

Update an SSH Certificate Authority

Usage

Flags

ngrok api ssh-credentials

SSH Credentials are SSH public keys that can be used to start SSH tunnels via the ngrok SSH tunnel gateway.

SubCommands

Flags

ngrok api ssh-credentials create

Create a new ssh_credential from an uploaded public SSH key. This ssh credential can be used to start new tunnels via ngrok’s SSH gateway.

Usage

Flags

ngrok api ssh-credentials delete

Delete an ssh_credential by ID

Usage

Flags

ngrok api ssh-credentials get

Get detailed information about an ssh_credential

Usage

Flags

ngrok api ssh-credentials list

List all ssh credentials on this account

Usage

Flags

ngrok api ssh-credentials update

Update attributes of an ssh_credential by ID

Usage

Flags

ngrok api ssh-host-certificates

SSH Host Certificates along with the corresponding private key allows an SSH server to assert its authenticity to connecting SSH clients who trust the SSH Certificate Authority that was used to sign the certificate.

SubCommands

Flags

ngrok api ssh-host-certificates create

Create a new SSH Host Certificate

Usage

Flags

ngrok api ssh-host-certificates delete

Delete an SSH Host Certificate

Usage

Flags

ngrok api ssh-host-certificates get

Get detailed information about an SSH Host Certificate

Usage

Flags

ngrok api ssh-host-certificates list

List all SSH Host Certificates issued on this account

Usage

Flags

ngrok api ssh-host-certificates update

Update an SSH Host Certificate

Usage

Flags

ngrok api ssh-user-certificates

SSH User Certificates are presented by SSH clients when connecting to an SSH server to authenticate their connection. The SSH server must trust the SSH Certificate Authority used to sign the certificate.

SubCommands

Flags

ngrok api ssh-user-certificates create

Create a new SSH User Certificate

Usage

Flags

ngrok api ssh-user-certificates delete

Delete an SSH User Certificate

Usage

Flags

ngrok api ssh-user-certificates get

Get detailed information about an SSH User Certificate

Usage

Flags

ngrok api ssh-user-certificates list

List all SSH User Certificates issued on this account

Usage

Flags

ngrok api ssh-user-certificates update

Update an SSH User Certificate

Usage

Flags

ngrok api tls-certificates

TLS Certificates are pairs of x509 certificates and their matching private key that can be used to terminate TLS traffic. TLS certificates are unused until they are attached to a Domain. TLS Certificates may also be provisioned by ngrok automatically for domains on which you have enabled automated certificate provisioning.

SubCommands

Flags

ngrok api tls-certificates create

Upload a new TLS certificate

Usage

Flags

ngrok api tls-certificates delete

Delete a TLS certificate

Usage

Flags

ngrok api tls-certificates get

Get detailed information about a TLS certificate

Usage

Flags

ngrok api tls-certificates list

List all TLS certificates on this account

Usage

Flags

ngrok api tls-certificates update

Update attributes of a TLS Certificate by ID

Usage

Flags

ngrok api tunnel-sessions

Tunnel Sessions represent instances of ngrok agents or SSH reverse tunnel sessions that are running and connected to the ngrok service. Each tunnel session can include one or more Tunnels.

SubCommands

Flags

ngrok api tunnel-sessions get

Get the detailed status of a tunnel session by ID

Usage

Flags

ngrok api tunnel-sessions list

List all online tunnel sessions running on this account.

Usage

Flags

ngrok api tunnel-sessions restart

Issues a command instructing the ngrok agent to restart. The agent restarts itself by calling exec() on platforms that support it. This operation is notably not supported on Windows. When an agent restarts, it reconnects with a new tunnel session ID.

Usage

Flags

ngrok api tunnel-sessions stop

Issues a command instructing the ngrok agent that started this tunnel session to exit.

Usage

Flags

ngrok api tunnel-sessions update

Issues a command instructing the ngrok agent to update itself to the latest version. After this call completes successfully, the ngrok agent will be in the update process. A caller should wait some amount of time to allow the update to complete (at least 10 seconds) before making a call to the Restart endpoint to request that the agent restart itself to start using the new code. This call will never update an ngrok agent to a new major version which could cause breaking compatibility issues. If you wish to update to a new major version, that must be done manually. Still, please be aware that updating your ngrok agent could break your integration. This call will fail in any of the following circumstances: there is no update available the ngrok agent’s configuration disabled update checks the agent is currently in process of updating the agent has already successfully updated but has not yet been restarted

Usage

Flags

ngrok api tunnels

Tunnels provide endpoints to access services exposed by a running ngrok agent tunnel session or an SSH reverse tunnel session.

SubCommands

Flags

ngrok api tunnels get

Get the status of a tunnel by ID

Usage

Flags

ngrok api tunnels list

List all online tunnels currently running on the account.

Usage

Flags

ngrok api vaults

Vaults is an api service for securely storing and managing sensitive data such as secrets, credentials, and tokens.

SubCommands

Flags

ngrok api vaults create

Create a new Vault

Usage

Flags

ngrok api vaults delete

Delete a Vault

Usage

Flags

ngrok api vaults get

Get a Vault by ID

Usage

Flags

ngrok api vaults get-secrets-by-vault

Get Secrets by Vault ID

Usage

Flags

ngrok api vaults list

List all Vaults owned by account

Usage

Flags

ngrok api vaults update

Update an existing Vault by ID

Usage

Flags