Turn a Cloudflare tunnel on or off
Turns the service's Cloudflare tunnel on or off. quick mode starts a temporary trycloudflare.com URL (default 2 hours, at most 24). token mode uses this service's tunnel token, or the global one from settings, for a permanent hostname. Fields left out keep their value; token null removes the service's own token.
Needs tunnels.edit on the service (a grant on its project covers it). Available to MCP clients and the assistant.
seylo_session<token>application/json- body
serviceId*stringPanel-issued id.
^[a-z0-9]{16}$enabled*booleanmode?string|stringtargetPort?integerPort the container listens on.
1 <= value <= 65535durationMinutes?integer5 <= value <= 1440token?|nullhostname?|nullSuccess.
application/json- response
serviceId*stringPanel-issued id.
^[a-z0-9]{16}$enabled*booleanmode*string|stringstate*string|string|string|stringtargetPort*integerPort the container listens on.
1 <= value <= 65535url*string|nullhostname*|nulltokenSource*string|string|stringexpiresAt*|nullerror*string|nullcurl -X POST 'https://example.com/api/v1/tunnels.set' \ -H 'Content-Type: application/json' \ -d '{ "serviceId": "string", "enabled": true}'{ "serviceId": "string", "enabled": true, "mode": "quick", "state": "off", "targetPort": 1, "url": "string", "hostname": "string", "tokenSource": "service", "expiresAt": "2019-08-24T14:15:22Z", "error": "string"}Get Cloudflare tunnel settings GET
Says whether a global Cloudflare tunnel token is set (services in token mode without their own token use it). The token itself is never returned. Needs `settings.view`, which owners and admins hold. Not available to MCP clients or the assistant.
Set the global Cloudflare tunnel token POST
Sets or removes (null) the global Cloudflare tunnel token. Running token-mode tunnels that use it restart with the new token. Needs `settings.edit`, which owners and admins hold. Not available to MCP clients or the assistant.