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

Path Parameters

idstring · uuid
required·

The ID of the passkey to rename.

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

Request Body

namestring

New label. Trimmed; a blank or whitespace-only value is rejected.

Example: YubiKey 5C

Response Body

backup_stateboolean

Whether the credential is currently synced into a backup (the WebAuthn BS flag). Refreshed on every sign-in.

Example: true
created_atstring · date-time

ISO-8601 UTC timestamp of registration.

Example: 2026-07-01T11:03:20.000Z
device_typestring

multiDevice for a synced passkey (iCloud Keychain, Google Password Manager); singleDevice for a device-bound one (a security key, or a platform authenticator that does not sync).

Example: multiDevice
Possible values:
singleDevicemultiDevicenull
idstring · uuid

The unique ID of the passkey. Use this to rename or delete it.

Example: 1ba1f401-7183-47c5-9e39-e8e257e3c795
last_used_atstring · date-time

ISO-8601 UTC timestamp of the last successful sign-in with this passkey; null if it has never been used.

Example: 2026-07-23T09:12:44.000Z
namestring

User-supplied label, or null when the passkey was registered without one.

Example: MacBook Touch ID
curl -X PATCH 'https://api.truto.one/auth/passkey/{id}' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "YubiKey 5C"
}'
const body = {
  "name": "YubiKey 5C"
};

const response = await fetch('https://api.truto.one/auth/passkey/{id}', {
  method: 'PATCH',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});

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 = {
}
payload = {
    "name": "YubiKey 5C"
}

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