Register A User

Create User

POST {{URL}}/api/v1/register

This endpoint allows you to register a new user.

Request Body

Name
Type
Description

email

string

Email address of the user

password

string

The password of the user

username

string

Username of the user.

{
    "status": "success",
    "message": "Account was successfully created, please ensure to verify your account",
    "results": 1,
    "data": {
        "userPermissions": {
            "login": 1,
            "readArticles": 1
        },
        "role": "User",
        "interests": [],
        "isVerified": false,
        "_id": "60b021f79360340410230a5f",
        "email": "[email protected]",
        "username": "Opman129",
        "createdAt": "2021-05-27T22:49:27.000Z",
        "__v": 0,
        "VerificationCode": "2897d92c2b641ccd751633419ddc548b572541c74faa1c8d9726895933dc9ca1",
        "VerificationExpires": "2021-06-03T22:49:27.730Z"
    }
}

Last updated

Was this helpful?