Skip to content
DELETE /auth/passkey/{id}

Path Parameters

idstring · uuid
required·

The ID of the passkey to delete.

Example: 1ba1f401-7183-47c5-9e39-e8e257e3c795

Request Body

passkeyobject
required·

The PublicKeyCredential returned by navigator.credentials.get(), JSON-serialized (base64url). Extra fields the browser adds are accepted and ignored.

responseobject
required
4 properties
authenticatorDatastring

base64url. Max 64 KB.

clientDataJSONstring

base64url. Max 64 KB.

signaturestring

base64url. Max 64 KB.

userHandlestring

base64url. Max 64 KB. Ignored — the credential ID resolves the user.

idstring

base64url credential ID. Max 64 KB.

rawIdstring

base64url credential ID. Max 64 KB.

typestring

Always public-key. Max 64 characters.

Example: public-key
email_codestring

Step-up proof. The 6-digit code from POST /auth/step-up/email-code (sent for passkey_remove); checked only when step_up_factors includes email_code.

totp_codestring

Step-up proof. Current code from the authenticator app; checked only when step_up_factors includes totp.

Response Body

successboolean
Example: true
curl -X DELETE 'https://api.truto.one/auth/passkey/{id}' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
const response = await fetch('https://api.truto.one/auth/passkey/{id}', {
  method: 'DELETE',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.truto.one/auth/passkey/{id}"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.delete(url, headers=headers, params=params)
print(response.json())