v2
latestOpenAPI 3.1.02026-07-2675166192.8 KBCreate Tunnel Endpoint
Create a new tunnel for exposing a local service.
Request body
Optional friendly name for the tunnel
Local port the tunnel will forward traffic to
Team ID for team tunnels
Labels/tags for the tunnel
Username for HTTP basic auth on tunnel traffic. Setting this enables auth; the password is auto-generated server-side and returned once in the create response.
Response
Successful Response
Unique tunnel identifier
Full hostname for the tunnel
Full HTTPS URL for accessing the tunnel
Authentication token for frpc client
Per-tunnel secret for additional authentication via frpc metadata
frps server hostname
frps server port
Token expiration timestamp
Tunnel labels
HTTP basic auth username, if auth is enabled
Auto-generated HTTP basic auth password, if auth is enabled. Only returned at creation; stored encrypted and never retrievable afterwards.