Skip to main content
POST
TypeScript

인증

Authorization
string
header
필수

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

헤더

Idempotency-Key
string

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

Maximum string length: 255
예시:

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

Api-Version-Date
string

Pins the request to a dated API version.

예시:

"2026-11-17"

본문

application/json
challenge_type
enum<string>
필수

The ceremony this challenge is for.

사용 가능한 옵션:
registration,
deletion
예시:

"deletion"

passkey_id
string

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

예시:

"wcred_xxxxxxxxxxxxxx"

응답

challenge minted

challenge
string
필수

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

예시:

"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

creation_options
object | null
필수

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
필수

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