curl --request DELETE \
--url 'https://api.sandbox.stateset.app/api/v1/tunnels/{tunnelId}' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
{
"success": true
}
Close a tunnel
Closes an active tunnel Served by the live controller (answers 401 unauthenticated) but absent from its published /openapi.json — verified 2026-08-31.
DELETE
/
api
/
v1
/
tunnels
/
{tunnelId}
curl --request DELETE \
--url 'https://api.sandbox.stateset.app/api/v1/tunnels/{tunnelId}' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
{
"success": true
}
Closes an active tunnel
Served by the live controller (answers 401 unauthenticated) but absent from its published
/openapi.json — verified 2026-08-31.
Path parameters
string
required
Unique tunnel identifier
Response
SuccessResponse
boolean
Status codes
| Code | Meaning |
|---|---|
200 | Tunnel closed |
401 | — |
404 | — |
curl --request DELETE \
--url 'https://api.sandbox.stateset.app/api/v1/tunnels/{tunnelId}' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
{
"success": true
}
Last modified on August 31, 2026