Skip to main content
POST
TypeScript

Autorisationer

Authorization
string
header
påkrævet

Only available to a signed-in whop.com session. API keys, access tokens, and OAuth tokens are not accepted.

Overskrifter

Idempotency-Key
string

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

Maximum string length: 255
Eksempel:

"d9105228-4a08-46b1-8b91-42fed586d383"

Api-Version-Date
string

Pins the request to a dated API version.

Eksempel:

"2026-11-17"

Krop

application/json
challenge_type
enum<string>
påkrævet

The ceremony this challenge is for.

Tilgængelige muligheder:
registration,
deletion
Eksempel:

"deletion"

passkey_id
string

The passkey the ceremony targets, prefixed wcred_. Required when challenge_type is deletion, ignored otherwise.

Eksempel:

"wcred_xxxxxxxxxxxxxx"

Svar

challenge minted

challenge
string
påkrævet

The challenge to pass to the WebAuthn ceremony, base64url-encoded without padding. Also inside the options.

Eksempel:

"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

creation_options
object | null
påkrævet

The options for navigator.credentials.create() when challenge_type is registration, otherwise null. Convert the keys to camelCase before passing them to the browser.

request_options
object | null
påkrævet

The options for navigator.credentials.get() when challenge_type is deletion, otherwise null. Convert the keys to camelCase before passing them to the browser.