Skip to main content

Create User

API URL: POST https://userapi-demo.s2f.projectx.com/Register

API Reference: /Register

Description


Create a new User.

Parameters


NameTypeDescriptionRequiredNullable
passwordstringThe new User's password.truetrue
emailstringThe new User's email.truetrue
userNamestringThe new User's username.truetrue
firstNamestringThe new User's first name.truetrue
lastNamestringThe new User's last name.truetrue
screenNamestringThe new User's screen name.truetrue
internalTagintegerThe new User's internal tag, commonly used to distinguish between regular trading accounts and test (internal) accounts.truetrue

Example Usage


Example Request

{
"password": "password",
"email": "johndoe@email.com",
"userName": "jdoe",
"firstName": "John",
"lastName": "Doe",
"screenName": "",
"internalTag": 0 // 0 = Default, 1 = Internal
}

Example Response

{
"userId": 7,
"loginToken": "LOGIN_TOKEN_FOR_USER",
"errorMessage": null,
"result": 0
}