These endpoints aren’t intended for direct use.
They exist for the Kubernetes Operator to use.
They’re documented here for completeness.
Create Kubernetes Operator
Create a new Kubernetes Operator.Request
POST /kubernetes_operatorsExample request
curl \
-X POST \
-H "Authorization: Bearer {API_KEY}" \
-H "Content-Type: application/json" \
-H "Ngrok-Version: 2" \
-d '{"deployment":{"name":"ngrok-operator","namespace":"ngrok-operator"},"description":"Example Kubernetes Operator","enabled_features":["Ingress"],"metadata":"{\"environment\": \"staging\"}","region":"global"}' \
https://api.ngrok.com/kubernetes_operators
Parameters
| Name | Type | Description |
|---|---|---|
description | string | Human-readable description of this Kubernetes Operator. Optional, max 255 bytes. |
metadata | string | Arbitrary user-defined machine-readable data of this Kubernetes Operator. Optional, max 4096 bytes. |
enabled_features | List<string> | Features enabled for this Kubernetes Operator. A subset of “bindings”, “ingress”, and “gateway”. |
region | string | The ngrok region in which the ingress for this Operator is served. Defaults to “global”. |
deployment | KubernetesOperatorDeployment | Information about the deployment of this Kubernetes Operator. |
binding | KubernetesOperatorBindingCreate | Configuration for the Bindings feature of this Kubernetes Operator. Set only if enabling the “bindings” feature. |
KubernetesOperatorDeployment parameters
| Name | Type | Description |
|---|---|---|
name | string | The deployment name. |
namespace | string | The namespace this Kubernetes Operator is deployed to. |
version | string | The version of this Kubernetes Operator. |
cluster_name | string | User-given name for the cluster the Kubernetes Operator is deployed to. |
KubernetesOperatorBindingCreate parameters
| Name | Type | Description |
|---|---|---|
endpoint_selectors | List<string> | The list of CEL expressions that filter the Kubernetes bound endpoints for this Operator. |
csr | string | CSR is supplied during initial creation to enable creating a mutual TLS secured connection between ngrok and the Operator. This is an internal implementation detail and subject to change. |
ingress_endpoint | string | The public ingress endpoint for this Kubernetes Operator. |
Response
Returns a 201 response on success.Example response
{
"binding": {
"cert": {
"cert": "",
"not_after": "0001-01-01T00:00:00Z",
"not_before": "0001-01-01T00:00:00Z"
},
"endpoint_selectors": null
},
"created_at": "2025-09-04T10:11:43Z",
"deployment": {
"cluster_name": "",
"name": "ngrok-operator",
"namespace": "ngrok-operator",
"version": ""
},
"description": "Example Kubernetes Operator",
"enabled_features": [
"ingress"
],
"id": "k8sop_32ELIMnXLu9Qkpj1OddUYoLIHfT",
"metadata": "{\"environment\": \"staging\"}",
"principal": {
"id": "usr_32ELAUA7XkJHRP2DgH2JjDRLp81",
"uri": ""
},
"region": "global",
"updated_at": "2025-09-04T10:11:43Z",
"uri": "https://api.ngrok.com/kubernetes_operators/k8sop_32ELIMnXLu9Qkpj1OddUYoLIHfT"
}
Fields
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier for this Kubernetes Operator. |
uri | string | URI of this Kubernetes Operator API resource. |
created_at | string | Timestamp when the Kubernetes Operator was created. RFC 3339 format. |
updated_at | string | Timestamp when the Kubernetes Operator was last updated. RFC 3339 format. |
description | string | Human-readable description of this Kubernetes Operator. Optional, max 255 bytes. |
metadata | string | Arbitrary user-defined machine-readable data of this Kubernetes Operator. Optional, max 4096 bytes. |
principal | Ref | The principal who created this Kubernetes Operator. |
enabled_features | List<string> | Features enabled for this Kubernetes Operator. A subset of “bindings”, “ingress”, and “gateway”. |
region | string | The ngrok region in which the ingress for this Operator is served. Defaults to “global”. |
deployment | KubernetesOperatorDeployment | Information about the deployment of this Kubernetes Operator. |
binding | KubernetesOperatorBinding | Information about the Bindings feature of this Kubernetes Operator, if enabled. |
Ref fields
| Name | Type | Description |
|---|---|---|
id | string | A resource identifier. |
uri | string | A URI for locating a resource. |
KubernetesOperatorDeployment fields
| Name | Type | Description |
|---|---|---|
name | string | The deployment name. |
namespace | string | The namespace this Kubernetes Operator is deployed to. |
version | string | The version of this Kubernetes Operator. |
cluster_name | string | User-given name for the cluster the Kubernetes Operator is deployed to. |
KubernetesOperatorBinding fields
| Name | Type | Description |
|---|---|---|
endpoint_selectors | List<string> | The list of CEL expressions that filter the Kubernetes bound endpoints for this Operator. |
cert | KubernetesOperatorCert | The binding certificate information. |
ingress_endpoint | string | The public ingress endpoint for this Kubernetes Operator. |
KubernetesOperatorCert fields
| Name | Type | Description |
|---|---|---|
cert | string | The public client certificate generated for this Kubernetes Operator from the CSR supplied when enabling the Bindings feature. |
not_before | string | Timestamp when the certificate becomes valid. RFC 3339 format. |
not_after | string | Timestamp when the certificate becomes invalid. RFC 3339 format. |
Update Kubernetes Operator
Update an existing Kubernetes Operator by ID.Request
PATCH /kubernetes_operators/{id}Example request
curl \
-X PATCH \
-H "Authorization: Bearer {API_KEY}" \
-H "Content-Type: application/json" \
-H "Ngrok-Version: 2" \
-d '{"metadata":"{\"environment\": \"production\"}"}' \
https://api.ngrok.com/kubernetes_operators/k8sop_32ELIMnXLu9Qkpj1OddUYoLIHfT
Parameters
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier for this Kubernetes Operator. |
description | string | Human-readable description of this Kubernetes Operator. Optional, max 255 bytes. |
metadata | string | Arbitrary user-defined machine-readable data of this Kubernetes Operator. Optional, max 4096 bytes. |
enabled_features | List<string> | Features enabled for this Kubernetes Operator. A subset of “bindings”, “ingress”, and “gateway”. |
region | string | The ngrok region in which the ingress for this Operator is served. Defaults to “global”. |
binding | KubernetesOperatorBindingUpdate | Configuration for the Bindings feature of this Kubernetes Operator. Set only if enabling the “bindings” feature. |
deployment | KubernetesOperatorDeploymentUpdate | Configuration for the Deployment info. |
KubernetesOperatorBindingUpdate parameters
| Name | Type | Description |
|---|---|---|
endpoint_selectors | List<string> | The list of CEL expressions that filter the Kubernetes bound endpoints for this Operator. |
csr | string | CSR is supplied during initial creation to enable creating a mutual TLS secured connection between ngrok and the Operator. This is an internal implementation detail and subject to change. |
ingress_endpoint | string | The public ingress endpoint for this Kubernetes Operator. |
KubernetesOperatorDeploymentUpdate parameters
| Name | Type | Description |
|---|---|---|
name | string | The deployment name. |
version | string | The version of this Kubernetes Operator. |
Response
Returns a 200 response on success.Example response
{
"binding": {
"cert": {
"cert": "",
"not_after": "0001-01-01T00:00:00Z",
"not_before": "0001-01-01T00:00:00Z"
},
"endpoint_selectors": null,
"ingress_endpoint": "connect.ngrok-endpoints.com:443"
},
"created_at": "2025-09-04T10:11:43Z",
"deployment": {
"cluster_name": "",
"name": "ngrok-operator",
"namespace": "ngrok-operator",
"version": ""
},
"description": "Example Kubernetes Operator",
"enabled_features": [
"ingress"
],
"id": "k8sop_32ELIMnXLu9Qkpj1OddUYoLIHfT",
"metadata": "{\"environment\": \"production\"}",
"principal": {
"id": "usr_32ELAUA7XkJHRP2DgH2JjDRLp81",
"uri": ""
},
"region": "global",
"updated_at": "2025-09-04T10:11:43Z",
"uri": "https://api.ngrok.com/kubernetes_operators/k8sop_32ELIMnXLu9Qkpj1OddUYoLIHfT"
}
Fields
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier for this Kubernetes Operator. |
uri | string | URI of this Kubernetes Operator API resource. |
created_at | string | Timestamp when the Kubernetes Operator was created. RFC 3339 format. |
updated_at | string | Timestamp when the Kubernetes Operator was last updated. RFC 3339 format. |
description | string | Human-readable description of this Kubernetes Operator. Optional, max 255 bytes. |
metadata | string | Arbitrary user-defined machine-readable data of this Kubernetes Operator. Optional, max 4096 bytes. |
principal | Ref | The principal who created this Kubernetes Operator. |
enabled_features | List<string> | Features enabled for this Kubernetes Operator. A subset of “bindings”, “ingress”, and “gateway”. |
region | string | The ngrok region in which the ingress for this Operator is served. Defaults to “global”. |
deployment | KubernetesOperatorDeployment | Information about the deployment of this Kubernetes Operator. |
binding | KubernetesOperatorBinding | Information about the Bindings feature of this Kubernetes Operator, if enabled. |
Ref fields
| Name | Type | Description |
|---|---|---|
id | string | A resource identifier. |
uri | string | A URI for locating a resource. |
KubernetesOperatorDeployment fields
| Name | Type | Description |
|---|---|---|
name | string | The deployment name. |
namespace | string | The namespace this Kubernetes Operator is deployed to. |
version | string | The version of this Kubernetes Operator. |
cluster_name | string | User-given name for the cluster the Kubernetes Operator is deployed to. |
KubernetesOperatorBinding fields
| Name | Type | Description |
|---|---|---|
endpoint_selectors | List<string> | The list of CEL expressions that filter the Kubernetes bound endpoints for this Operator. |
cert | KubernetesOperatorCert | The binding certificate information. |
ingress_endpoint | string | The public ingress endpoint for this Kubernetes Operator. |
KubernetesOperatorCert fields
| Name | Type | Description |
|---|---|---|
cert | string | The public client certificate generated for this Kubernetes Operator from the CSR supplied when enabling the Bindings feature. |
not_before | string | Timestamp when the certificate becomes valid. RFC 3339 format. |
not_after | string | Timestamp when the certificate becomes invalid. RFC 3339 format. |
Delete Kubernetes Operator
Delete a Kubernetes Operator.Request
DELETE /kubernetes_operators/{id}Example request
curl \
-X DELETE \
-H "Authorization: Bearer {API_KEY}" \
-H "Ngrok-Version: 2" \
https://api.ngrok.com/kubernetes_operators/k8sop_32ELIMnXLu9Qkpj1OddUYoLIHfT
Response
Returns a 204 response with no body on success.Get Kubernetes Operator
Get the details of a Kubernetes Operator.Request
GET /kubernetes_operators/{id}Example request
curl \
-X GET \
-H "Authorization: Bearer {API_KEY}" \
-H "Ngrok-Version: 2" \
https://api.ngrok.com/kubernetes_operators/k8sop_32ELIMnXLu9Qkpj1OddUYoLIHfT
Response
Returns a 200 response on success.Example response
{
"binding": {
"cert": {
"cert": "",
"not_after": "0001-01-01T00:00:00Z",
"not_before": "0001-01-01T00:00:00Z"
},
"endpoint_selectors": null
},
"created_at": "2025-09-04T10:11:43Z",
"deployment": {
"cluster_name": "",
"name": "ngrok-operator",
"namespace": "ngrok-operator",
"version": ""
},
"description": "Example Kubernetes Operator",
"enabled_features": [
"ingress"
],
"id": "k8sop_32ELIMnXLu9Qkpj1OddUYoLIHfT",
"metadata": "{\"environment\": \"staging\"}",
"principal": {
"id": "usr_32ELAUA7XkJHRP2DgH2JjDRLp81",
"uri": ""
},
"region": "global",
"updated_at": "2025-09-04T10:11:43Z",
"uri": "https://api.ngrok.com/kubernetes_operators/k8sop_32ELIMnXLu9Qkpj1OddUYoLIHfT"
}
Fields
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier for this Kubernetes Operator. |
uri | string | URI of this Kubernetes Operator API resource. |
created_at | string | Timestamp when the Kubernetes Operator was created. RFC 3339 format. |
updated_at | string | Timestamp when the Kubernetes Operator was last updated. RFC 3339 format. |
description | string | Human-readable description of this Kubernetes Operator. Optional, max 255 bytes. |
metadata | string | Arbitrary user-defined machine-readable data of this Kubernetes Operator. Optional, max 4096 bytes. |
principal | Ref | The principal who created this Kubernetes Operator. |
enabled_features | List<string> | Features enabled for this Kubernetes Operator. A subset of “bindings”, “ingress”, and “gateway”. |
region | string | The ngrok region in which the ingress for this Operator is served. Defaults to “global”. |
deployment | KubernetesOperatorDeployment | Information about the deployment of this Kubernetes Operator. |
binding | KubernetesOperatorBinding | Information about the Bindings feature of this Kubernetes Operator, if enabled. |
Ref fields
| Name | Type | Description |
|---|---|---|
id | string | A resource identifier. |
uri | string | A URI for locating a resource. |
KubernetesOperatorDeployment fields
| Name | Type | Description |
|---|---|---|
name | string | The deployment name. |
namespace | string | The namespace this Kubernetes Operator is deployed to. |
version | string | The version of this Kubernetes Operator. |
cluster_name | string | User-given name for the cluster the Kubernetes Operator is deployed to. |
KubernetesOperatorBinding fields
| Name | Type | Description |
|---|---|---|
endpoint_selectors | List<string> | The list of CEL expressions that filter the Kubernetes bound endpoints for this Operator. |
cert | KubernetesOperatorCert | The binding certificate information. |
ingress_endpoint | string | The public ingress endpoint for this Kubernetes Operator. |
KubernetesOperatorCert fields
| Name | Type | Description |
|---|---|---|
cert | string | The public client certificate generated for this Kubernetes Operator from the CSR supplied when enabling the Bindings feature. |
not_before | string | Timestamp when the certificate becomes valid. RFC 3339 format. |
not_after | string | Timestamp when the certificate becomes invalid. RFC 3339 format. |
List Kubernetes Operators
List all Kubernetes Operators owned by this account.Request
GET /kubernetes_operatorsExample request
curl \
-X GET \
-H "Authorization: Bearer {API_KEY}" \
-H "Ngrok-Version: 2" \
https://api.ngrok.com/kubernetes_operators
Response
Returns a 200 response on success.Example response
{
"next_page_uri": null,
"operators": [
{
"binding": {
"cert": {
"cert": "",
"not_after": "0001-01-01T00:00:00Z",
"not_before": "0001-01-01T00:00:00Z"
},
"endpoint_selectors": null
},
"created_at": "2025-09-04T10:11:43Z",
"deployment": {
"cluster_name": "",
"name": "ngrok-operator",
"namespace": "ngrok-operator",
"version": ""
},
"description": "Example Kubernetes Operator",
"enabled_features": [
"ingress"
],
"id": "k8sop_32ELIMnXLu9Qkpj1OddUYoLIHfT",
"metadata": "{\"environment\": \"staging\"}",
"principal": {
"id": "usr_32ELAUA7XkJHRP2DgH2JjDRLp81",
"uri": ""
},
"region": "global",
"updated_at": "2025-09-04T10:11:43Z",
"uri": "https://api.ngrok.com/kubernetes_operators/k8sop_32ELIMnXLu9Qkpj1OddUYoLIHfT"
}
],
"uri": "https://api.ngrok.com/kubernetes_operators"
}
Fields
| Name | Type | Description |
|---|---|---|
operators | KubernetesOperator | The list of Kubernetes Operators for this account. |
uri | string | |
next_page_uri | string | URI of the next page, or null if there is no next page. |
KubernetesOperator fields
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier for this Kubernetes Operator. |
uri | string | URI of this Kubernetes Operator API resource. |
created_at | string | Timestamp when the Kubernetes Operator was created. RFC 3339 format. |
updated_at | string | Timestamp when the Kubernetes Operator was last updated. RFC 3339 format. |
description | string | Human-readable description of this Kubernetes Operator. Optional, max 255 bytes. |
metadata | string | Arbitrary user-defined machine-readable data of this Kubernetes Operator. Optional, max 4096 bytes. |
principal | Ref | The principal who created this Kubernetes Operator. |
enabled_features | List<string> | Features enabled for this Kubernetes Operator. A subset of “bindings”, “ingress”, and “gateway”. |
region | string | The ngrok region in which the ingress for this Operator is served. Defaults to “global”. |
deployment | KubernetesOperatorDeployment | Information about the deployment of this Kubernetes Operator. |
binding | KubernetesOperatorBinding | Information about the Bindings feature of this Kubernetes Operator, if enabled. |
Ref fields
| Name | Type | Description |
|---|---|---|
id | string | A resource identifier. |
uri | string | A URI for locating a resource. |
KubernetesOperatorDeployment fields
| Name | Type | Description |
|---|---|---|
name | string | The deployment name. |
namespace | string | The namespace this Kubernetes Operator is deployed to. |
version | string | The version of this Kubernetes Operator. |
cluster_name | string | User-given name for the cluster the Kubernetes Operator is deployed to. |
KubernetesOperatorBinding fields
| Name | Type | Description |
|---|---|---|
endpoint_selectors | List<string> | The list of CEL expressions that filter the Kubernetes bound endpoints for this Operator. |
cert | KubernetesOperatorCert | The binding certificate information. |
ingress_endpoint | string | The public ingress endpoint for this Kubernetes Operator. |
KubernetesOperatorCert fields
| Name | Type | Description |
|---|---|---|
cert | string | The public client certificate generated for this Kubernetes Operator from the CSR supplied when enabling the Bindings feature. |
not_before | string | Timestamp when the certificate becomes valid. RFC 3339 format. |
not_after | string | Timestamp when the certificate becomes invalid. RFC 3339 format. |
GetBoundEndpoints Kubernetes Operator
List Endpoints bound to a Kubernetes Operator.Request
GET /kubernetes_operators/{id}/bound_endpointsExample request
curl \
-X GET \
-H "Authorization: Bearer {API_KEY}" \
-H "Ngrok-Version: 2" \
https://api.ngrok.com/kubernetes_operators/k8sop_32ELIMnXLu9Qkpj1OddUYoLIHfT/bound_endpoints
Response
Returns a 200 response on success.Example response
{
"endpoints": [],
"next_page_uri": null,
"uri": "https://api.ngrok.com/kubernetes_operators/k8sop_32ELIMnXLu9Qkpj1OddUYoLIHfT/bound_endpoints"
}
Fields
| Name | Type | Description |
|---|---|---|
endpoints | Endpoint | The list of all active endpoints on this account. |
uri | string | URI of the endpoints list API resource. |
next_page_uri | string | URI of the next page, or null if there is no next page. |
Endpoint fields
| Name | Type | Description |
|---|---|---|
id | string | Unique endpoint resource identifier. |
region | string | Identifier of the region this endpoint belongs to. |
created_at | string | Timestamp when the endpoint was created in RFC 3339 format. |
updated_at | string | Timestamp when the endpoint was updated in RFC 3339 format. |
public_url | string | URL of the hostport served by this endpoint. |
proto | string | Protocol served by this endpoint. One of http, https, tcp, or tls. |
scheme | string | |
hostport | string | Host and port served by this endpoint (hostname:port). Soon to be deprecated. |
host | string | |
port | int64 | |
type | string | Whether the endpoint is ephemeral (served directly by an agent-initiated tunnel), edge (served by an edge), or cloud (a Cloud Endpoint). |
metadata | string | User-supplied metadata of the associated tunnel or edge object. |
description | string | User-supplied description of the associated tunnel. |
domain | Ref | The domain reserved for this endpoint. |
tcp_addr | Ref | The address reserved for this endpoint. |
tunnel | Ref | The tunnel serving requests to this endpoint, if this is an ephemeral endpoint. |
edge | Ref | The edge serving requests to this endpoint, if this is an edge endpoint. |
upstream_url | string | The local address the tunnel forwards to. |
upstream_protocol | string | The protocol the agent uses to forward with. |
url | string | The URL of the endpoint. |
principal | Ref | The ID of the owner (bot or user) that owns this endpoint. |
traffic_policy | string | The Traffic Policy attached to this endpoint. |
bindings | List<string> | The bindings associated with this endpoint. |
tunnel_session | Ref | The tunnel session of the agent for this endpoint. |
uri | string | URI of the Cloud Endpoint API resource. |
name | string | User-supplied name for the endpoint. |
pooling_enabled | boolean | Whether the endpoint allows pooling. |
Ref fields
| Name | Type | Description |
|---|---|---|
id | string | A resource identifier. |
uri | string | A URI for locating a resource. |