---
title: "Finalize WebAuthn registration"
method: POST
path: "/webauthn/registration/finalize"
tags: ["WebAuthn"]
deprecated: true
---

# Finalize WebAuthn registration

`POST /webauthn/registration/finalize`

> **Deprecated.**

Finalize a registration with Webauthn using the WebAuthn API response to a `navigator.credentials.create()` call.

*Note*: The Webauthn API uses binary data represented by ArrayBuffers for certain input/output values.
The Hanko API returns these values as base64url-encoded, so they must be converted to ArrayBuffers
when passed to the Webauthn API. Similarly, Webauthn API output must be converted to base64url-encoded values
when passed to the Hanko API (e.g. using the [webauthn-json](https://github.com/github/webauthn-json) library).

## Request body

- PublicKeyCredentialAttestationResponse — WebAuthn API response to a navigator.credentials.create() call
  - `id` string
  - `rawId` string
  - `type` 'public-key'
  - `response` object
    - `clientDataJson` string, base64url
    - `attestationObject` string, base64url
    - `transports` string[]

## Response `200`

Successful registration

- object
  - `credential_id` string, base64 — The ID of the created credential
  - `user_id` string, uuid4

## Other responses

- `400` — Bad Request
- `500` — Internal server error

---

[API](https://skmtc.net/hanko/apis/hanko-admin-api.md) · [All operations](https://skmtc.net/hanko/apis/hanko-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hanko/hanko-admin-api/versions/d22a127b0978/schema)
