| Name | Type | Required | Default value | Description |
|---|
| vhost | int | Required | none | The id of the vhost. |
| userData | array | Required | none | An array of user data as described in users.register (http://developer.newspark.ca/mediadetail/5547189?groupId=11699&top=11699). |
| activate | bool | Optional | false | Activate user automatically |
| sendEmail | bool | Optional | false | Send user an email |
| genCode | bool | Optional | false | Create an activation code. |
| sendSMS | bool | Optional | false | Send the activate code to the user via SMS |
| recaptchaToken | string | Optional | false | To be used to validate against recaptcha key in project settings |
| returnUserInfo | bool | Optional | false | If true it will return an array of userinfo, otherwise only the id will be returned |
| login | bool | Optional | false | If true, will return active session token |