Remove a passkey
curl --request DELETE \
--url https://app.trustivan.com/api/v1/auth/passkeys/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>",
"token": "<string>",
"credential": {}
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/passkeys/{id}"
payload = {
"code": "<string>",
"token": "<string>",
"credential": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({code: '<string>', token: '<string>', credential: {}})
};
fetch('https://app.trustivan.com/api/v1/auth/passkeys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/passkeys/{id}"
payload := strings.NewReader("{\n \"code\": \"<string>\",\n \"token\": \"<string>\",\n \"credential\": {}\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Remove a passkey
Needs a fresh proof besides the session: code (an authenticator or
recovery code), or token and credential from a ceremony begun at
/auth/passkeys/verify-options. The last second factor of an account
whose organization requires MFA cannot be removed.
DELETE
/
auth
/
passkeys
/
{id}
Remove a passkey
curl --request DELETE \
--url https://app.trustivan.com/api/v1/auth/passkeys/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>",
"token": "<string>",
"credential": {}
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/passkeys/{id}"
payload = {
"code": "<string>",
"token": "<string>",
"credential": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({code: '<string>', token: '<string>', credential: {}})
};
fetch('https://app.trustivan.com/api/v1/auth/passkeys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/passkeys/{id}"
payload := strings.NewReader("{\n \"code\": \"<string>\",\n \"token\": \"<string>\",\n \"credential\": {}\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Response
Removed.