Users

Registers 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.

post/users/me/passkeys

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Idempotency-Key, string
Example:d9105228-4a08-46b1-8b91-42fed586d383

A unique key that makes this request safe to retry. See Idempotent requests.

Request body

object required
attestation_object, string required

The attestationObject from the WebAuthn attestation response, base64url-encoded.

client_data_json, string required

The clientDataJSON from the WebAuthn attestation response, base64url-encoded.

credential_id, string required

The WebAuthn credential ID the authenticator returned, base64url-encoded.

nickname, string required

A name for this passkey, usually the device it lives on. 255 characters or fewer.

transports, string[]

The getTransports() result from the registration response. Values Whop does not recognize are dropped.

user_handle, string required

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

Passkey required
created_at, string required

When the user registered this passkey, as an ISO 8601 timestamp.

credential_id, string required

The WebAuthn credential ID as a base64url string. Pass it in allowCredentials when you run a ceremony against this specific passkey.

id, string required

Passkey ID, prefixed wcred_. Use it to delete the passkey.

last_used_at, string nullable required

When this passkey last completed a WebAuthn ceremony, as an ISO 8601 timestamp, or null if it never has.

nickname, string required

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