GET
/
users
curl --request GET \
  --url https://{tenant_id}.hanko.io/admin/users \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "webauthn_credentials": [
      {
        "id": "f9bebc04-b894-4018-bdb8-8b520a532fef",
        "name": "<string>",
        "public_key": "<string>",
        "attestation_type": "<string>",
        "aaguid": "<string>",
        "transports": [
          "<string>"
        ],
        "created_at": "2023-11-07T05:31:56Z",
        "last_used_at": "2023-11-07T05:31:56Z",
        "backup_eligible": true,
        "backup_state": true,
        "mfa_only": true
      }
    ],
    "emails": [
      {
        "id": "802df042-1ac2-496d-af81-6ace729ed055",
        "address": "jsmith@example.com",
        "is_verified": true,
        "is_primary": true,
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ],
    "username": {
      "id": "8cbed467-554b-4d17-b23f-bce1b4f1db92",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your API key. Must only be used when using Hanko Cloud.

Query Parameters

page
integer
default:1

The page which should be returned

per_page
integer
default:20

The number of returned items

user_id
string

A single ID or a comma-separated list of IDs. Only users with the specified IDs are included in the result.

Example:

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

email
string

Only users with the specified email are included

Example:

"example@example.com"

sort_direction
enum<string>

The sort direction of the returned list (always sorted by created_at)

Available options:
asc,
desc

Response

200
application/json

Details about users

The response is of type object[].