Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 1.88 KB

File metadata and controls

50 lines (40 loc) · 1.88 KB
description
Register a user

Register User

URL Requires Auth HTTP Method
/api/v1/users.register no POST

Payload

Argument Example Required Description
username rogersmith Required The username for the user.
email roger@example.com Required The email for the user.
pass passw0rd Required The password for the user.
name Roger Smith Required The name of the user. Can be "" if Require Name For Signup is disabled in Accounts > Registration
secretURL Jjwjg6gouWLXhMGKW Optional String appended to secret registration URL (if using).

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 Result

{
  "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