Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
42 lines (33 loc) · 1.86 KB

File metadata and controls

42 lines (33 loc) · 1.86 KB

Register User

HTTP MethodURLRequires Auth
POST/api/v1/users.registerno

Body Parameters

KeyExample ValueDescription
username*rogersmithThe username for the user.
email*roger@example.comThe email for the user.
pass*passw0rdThe password for the user.
name*Roger SmithThe name of the user.
The value can be an empty string "" if Require Name For Signup is disabled in Accounts > Registration
secretJjwjg6gouWLXhMGKWString appended to secret registration URL.

Example Call

curl -H "Content-type:application/json" \
     http://localhost:3000/api/v1/users.register \
     -d '{ 
          "username": "rogersmith", 
          "email": "roger@example.com", 
          "pass": "passw0rd", 
          "name": "Roger Smith"}'

Example Response

{
  "user": {
    "_id": "nSYqWzZ4GsKTX4dyK",
    "type": "user",
    "status": "offline",
    "active": true,
    "name": "Example User",
    "utcOffset": 0,
    "username": "example"
  },
  "success": true
}

Change Log

Version Description
0.50.0 Added