GET
/
users
/
{id}
Get a user by ID
curl --request GET \
  --url https://{tenant_id}.hanko.io/users/{id}
{
  "id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c",
  "email": "jsmith@example.com",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "username": "<string>",
  "webauthn_credentials": [
    {
      "id": "Meprtysj5ZZrTlg0qiLbsZ168OtQMeGVAikVy2n1hvvG..."
    }
  ],
  "metadata": {
    "public_metadata": {
      "role": "admin"
    },
    "unsafe_metadata": {
      "birthday": "2025-05-12"
    }
  }
}

Authorizations

hanko
string
cookie
required

Path Parameters

id
string<uuid4>
required

ID of the user

Example:

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

Response

Details about the user

id
string<uuid4>

The ID of the user

Example:

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

email
string<email>

The email address of the user

created_at
string<date-time>

Time of creation of the the user

updated_at
string<date-time>

Time of last update of the user

username
string

The username of the user

webauthn_credentials
object[]

List of registered Webauthn credentials

metadata
object

The public and unsafe metadata of a user