Revoke the organization's own Anthropic key
curl --request DELETE \
--url https://app.trustivan.com/api/v1/assistant/key \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/assistant/key"
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/assistant/key', 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/assistant/key"
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))
}{
"available": true,
"configured": true,
"entitled": true,
"enabled": true,
"store_questions": true,
"can_manage": true,
"tokens_used": 123,
"monthly_tokens": 123,
"requests_per_minute": 123,
"reason": "not_configured",
"message": "<string>",
"model": "<string>",
"key_source": "platform",
"byok": {
"entitled": true,
"set": true,
"hint": "<string>",
"fingerprint": "<string>",
"verified_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
},
"credits": {
"month": "<string>",
"included": 123,
"used": 123,
"remaining": 123,
"overage_entitled": true,
"overage_enabled": true,
"overage_cap": 123,
"overage_used": 123,
"alert_percent": 0,
"credit_microusd": 123
}
}Revoke the organization's own Anthropic key
The ciphertext is destroyed; the next question uses the plan’s AI
credits. Audited as assistant.byok.revoked.
DELETE
/
assistant
/
key
Revoke the organization's own Anthropic key
curl --request DELETE \
--url https://app.trustivan.com/api/v1/assistant/key \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/assistant/key"
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/assistant/key', 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/assistant/key"
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))
}{
"available": true,
"configured": true,
"entitled": true,
"enabled": true,
"store_questions": true,
"can_manage": true,
"tokens_used": 123,
"monthly_tokens": 123,
"requests_per_minute": 123,
"reason": "not_configured",
"message": "<string>",
"model": "<string>",
"key_source": "platform",
"byok": {
"entitled": true,
"set": true,
"hint": "<string>",
"fingerprint": "<string>",
"verified_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
},
"credits": {
"month": "<string>",
"included": 123,
"used": 123,
"remaining": 123,
"overage_entitled": true,
"overage_enabled": true,
"overage_cap": 123,
"overage_used": 123,
"alert_percent": 0,
"credit_microusd": 123
}
}Authorizations
Response
The status after the change.