POST

https://{tenant_id}.hanko.io

/
webauthn
/
registration
/
finalize
curl --request POST \
  --url https://{tenant_id}.hanko.io/webauthn/registration/finalize \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "_18q6IjW09tiM4NSbsZjocUtGx00Muv5mN6LZCelCMDD...",
  "rawId": "_18q6IjW09tiM4NSbsZjocUtGx00Muv5mN6LZCelCMDD...",
  "type": "public-key",
  "response": {
    "clientDataJson": "eyJ0eXBlIjoid2ViYXV0aG4uZ2V0IiwiY2hhbGxlbmdl...",
    "attestationObject": "o2NmbXRkbm9uZWdhdHRTdG10oGhhdXRoRGF0YVjfSZYN...",
    "transports": [
      "internal"
    ]
  }
}'
{
  "credential_id": "aSDinaTvuI8gbWludGxpZnk=",
  "user_id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c"
}

Authorizations

hanko
string
cookierequired

Body

application/json
id
string
rawId
string
type
enum<string>
Available options:
public-key
response
object

Response

200 - application/json
credential_id
string

The ID of the created credential

user_id
string

The ID of the user on whose behalf a credential was created