Delete
Changed onDeletes one of the authenticated user's own passkeys. The request body carries a WebAuthn assertion from the passkey being deleted, so possession of the credential is proven before it is removed: mint a deletion challenge for it first, run the ceremony with that passkey, and send the result here. Deleting the user's last passkey is allowed — their other step-up factors remain. Requires a user session.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Path parameters
Passkey ID, prefixed wcred_.
Headers
Pins the request to a dated API version.
Request body
The authenticatorData from the WebAuthn assertion, base64url-encoded.
The clientDataJSON from the WebAuthn assertion, base64url-encoded.
The signature from the WebAuthn assertion, base64url-encoded.
Example request
{
"authenticator_data": "YXV0aGVudGljYXRvci1kYXRh",
"client_data_json": "Y2xpZW50LWRhdGE",
"signature": "c2lnbmF0dXJl"
}Response
passkey deleted
Always true: the passkey was removed.
The ID of the deleted passkey.
Example response
{
"deleted": true,
"id": "wcred_xxxxxxxxxxxxxx"
}Changes
- info
added the optional property
error/codeto the response with the status - info
added the optional property
error/codeto the response with the status - info
added the optional property
error/codeto the response with the status
1 more change in this revision
- info