cURL
curl --request POST \ --url https://{tenant_id}.hanko.io/passcode/login/initialize \ --header 'Content-Type: application/json' \ --data ' { "user_id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c", "email_id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c" } '
{ "id": "c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c", "ttl": 300, "created_at": "2023-11-07T05:31:56Z" }
Initialize a passcode login.
user_id
email_id
The ID of the user
"c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c"
The ID of the email address
Successful passcode login initialization
Representation of a passcode
The ID of the passcode
Lifespan of a passcode in seconds
300
Time of creation of the passcode
Was this page helpful?