Skip to main content
POST
/
users
/
{user_id}
/
emails
Add User Email
curl --request POST \
  --url https://api.wacht.dev/users/{user_id}/emails \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "[email protected]",
  "is_primary": false
}'
{
  "id": "<string>",
  "email": "[email protected]",
  "is_primary": true,
  "is_verified": true,
  "verified_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Path Parameters

user_id
string
required

Body

application/json
email
string<email>
required
is_primary
boolean
default:false

Response

id
string
email
string<email>
is_primary
boolean
is_verified
boolean
verified_at
string<date-time> | null