Skip to main content
POST
TypeScript

Autorisations

Authorization
string
header
requis

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

En-têtes

Idempotency-Key
string

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

Maximum string length: 255
Exemple:

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

Api-Version-Date
string

Pins the request to a dated API version.

Exemple:

"2026-11-17"

Corps

application/json
challenge_type
enum<string>
requis

The ceremony this challenge is for.

Options disponibles:
registration,
deletion
Exemple:

"deletion"

passkey_id
string

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

Exemple:

"wcred_xxxxxxxxxxxxxx"

Réponse

challenge minted

challenge
string
requis

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

Exemple:

"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

creation_options
object | null
requis

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
requis

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