POST

https://{tenant_id}.hanko.io

/
users
curl --request POST \
  --url https://{tenant_id}.hanko.io/users \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c",
  "emails": [
    {
      "address": "<string>",
      "is_primary": true,
      "is_verified": true
    }
  ],
  "created_at": "2023-11-07T05:31:56Z"
}'
{
  "id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "webauthn_credentials": [
    {
      "id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c",
      "name": "<string>",
      "public_key": "<string>",
      "attestation_type": "<string>",
      "aaguid": "<string>",
      "transports": [
        "<string>"
      ],
      "created_at": "2023-11-07T05:31:56Z"
    }
  ],
  "emails": [
    {
      "id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c",
      "address": "jsmith@example.com",
      "is_verified": true,
      "is_primary": true,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Body

application/json
id
string

The ID of the new user

emails
object[]
required

The email addresses of the new user

created_at
string

Time of creation of the user

Response

200 - application/json
id
string
required

The ID of the user

created_at
string
required

Time of creation of the user

updated_at
string
required

Time of last update of the user

webauthn_credentials
object[]

List of registered Webauthn credentials

emails
object[]

List of emails associated to the user