Skip to main content
GET
/
me
Get the current user
curl --request GET \
  --url https://{tenant_id}.hanko.io/me \
  --cookie hanko=
{
  "id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c",
  "user_id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c",
  "emails": [
    {
      "id": "5333cc5b-c7c4-48cf-8248-9c184ac72b65",
      "address": "john.doe@example.com",
      "is_verified": true,
      "is_primary": false
    }
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "passkeys": {
    "id": "5333cc5b-c7c4-48cf-8248-9c184ac72b65",
    "name": "iCloud",
    "public_key": "pQECYyagASFYIBblARCP_at3cmprjzQN1lJ...",
    "attestation_type": "packed",
    "aaguid": "01020304-0506-0708-0102-030405060708",
    "last_used_at": "2026-02-24T21:40:36.26936Z",
    "created_at": "2026-02-24T21:40:36.26936Z",
    "transports": [
      "internal"
    ],
    "backup_eligible": true,
    "backup_state": true,
    "mfa_only": false
  },
  "security_keys": {
    "id": "f826013e-e7e3-4366-a6d8-9359effc8cdd",
    "name": "Yubikey Bio",
    "public_key": "aNMEEyadASFYIBblARCP_at3cmp4gg3zQN1lJ...",
    "attestation_type": "packed",
    "aaguid": "90636e1f-ef82-43bf-bdcf-5255f139d12f",
    "last_used_at": "2026-02-24T21:40:36.26936Z",
    "created_at": "2026-02-24T21:40:36.26936Z",
    "transports": [
      "usb"
    ],
    "backup_eligible": true,
    "backup_state": false,
    "mfa_only": true
  },
  "metadata": {
    "public_metadata": {
      "role": "admin"
    },
    "unsafe_metadata": {
      "birthday": "2025-05-12"
    }
  },
  "name": "<string>",
  "given_name": "<string>",
  "family_name": "<string>",
  "picture": "<string>",
  "mfa_config": {
    "auth_app_set_up": true,
    "totp_enabled": true,
    "security_key_enabled": true
  },
  "username": {
    "id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "username": "john_doe"
  }
}

Authorizations

hanko
string
cookie
required

Response

Details for the current user

id
string<uuid4>
deprecated

The ID of the user. Deprecated, use user_id instead.

Example:

"c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c"

user_id
string<uuid4>

The ID of the user

Example:

"c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c"

emails
object[]
Example:
[
  {
    "id": "5333cc5b-c7c4-48cf-8248-9c184ac72b65",
    "address": "john.doe@example.com",
    "is_verified": true,
    "is_primary": false
  }
]
created_at
string<date-time>

Time of creation of the the user

updated_at
string<date-time>

Time of last update of the user

passkeys
object
Example:
{
  "id": "5333cc5b-c7c4-48cf-8248-9c184ac72b65",
  "name": "iCloud",
  "public_key": "pQECYyagASFYIBblARCP_at3cmprjzQN1lJ...",
  "attestation_type": "packed",
  "aaguid": "01020304-0506-0708-0102-030405060708",
  "last_used_at": "2026-02-24T21:40:36.26936Z",
  "created_at": "2026-02-24T21:40:36.26936Z",
  "transports": ["internal"],
  "backup_eligible": true,
  "backup_state": true,
  "mfa_only": false
}
security_keys
object
Example:
{
  "id": "f826013e-e7e3-4366-a6d8-9359effc8cdd",
  "name": "Yubikey Bio",
  "public_key": "aNMEEyadASFYIBblARCP_at3cmp4gg3zQN1lJ...",
  "attestation_type": "packed",
  "aaguid": "90636e1f-ef82-43bf-bdcf-5255f139d12f",
  "last_used_at": "2026-02-24T21:40:36.26936Z",
  "created_at": "2026-02-24T21:40:36.26936Z",
  "transports": ["usb"],
  "backup_eligible": true,
  "backup_state": false,
  "mfa_only": true
}
metadata
object

The public and unsafe metadata of a user

name
string
given_name
string
family_name
string
picture
string<uri>
mfa_config
object
username
object

The representation of a username of the user