Verify passkey registration and store the credential
const url = 'https://api.aetherpush.com/v1/mfa/passkeys/register/verify';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"response":{},"name":"example","stepUp":{"type":"passkey","response":{},"code":"example"}}'};
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/verify \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "response": {}, "name": "example", "stepUp": { "type": "passkey", "response": {}, "code": "example" } }'Session-only. Verifies the browser’s registration response against the stored challenge and persists the credential. Enrolling the account’s first passkey enables MFA and returns the recovery codes, which are shown exactly once. Enrolling an additional passkey on an account that already has MFA enabled requires a fresh step-up proof.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
WebAuthn RegistrationResponseJSON, as returned by
startRegistration() from @simplewebauthn/browser.
object
Display name for the passkey. Defaults to “Passkey”.
Required only when enrolling an additional factor on an account that already has MFA enabled. Omitted for the first factor.
object
WebAuthn AuthenticationResponseJSON. Required when type is passkey.
object
A current authenticator code. Required when type is totp.
Responses
Section titled “Responses”Passkey stored.
object
object
singleDevice or multiDevice, as reported at registration.
Present only when this registration enrolled the account’s first passkey. Shown exactly once; the server stores only hashes.
Examplegenerated
{ "passkey": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "deviceType": "example", "backedUp": true, "transports": [ "example" ], "createdAt": "2026-04-15T12:00:00Z", "lastUsedAt": "2026-04-15T12:00:00Z" }, "mfaEnabled": true, "recoveryCodes": [ "example" ]}Invalid registration response, expired challenge, or bad name.
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"}Authentication required, or step-up is required and not satisfied (code: step_up_required).
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Returned when a factor-set change on an MFA-enabled account arrives
without a fresh step-up proof. Same shape as the reauth response so
clients branch on code and open the step-up flow, not on message text.
object
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"}The credential is already registered.
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"}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"}