POST
/
users
/
{id}
/
emails
curl --request POST \
  --url https://{tenant_id}.hanko.io/admin/users/{id}/emails \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "address": "jsmith@example.com",
  "is_primary": true,
  "is_verified": true
}'
{
  "id": "802df042-1ac2-496d-af81-6ace729ed055",
  "address": "jsmith@example.com",
  "is_verified": true,
  "is_primary": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

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.

Path Parameters

id
string
required

UUID of the requested object

Body

application/json

Request Body for creating an email for a user

The body is of type object.

Response

201
application/json

Created

The response is of type object.