Create Tunnel Endpoint
Create a new tunnel for exposing a local service.
Rate Limit
600 requests per 60 seconds per user.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Request to create a new tunnel.
Optional friendly name for the tunnel
1 - 64Local port the tunnel will forward traffic to
1 <= x <= 65535Team ID for team tunnels
Labels/tags for the tunnel
50Username 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.
1 - 64Response
Successful Response
Response containing tunnel connection details.
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
Token expiration timestamp
frps server port
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.