Release an agent from quarantine
curl --request DELETE \
--url https://app.trustivan.com/api/v1/agents/{id}/quarantine \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/agents/{id}/quarantine"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/agents/{id}/quarantine', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/agents/{id}/quarantine"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Release an agent from quarantine
Lifts containment after a human has looked. The credential resumes working; it was never ended.
There is deliberately no automatic release and no expiry timer: a quarantine that lapsed on its own would mean a compromised agent resumes by itself, which is the opposite of containment. The state exists precisely to force a person to decide, so the only way out is a person.
404 when the agent is not contained: releasing something that was never quarantined is not a silent success.
DELETE
/
agents
/
{id}
/
quarantine
Release an agent from quarantine
curl --request DELETE \
--url https://app.trustivan.com/api/v1/agents/{id}/quarantine \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/agents/{id}/quarantine"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/agents/{id}/quarantine', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/agents/{id}/quarantine"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Response
The released agent.