POST

https://{tenant_id}.hanko.io

/
passcode
/
login
/
initialize
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"
}

Body

application/json
user_id
string
required

The ID of the user

email_id
string

The ID of the email address

Response

200 - application/json
id
string

The ID of the passcode

ttl
integer

Lifespan of a passcode in seconds

created_at
string

Time of creation of the passcode