Skip to main content
POST
Create a new user

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.

Body

application/json
emails
object[]
required

The email addresses of the new user

id
string<uuid4>

The ID of the new user

Example:

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

username
string

The username of the new user

created_at
string<date-time>

Time of creation of the user

Response

Details of the newly created user

id
string<uuid4>
required

The ID of the user

Example:

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

created_at
string<date-time>
required

Time of creation of the user

updated_at
string<date-time>
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

username
object

The username of the user

otp
object
password
object

The password credential of a user

identities
object[]

A list of third party provider identities

metadata
object

User metadata