{ "status_code": 400, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "invalid_public_key_credential", "error_message": "Invalid public key credential. Please confirm you're passing a correctly formatted public key credential.", "error_url": "https://stytch.com/docs/api/errors/400"}
{ "status_code": 404, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "webauthn_registration_not_found", "error_message": "WebAuthn registration could not be found.", "error_url": "https://stytch.com/docs/api/errors/404"}
{ "status_code": 429, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "too_many_requests", "error_message": "Too many requests have been made.", "error_url": "https://stytch.com/docs/api/errors/429"}
{ "status_code": 500, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "internal_server_error", "error_message": "Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.", "error_url": "https://stytch.com/docs/api/errors/500"}
import { StytchClient } from '@stytch/react';const stytch = new StytchClient('${publicToken}');stytch.webauthn.update({ webauthn_registration_id: '${webauthnRegistrationId}', name: '${exampleWebAuthnName}',});
{ "status_code": 400, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "invalid_public_key_credential", "error_message": "Invalid public key credential. Please confirm you're passing a correctly formatted public key credential.", "error_url": "https://stytch.com/docs/api/errors/400"}
{ "status_code": 404, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "webauthn_registration_not_found", "error_message": "WebAuthn registration could not be found.", "error_url": "https://stytch.com/docs/api/errors/404"}
{ "status_code": 429, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "too_many_requests", "error_message": "Too many requests have been made.", "error_url": "https://stytch.com/docs/api/errors/429"}
{ "status_code": 500, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "internal_server_error", "error_message": "Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.", "error_url": "https://stytch.com/docs/api/errors/500"}
Passkeys & WebAuthn
Update WebAuthn
Update WebAuthn using the Stytch React SDK
import { StytchClient } from '@stytch/react';const stytch = new StytchClient('${publicToken}');stytch.webauthn.update({ webauthn_registration_id: '${webauthnRegistrationId}', name: '${exampleWebAuthnName}',});
{ "status_code": 400, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "invalid_public_key_credential", "error_message": "Invalid public key credential. Please confirm you're passing a correctly formatted public key credential.", "error_url": "https://stytch.com/docs/api/errors/400"}
{ "status_code": 404, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "webauthn_registration_not_found", "error_message": "WebAuthn registration could not be found.", "error_url": "https://stytch.com/docs/api/errors/404"}
{ "status_code": 429, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "too_many_requests", "error_message": "Too many requests have been made.", "error_url": "https://stytch.com/docs/api/errors/429"}
{ "status_code": 500, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "internal_server_error", "error_message": "Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.", "error_url": "https://stytch.com/docs/api/errors/500"}
import { StytchClient } from '@stytch/react';const stytch = new StytchClient('${publicToken}');stytch.webauthn.update({ webauthn_registration_id: '${webauthnRegistrationId}', name: '${exampleWebAuthnName}',});
{ "status_code": 400, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "invalid_public_key_credential", "error_message": "Invalid public key credential. Please confirm you're passing a correctly formatted public key credential.", "error_url": "https://stytch.com/docs/api/errors/400"}
{ "status_code": 404, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "webauthn_registration_not_found", "error_message": "WebAuthn registration could not be found.", "error_url": "https://stytch.com/docs/api/errors/404"}
{ "status_code": 429, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "too_many_requests", "error_message": "Too many requests have been made.", "error_url": "https://stytch.com/docs/api/errors/429"}
{ "status_code": 500, "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141", "error_type": "internal_server_error", "error_message": "Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.", "error_url": "https://stytch.com/docs/api/errors/500"}
Allows updating a WebAuthn registration’s name.
Parameters
string
required
Globally unique UUID that identifies a Passkey or WebAuthn registration in the Stytch API. The webauthn_registration_id is used when you need to operate on a specific User’s WebAuthn registration.
string
required
The name of the WebAuthn registration or Passkey.
Response
object
A Passkey or WebAuthn registration.
Show properties
string
The unique ID for the Passkey or WebAuthn registration.
string
The domain on which Passkey or WebAuthn registration was started. This will be the domain of your app.
string
The user agent of the User.
string
The authenticator_type string displays the requested authenticator type of the Passkey or WebAuthn device. The two valid types are “platform” and “cross-platform”. If no value is present, the Passkey or WebAuthn device was created without an authenticator type preference.
boolean
The verified boolean denotes whether or not this send method, e.g. phone number, email address, etc., has been successfully authenticated by the User.
string
The name of the Passkey or WebAuthn registration.
string
Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we
may ask for this value to help identify a specific API call when helping you debug an issue.
number
The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values
equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.
Assistant
Responses are generated using AI and may contain mistakes.