Revoke every viewer
curl --request POST \
--url https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/viewer-tokens:revoke-all \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/viewer-tokens:revoke-all"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/viewer-tokens:revoke-all', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"epoch": 123
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Live view
Revoke every viewer
Closes every open live view of the sandbox and invalidates every viewer
token issued for it so far, by moving the sandbox’s revocation epoch
forward. Needs the same access as a control token.
POST
/
v1
/
sandboxes
/
{sandboxID}
/
viewer-tokens:revoke-all
Revoke every viewer
curl --request POST \
--url https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/viewer-tokens:revoke-all \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/viewer-tokens:revoke-all"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/viewer-tokens:revoke-all', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"epoch": 123
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}