Skip to main content
POST
Create remote tunnel

Body

application/json

Request body to create a new remote tunnel

ports
object[]
required

One or more local ports to expose via the tunnel

public
boolean

If true, the tunnel is publicly accessible without Cloudflare Access authentication

Response

200 - application/json

The request has succeeded.

Response after successfully creating a remote tunnel

runnerId
string
required

Our identifier for this runner, used in subsequent API calls

hostnames
object[]
required

Public hostnames mapped to local ports

tunnelToken
string
required

cloudflared token to start the tunnel daemon

expiresAt
string
required

ISO timestamp when this tunnel will expire