POST

https://{tenant_id}.hanko.io

/
users
/
{id}
/
emails
curl --request POST \
  --url https://{tenant_id}.hanko.io/users/{id}/emails \
  --header 'Content-Type: application/json' \
  --data '{
  "address": "jsmith@example.com",
  "is_primary": true,
  "is_verified": true
}'
{
  "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"
}

Path Parameters

id
string
required

UUID of the requested object

Body

application/json
address
string
required
is_primary
boolean
is_verified
boolean

Response

201 - application/json
id
string
required

The ID of the email

address
string
required

The email address

is_verified
boolean
required

Indicated the email has been verified.

is_primary
boolean
required

Indicates it's the primary email address.

created_at
string
required

Time of creation of the email

updated_at
string
required

Time of last update of the email