POST /api/remote/stop Bearer

Stop Tunnel

Stop the active Cloudflare tunnel and revoke the public URL. The PocketPaw server remains accessible locally but is no longer reachable from the internet.

Overview

Stops the currently running Cloudflare tunnel, removing remote access. The public URL becomes unreachable immediately.

Response

active boolean
false after stopping
Terminal window
curl -X POST "http://localhost:8000/api/remote/stop" \
-H "Authorization: Bearer <token>"
const response = await fetch("http://localhost:8000/api/remote/stop", {
method: "POST",
headers: { "Authorization": "Bearer <token>" }
});
const data = await response.json();
console.log(data);
import requests
response = requests.post(
"http://localhost:8000/api/remote/stop",
headers={"Authorization": "Bearer <token>"}
)
print(response.json())
{
"active": false
}
Request
curl -X POST "http://localhost:8000/api/remote/stop" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <token>"
const response = await fetch("http://localhost:8000/api/remote/stop", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
},
});

const data = await response.json();
console.log(data);
import requests

response = requests.post(
    "http://localhost:8000/api/remote/stop",
    headers={'Content-Type':'application/json','Authorization':'Bearer <token>'},
)

print(response.json())
package main

import (
    "fmt"
    "net/http"
    "io"
)

func main() {
    req, _ := http.NewRequest("POST", "http://localhost:8000/api/remote/stop", nil)
    req.Header.Set("Content-Type", "application/json")
    req.Header.Set("Authorization", "Bearer <token>")

    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()

    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body))
}
Response
Send a request to see the response