Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Hanko webauthn API

Represents all objects which are related to WebAuthn in common

Hanko webauthn API is one of 22 APIs that Hanko publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include webauthn. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 8 operations across 7 paths, and defines 12 schemas. It is described by OpenAPI 3.0.3, at version 1.2.0.

Requests are made against a single base URL, https://{tenant_id}.hanko.io/admin.

8 operations 7 paths 12 schemas 1 DELETE2 GET1 PATCH4 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.2.0
Base URL
https://{tenant_id}.hanko.io
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Hanko webauthn API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (API Key) (BearerApiKeyAuth).

  • BearerApiKeyAuth — Bearer authentication header of the form Bearer , where is your API key. Must only be used when using Hanko Cloud.

Paths & Operations 8

Across 7 paths, the API surfaces 8 operations — 1 DELETE, 2 GET, 1 PATCH, 4 POST. Each is listed below with its method, path, parameters, and response codes.

webauthn 8

Represents all objects which are related to WebAuthn in common

GET
/{tenant_id}/.well-known/jwks.json
Well-known JWKS
get-.well-known-jwks.json 1 param → 200
POST
/webauthn/login/initializedeprecated
Initialize WebAuthn login
webauthnLoginInit body → 200400500
POST
/webauthn/login/finalizedeprecated
Finalize WebAuthn login
webauthnLoginFinal body → 200400401500
POST
/webauthn/registration/initializedeprecated
Initialize WebAuthn registration
webauthnRegInit → 200400422500
POST
/webauthn/registration/finalizedeprecated
Finalize WebAuthn registration
webauthnRegFinal body → 200400500
GET
/webauthn/credentialsdeprecated
Get a list of WebAuthn credentials
listCredentials → 200401500
PATCH
/webauthn/credentials/{id}deprecated
Updates a WebAuthn credential
updateCredential 1 param body → 200400401404500
DELETE
/webauthn/credentials/{id}deprecated
Deletes a WebAuthn credential
deleteCredential 1 param → 201400401404500

Schemas 12

The contract defines 12 schemas that model the data the API accepts and returns. The most detailed are WebauthnCredential (11 properties), PublicKeyCredentialAttestationResponse (4 properties), PublicKeyCredentialAssertionResponse (4 properties), WebauthnLoginResponse (2 properties). Each schema is shown below with its type and property counts.

CookieSession
string
Value is a [JSON Web Token](https://www.rfc-editor.org/rfc/rfc7519.html)
PublicKeyCredentialAssertionResponse
object
WebAuthn API response to a navigator.credentials.get() call
4 properties
CredentialCreationOptions
object
Options for credential creation with the WebAuthn API
1 property
PublicKeyCredentialAttestationResponse
object
WebAuthn API response to a navigator.credentials.create() call
4 properties
X-Auth-Token
string
Enable via [configuration](https://github.com/teamhanko/hanko/blob/main/backend/docs/Config.mdhanko-backend-config) option session.enableauthtokenheader for pu…
X-Session-Lifetime
number
Contains the seconds until the session expires.
CredentialRequestOptions
object
Options for assertion generation with the WebAuthn API
1 property
Error
object
2 properties 2 required
WebauthnLoginResponse
object
Response after a successful login with webauthn
2 properties
WebauthnCredential
object
11 properties
UUID4
string
WebauthnCredentials
array
A list of WebAuthn credentials

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hanko-webauthn-api-openapi.yml Raw ↑

Other APIs Hanko publishes across the network.

Hanko Flow API
Hanko Audit Logs API
Hanko Credentials API
Hanko Email Management API
Hanko Login API
Hanko Metrics API
Hanko mfa API
Hanko Passcode API
Hanko Password API
Hanko SAML API
Hanko Session Management API
Hanko Sessions API