Register
Changed onRegisters a passkey for the authenticated user from the attestation a browser produced for a registration challenge. Mint that challenge first with POST /users/me/passkeys/challenge and run the ceremony with its creation_options; it is single-use and expires 5 minutes after it is issued. Send back the user_handle the options carried; a registration without it is refused. Registering replaces the account's passkeys made before Whop issued options, which can only be deleted. Requires a user session that has completed step-up verification.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Headers
Pins the request to a dated API version.
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
The attestationObject from the WebAuthn attestation response, base64url-encoded.
The clientDataJSON from the WebAuthn attestation response, base64url-encoded.
The WebAuthn credential ID the authenticator returned, base64url-encoded.
A name for this passkey, usually the device it lives on. 255 characters or fewer.
The getTransports() result from the registration response. Values Whop does not recognize are dropped.
The creation_options.user.id the passkey was created with. Must match the challenge's options.
Example request
{
"attestation_object": "YXR0ZXN0YXRpb24",
"client_data_json": "Y2xpZW50LWRhdGE",
"credential_id": "bmV3LWNyZWRlbnRpYWw",
"nickname": "Work laptop",
"user_handle": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}Response
passkey registered
When the user registered this passkey, as an ISO 8601 timestamp.
The WebAuthn credential ID as a base64url string. Pass it in allowCredentials when you run a ceremony against this specific passkey.
Passkey ID, prefixed wcred_. Use it to delete the passkey.
When this passkey last completed a WebAuthn ceremony, as an ISO 8601 timestamp, or null if it never has.
The name the user gave this passkey, usually the device it lives on.
Example response
{
"created_at": "2026-01-01T12:00:00.000Z",
"credential_id": "bGFwdG9wLWNyZWRlbnRpYWw",
"id": "wcred_xxxxxxxxxxxxxx",
"last_used_at": "2026-01-01T12:00:00.000Z",
"nickname": "MacBook Pro"
}Changes
- breaking
the request property
user_handlebecame required
- breaking
- info
added the new optional request property
transports - info
added the new optional request property
user_handle
- info