Hanko · Schema

Hanko User

A Hanko user record returned by the Public and Admin APIs.

AuthenticationPasskeysWebAuthnFIDO2IdentitySAMLPasswordlessOpen-Source

Properties

Name Type Description
id string The ID of the user (deprecated, use user_id).
user_id string The ID of the user.
emails array List of email addresses associated with the user.
username string The username of the user.
passkeys array List of registered passkey (WebAuthn) credentials.
created_at string Timestamp when the user was created.
updated_at string Timestamp when the user was last updated.
View JSON Schema on GitHub

JSON Schema

hanko-user-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hanko/main/json-schema/hanko-user-schema.json",
  "title": "Hanko User",
  "description": "A Hanko user record returned by the Public and Admin APIs.",
  "type": "object",
  "properties": {
    "id": {
      "description": "The ID of the user (deprecated, use user_id).",
      "type": "string",
      "format": "uuid",
      "deprecated": true
    },
    "user_id": {
      "description": "The ID of the user.",
      "type": "string",
      "format": "uuid",
      "example": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c"
    },
    "emails": {
      "type": "array",
      "description": "List of email addresses associated with the user.",
      "items": {
        "$ref": "#/$defs/Email"
      }
    },
    "username": {
      "type": "string",
      "description": "The username of the user.",
      "example": "john_doe_123"
    },
    "passkeys": {
      "type": "array",
      "description": "List of registered passkey (WebAuthn) credentials.",
      "items": {
        "$ref": "#/$defs/WebAuthnCredential"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the user was created."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the user was last updated."
    }
  },
  "required": ["user_id", "created_at", "updated_at"],
  "$defs": {
    "Email": {
      "type": "object",
      "properties": {
        "id": { "type": "string", "format": "uuid" },
        "address": { "type": "string", "format": "email" },
        "is_verified": { "type": "boolean" },
        "is_primary": { "type": "boolean" },
        "created_at": { "type": "string", "format": "date-time" },
        "updated_at": { "type": "string", "format": "date-time" }
      },
      "required": ["id", "address", "is_verified", "is_primary"]
    },
    "WebAuthnCredential": {
      "type": "object",
      "properties": {
        "id": { "type": "string", "format": "uuid" },
        "name": { "type": "string" },
        "public_key": { "type": "string" },
        "attestation_type": { "type": "string" },
        "aaguid": { "type": "string" },
        "transports": {
          "type": "array",
          "items": { "type": "string" }
        },
        "backup_eligible": { "type": "boolean" },
        "backup_state": { "type": "boolean" },
        "mfa_only": { "type": "boolean" },
        "created_at": { "type": "string", "format": "date-time" },
        "last_used_at": { "type": "string", "format": "date-time" }
      },
      "required": ["id", "attestation_type", "aaguid", "backup_eligible", "backup_state", "mfa_only"]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/hanko-user"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.