description |
Register a user |
URL |
Requires Auth |
HTTP Method |
/api/v1/users.register |
no |
POST |
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). |
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"}'
{
"user": {
"_id": "nSYqWzZ4GsKTX4dyK",
"type": "user",
"status": "offline",
"active": true,
"name": "Example User",
"utcOffset": 0,
"username": "example"
},
"success": true
}
Version |
Description |
0.50.0 |
Added |