Revoke every trusted device for the caller
/v1/identity/auth/mfa/trusted-devicesAuthentication
- Bearer Token
AuthorizationJWT access token
Code samples
curl -X DELETE "https://api.canopy.dev/v1/identity/auth/mfa/trusted-devices" \ -H "Authorization: Bearer $CANOPY_TOKEN"
const response = await fetch("https://api.canopy.dev/v1/identity/auth/mfa/trusted-devices", {
method: "DELETE",
headers: {
"Authorization": "Bearer $CANOPY_TOKEN"
},
});
const data = await response.json();import requests
response = requests.delete(
"https://api.canopy.dev/v1/identity/auth/mfa/trusted-devices",
headers={
"Authorization": "Bearer $CANOPY_TOKEN"
},
)
data = response.json()package main
import (
"net/http"
)
func main() {
req, _ := http.NewRequest("DELETE", "https://api.canopy.dev/v1/identity/auth/mfa/trusted-devices", nil)
req.Header.Set("Authorization", "Bearer $CANOPY_TOKEN")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
}Responses
204 Deletes every row for the identity, regardless of env. Use this for 'sign out everywhere'-style flows.
401 Invalid or expired token
403 This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)