Revoke a key of the calling wallet
curl --request DELETE \
--url https://api.floprouter.com/v1/auth/keys/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.floprouter.com/v1/auth/keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.floprouter.com/v1/auth/keys/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"id": "key_03182966a7c7",
"revoked": true
}{
"error": {
"code": 401,
"message": "a wallet API key is required (Authorization: Bearer fr_...); see POST /v1/auth/challenge",
"metadata": {
"reason": "unauthorized"
}
}
}{
"error": {
"code": 404,
"message": "no such session",
"metadata": {
"reason": "session_not_found"
}
}
}Auth
Revoke a key of the calling wallet
DELETE
/
v1
/
auth
/
keys
/
{id}
Revoke a key of the calling wallet
curl --request DELETE \
--url https://api.floprouter.com/v1/auth/keys/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.floprouter.com/v1/auth/keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.floprouter.com/v1/auth/keys/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"id": "key_03182966a7c7",
"revoked": true
}{
"error": {
"code": 401,
"message": "a wallet API key is required (Authorization: Bearer fr_...); see POST /v1/auth/challenge",
"metadata": {
"reason": "unauthorized"
}
}
}{
"error": {
"code": 404,
"message": "no such session",
"metadata": {
"reason": "session_not_found"
}
}
}