Skip to content

Latest commit

 

History

History
78 lines (62 loc) · 723 Bytes

Emails.md

File metadata and controls

78 lines (62 loc) · 723 Bytes

Emails

List email addresses for a user

GET /user/emails

Response

Status: 200 OK
[
  {
    "email": "fake@local",
    "verified": true,
    "primary": true
  }
]

Add email address(es)

POST /user/emails

Example

[
  "user1@user.com",
  "user2@user.com"
]

Response

Status: 201 Created
[
  {
    "email": "user1@user.com",
    "verified": false,
    "primary": false
  },
  {
    "email": "user1@user.com",
    "verified": false,
    "primary": false
  }
]

Delete email address(es)

DELETE /user/emails

Example

[
  "user1@user.com",
  "user2@user.com"
]

Response

Status: 204 No Content