GET /api/auth/passkey/generate-register-options
operationId: generatePasskeyRegistrationOptions
Generate registration options for a new passkey
Authentication
Signed-in operator session (browser)
Actual native human session; protected management also requires recent successful factor authentication.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| authenticatorAttachment | query | "platform" | "cross-platform" | no | Type of authenticator to use for registration. "platform" for device-specific authenticators, "cross-platform" for authenticators that can be used across devices. |
| name | query | string | no | Optional custom name for the passkey. This can help identify the passkey when managing multiple credentials. |
| context | query | string | no | Optional context for passkey-first registration flows. |
- Name
- authenticatorAttachment
- In
- query
- Type
- "platform" | "cross-platform"
- Required
- no
- Description
- Type of authenticator to use for registration. "platform" for device-specific authenticators, "cross-platform" for authenticators that can be used across devices.
- Name
- name
- In
- query
- Type
- string
- Required
- no
- Description
- Optional custom name for the passkey. This can help identify the passkey when managing multiple credentials.
- Name
- context
- In
- query
- Type
- string
- Required
- no
- Description
- Optional context for passkey-first registration flows.
Responses
200 Success
challengestringrpobjectnamestringidstring
userobjectidstringnamestringdisplayNamestring
pubKeyCredParamsarray of objecttypestringalgnumber
timeoutnumberexcludeCredentialsarray of objectidstringtypestringtransportsarray of string
authenticatorSelectionobjectauthenticatorAttachmentstringrequireResidentKeybooleanuserVerificationstring
attestationstringextensionsobject
400 Bad Request. Usually due to missing parameters, or invalid parameters.
messagestringrequired
401 Unauthorized. Due to missing or invalid authentication.
messagestringrequired
403 Forbidden. You do not have permission to access this resource or to perform this action.
messagestring
404 Not Found. The requested resource was not found.
messagestring
429 Too Many Requests. You have exceeded the rate limit. Try again later.
messagestring
500 Internal Server Error. This is a problem with the server that you cannot fix.
messagestring