Internal

Broker only: release a TCP lease and connector presence

POST
/v1/internal/gateway/tcp/leases/close

Internal broker only; excluded from public SDK methods. Works while the feature is disabled. Idempotently release a missing lease; an existing lease requires its matching opaque token. This does not disable a route or authorize traffic. Strict JSON, 4096-byte bodies, 2000 requests/minute.

Authorization

HostedGatewayTcpBrokerAuth
AuthorizationBearer <token>

Internal service only: the dedicated HOSTED_GATEWAY_TCP_BROKER_TOKEN, at least 48 characters. Route credentials, organization API keys, account sessions and the worker token are never accepted. Never distribute this bearer to a customer or public SDK.

In: header

Request Body

application/json

lease_id*string
Formatuuid
lease_token*string

Sensitive opaque capability; never put in a URL, log, analytics event or ordinary resource view.

Match^[A-Za-z0-9_-]{43}$

Response Body

application/json

curl -X POST "https://example.com/v1/internal/gateway/tcp/leases/close" \  -H "Content-Type: application/json" \  -d '{    "lease_id": "2bb93227-93ec-4b58-a0aa-93b5a1121b74",    "lease_token": "string"  }'
{  "closed": true}