Start passkey registration for the current session
const url = 'https://api.aetherpush.com/v1/mfa/passkeys/register/start';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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://api.aetherpush.com/v1/mfa/passkeys/register/start \ --header 'Authorization: Bearer <token>'Session-only; API keys and named access keys receive a plain 403. Returns WebAuthn registration options excluding already-registered credentials. The challenge expires after five minutes, and starting again invalidates any prior unconsumed registration challenge.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”WebAuthn registration options to pass to the browser.
object
WebAuthn PublicKeyCredentialCreationOptionsJSON, as produced by
SimpleWebAuthn’s generateRegistrationOptions(). Pass it to
startRegistration() from @simplewebauthn/browser.
object
Examplegenerated
{ "options": {}}Authentication required.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}API keys and named access keys receive a plain 403. A login session
that is not a dashboard login session receives code
dashboard_session_required.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Returned after login-session validation when a valid session that is
not a dashboard login session tries to issue or widen an API key,
create an access key or change its lifetime, enrol a passkey or
authenticator app, start a passkey step-up challenge, or run the CLI
device ceremony. Endpoints that enforce both guards reject API keys and
named access keys earlier with a plain 403 response and no code.
API-key creation applies only the dashboard-session guard, so any
non-dashboard credential receives this response there. Listing,
renaming and revoking stay open to any login session. Sessions created
before the credential_origin column existed cannot be attributed to
the dashboard and are also refused; signing out and back in fixes that.
object
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}Passkeys are not configured on this server.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}