Clear browser state
curl --request PATCH \
--url https://api.cloudcruise.com/vault/clear-browser-state \
--header 'Content-Type: application/json' \
--header 'cc-key: <api-key>' \
--data '
{
"permissioned_user_id": "<string>",
"domain": "<string>"
}
'import requests
url = "https://api.cloudcruise.com/vault/clear-browser-state"
payload = {
"permissioned_user_id": "<string>",
"domain": "<string>"
}
headers = {
"cc-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'cc-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({permissioned_user_id: '<string>', domain: '<string>'})
};
fetch('https://api.cloudcruise.com/vault/clear-browser-state', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloudcruise.com/vault/clear-browser-state",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'permissioned_user_id' => '<string>',
'domain' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"cc-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cloudcruise.com/vault/clear-browser-state"
payload := strings.NewReader("{\n \"permissioned_user_id\": \"<string>\",\n \"domain\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("cc-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.cloudcruise.com/vault/clear-browser-state")
.header("cc-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"permissioned_user_id\": \"<string>\",\n \"domain\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudcruise.com/vault/clear-browser-state")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["cc-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"permissioned_user_id\": \"<string>\",\n \"domain\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true
}{
"statusCode": 400,
"message": "Invalid request",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Unauthorized",
"error": "Unauthorized"
}Vault API
Clear browser state
Clears the stored browser state (cookies, localStorage, and sessionStorage) for a specific vault entry.
After clearing, the next workflow execution using this vault entry will perform a fresh login instead of restoring the cached browser session.
This is useful when:
- The stored browser state causes errors or unexpected behavior during runs
- You’ve updated the vault entry’s credentials and want to force a fresh login
- You’re debugging a failing workflow and want to rule out stale browser state as the cause
PATCH
/
vault
/
clear-browser-state
Clear browser state
curl --request PATCH \
--url https://api.cloudcruise.com/vault/clear-browser-state \
--header 'Content-Type: application/json' \
--header 'cc-key: <api-key>' \
--data '
{
"permissioned_user_id": "<string>",
"domain": "<string>"
}
'import requests
url = "https://api.cloudcruise.com/vault/clear-browser-state"
payload = {
"permissioned_user_id": "<string>",
"domain": "<string>"
}
headers = {
"cc-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'cc-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({permissioned_user_id: '<string>', domain: '<string>'})
};
fetch('https://api.cloudcruise.com/vault/clear-browser-state', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloudcruise.com/vault/clear-browser-state",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'permissioned_user_id' => '<string>',
'domain' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"cc-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cloudcruise.com/vault/clear-browser-state"
payload := strings.NewReader("{\n \"permissioned_user_id\": \"<string>\",\n \"domain\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("cc-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.cloudcruise.com/vault/clear-browser-state")
.header("cc-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"permissioned_user_id\": \"<string>\",\n \"domain\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudcruise.com/vault/clear-browser-state")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["cc-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"permissioned_user_id\": \"<string>\",\n \"domain\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true
}{
"statusCode": 400,
"message": "Invalid request",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Unauthorized",
"error": "Unauthorized"
}Authorizations
API key-based authentication. Provide your CloudCruise API key in the cc-key header.
Body
application/json
Response
Browser state successfully cleared
Whether the operation succeeded
Was this page helpful?

