Developer docs
Passkey Register
POST
/v1/auth/mfa/passkeys
const url = 'https://example.com/v1/auth/mfa/passkeys';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","credential":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/auth/mfa/passkeys \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "credential": {} }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
PasskeyIn
object
name
required
Name
string
credential
required
Credential
object
key
additional properties
any
Examplegenerated
{ "name": "example", "credential": {}}Responses
Section titled “ Responses ”Successful Response
Media typeapplication/json
Response Passkey Register V1 Auth Mfa Passkeys Post
object
key
additional properties
any
Examplegenerated
{}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}