GET /citizen/:handle/emails
NO
{
rows: [
{
id
email
is_primary
is_verified
visibility
}
]
totalRowCount
}
POST /citizen/:handle/emails
NO
Key | Type | Required | Description |
---|---|---|---|
email |
string | 🌕 | 要新增的email |
{
"email":"[email protected]"
}
DELETE /citizen/:handle/emails
NO
Key | Type | Required | Description |
---|---|---|---|
email |
string | 🌕 | 要刪除的email |
{
"email":"[email protected]"
}
GET /citizen/:handle/emails/:emailID/request_verification
NO
GET /citizen/:handle/emails/:emailID/confirm_verification/:token
NO
200 ok
{
"message" : "EMAIL_VERIFY_SUCCESS",
"email": "{email}"
}
401 unauthorized
{
"statusCode" : 401,
"message": "EMAIL_VERIFY_FAILED"
}
PATCH /citizen/:handle/emails/:emailID/visibility
NO
Key | Type | Required | Description |
---|---|---|---|
visibility |
string | 🌕 | “public” 或 “private” |
{
"visibility":"public"
}
PATCH /citizen/:handle/emails/:emailID/set_primary
NO