POST/user/sign-up
ParametersNamePlaceTypeDescriptionRequiredDefaultContent-TypeHeaderStringYesNoneemailBodyStringYesNonefirstNameBodyStringYesNonelastNameBodyStringYesNoneusernameBodyStringYesNonepasswordBodyStringYesNonerepeatPasswordBodyStringYesNonesilentBodyBooleanWhether to always respond with a 200 OK status code, regardless of the actual response body.NoFalse
Example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const response = await fetch('https://api.infinity-fx.com/user/sign-up', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'john.doe@email.com',
firstName: 'John',
lastName: 'Doe',
username: 'Johndoe',
password: 'password',
repeatPassword: 'password'
})
});
NameTypeValueDescriptionStatusInt200OKBodyapplication/jsonaccess_tokenStringrefresh_tokenString
Examples1
2
3
4
{
"access_token": "YOUR_ACCESS_TOKEN"
"refresh_token": "YOUR_REFRESH_TOKEN"
}