Email authentication

Users can have email based credentials. These credentials can be managed using the REST API. Only users with administrative powers can perform these calls.

Create email credentials

URL

To create an emailauth for the current user:

POST /user/emailauths HTTP/1.1

Input

Name Type Description
email string Required A unique email address.
password string Optional A secure password, if none is given, one will be generated.

Request

POST /users/sdj893us/emailauths HTTP/1.1
Accept: application/json
Content-Type: application/json

{
  "email": "SymonvanLonden@dayrep.com",
  "password": "aviB3leax"
}

Response

HTTP/1.1 201 Created
Content-Type: application/json

{
    "email": "SymonvanLonden@dayrep.com",
    "password": "aviB3leax"
}

Delete an email credential

URL

To delete a emailauth for the current user:

DELETE /user/emailauths/:emailauth HTTP/1.1

To delete an emailauth for another user, impersonate the user first.

Request

DELETE /user/emailauths/1 HTTP/1.1

Response

HTTP/1.1 204 No Content