Login
URL: POST /auth/identity/authentication
Auth required : NO
Query params : username`, `password`, `recaptcha
Registration
URL: POST /auth/identity/signup
Auth required : NO
Query params : username`, `email`, `password`, `cPassword`, `agreement`, `politically_status`, `first_name`, `last_name`, `recaptcha`, `partner_code
Confirm registration
URL: POST /auth/identity/confirm-email/{token}
Auth required : NO
2FA auth
URL: GET /auth/identity/two-fa-auth
Auth required : NO
Query params : `hash`, `code`
2FA auth connect request
URL: GET /auth/identity/two-fa-auth-connect/{method}
Auth required : YES
Query params : `method_email`, `method_google`
2FA auth connect confirm
URL: POST /auth/identity/two-fa-auth-connect/{method}
Auth required : YES
Query params : `method_email`, `method_google`
Body form-data params : `hash`, `code`
2FA auth disconnect request
URL: GET /auth/identity/two-fa-auth-disconnect/{method}
Auth required : YES
Query params : `method_email`, `method_google`
2FA auth disconnect confirm
URL: POST /auth/identity/two-fa-auth-disconnect/{method}
Auth required : YES
Query params : `method_email`, `method_google`
Body form-data params : `hash`, `code`
Refresh token
URL: POST /auth/identity/refresh-token
Auth required : YES
Query params : `token`
Remove refresh tokens
URL: POST /auth/identity/remove-refresh-tokens
Auth required : YES
Logout
URL: POST /auth/identity/logout
Auth required : YES
Recovery password request
URL: POST /auth/identity/recovery-password
Auth required : NO
Body form-data params : `email`
Recovery password
URL: POST /auth/identity/recovery-password/{token}
Auth required : NO
Body form-data params : `password`
Change password
URL: POST /auth/identity/change-password
Auth required : YES
Body form-data params : `password`, `cPassword`
OAUTH2 authentication
URL: GET /auth/oauth2/index
Auth required : YES
Body form-data params : `password`, `cPassword`
Response:
[
{
"code": 400,
"message": "Bad Request",
"data": []
},
{
"code": 200,
"message": "OK",
"data": {
"redirect_url": "https://3ex.ch/social-auth/auth/?authclient=stockpoint&code=2pd4Daa1PaNpMXl9OSzVnRyeK7X2Wybti6ETFXJ-&state=187b783d4633880a7062c3171ebee77d722321203d46d9f687a3e95bf007c1ac"
}
}
]
Get profile
URL: GET /auth/security/get-profile
Auth required : YES
Response:
{
"code": 200,
"message": "OK",
"data": {
"username": "test22",
"first_name": "asdf",
"last_name": "Titov",
"email": "[email protected]",
"timezone": "America/Ensenada",
"phone": "",
"verification_status": 0,
"verification_steps": {
"person": {
"status": "yes",
"comment": ""
},
"address": {
"status": "waiting",
"comment": ""
},
"interview": {
"status": "no",
"comment": ""
},
"company": {
"status": "waiting",
"comment": ""
}
},
"verification_data": {
"first_name": "Maikl",
"last_name": "Scofild",
"middle_name": "",
"address": "",
"zip_code": "",
"city": "",
"passport_country": "Ukraine",
"passport": "AV989989FF"
},
"2fa": {
"active": true,
"method": "method_google"
}
}
}
Get timezones
URL: GET /auth/security/get-timezones
Auth required : NO
Response:
{
"code": 200,
"message": "OK",
"data": {
"Pacific/Midway": "(GMT-11:00) Midway Island, Samoa",
"America/Adak": "(GMT-10:00) Hawaii-Aleutian",
"Etc/GMT+10": "(GMT-10:00) Hawaii"
}
}
Get countries
URL: GET /auth/security/get-countries
Auth required : NO
Response:
{
"code": 200,
"message": "OK",
"data": [
{
"name": "Afghanistan",
"iso": "AF",
"flag": "https://stockpoint.io/flags/AF.png",
"lat": "33.00",
"lon": "66.00",
"nationality": "Afghan",
"timezone": "Asia/Kabul",
"phone_code": "+93"
},
{
"name": "Aland Islands",
"iso": "AX",
"flag": "https://stockpoint.io/flags/AX.png",
"lat": "60.25",
"lon": "20.00",
"nationality": "",
"timezone": "Europe/Mariehamn",
"phone_code": "+358"
}
]
}
Update profile
URL: GET /auth/security/update-profile
Auth required : YES
Body form-data params : `timezone, username, phone`
Response:
{
"code": 200,
"message": "OK",
"data": {
"username": "myUsername",
"first_name": "Name",
"last_name": "Name2",
"email": "[email protected]",
"timezone": "America/Ensenada",
"phone": ""
}
}
Get sessions
URL: GET /auth/security/get-sessions
Auth required : YES
Response:
{
"code": 200,
"message": "OK",
"data": {
"items": [
{
"ip": "172.24.0.1",
"agent": "PostmanRuntime/7.29.2",
"created_at": 1667310651,
"status": "success",
"city": "",
"region": "",
"device": "",
"browser": "library Postman Desktop 7.29"
},
{
"ip": "172.24.0.1",
"agent": "PostmanRuntime/7.29.2",
"created_at": 1667307516,
"status": "fail",
"city": "",
"region": "",
"device": "",
"browser": "library Postman Desktop 7.29"
}
],
"pagination": {
"links": {
"self": "/auth/security/get-sessions?page=1&per-page=10",
"first": "/auth/security/get-sessions?page=1&per-page=10",
"last": "/auth/security/get-sessions?page=1&per-page=10"
},
"shownFrom": 1,
"shownTo": 10,
"totalCount": "10",
"pageCount": 1
}
}
}
Add person verification
URL: GET /auth/security/verify-person
Auth required : YES
Body form-data params : `first_name`, `last_name`, `passport`, `passport_country`, `middle_name`, `expire_date`
Body form-data files : `first_name`, `last_name`, `passport`, `passport_country`, `middle_name`, `expire_date`
Add address verification
URL: GET /auth/security/verify-address
Auth required : YES
Body form-data params : `address`, `city`, `zip_code`
Body form-data files : `address`, `city`, `zip_code`
Add interview verification
URL: GET /auth/security/verify-interview
Auth required : YES
Body form-data params : `description`
Add company verification
URL: GET /auth/security/verify-company
Auth required : YES
Body form-data files :
Get all secret questions
URL: GET /auth/security/all-questions
Auth required : YES
Response:
{
"code": 200,
"message": "OK",
"data": [
{
"id": "3",
"name": "Your mother's maiden name"
},
{
"id": "1",
"name": "Your best friend's name"
},
{
"id": "2",
"name": "Favorite music group"
}
]
}
Get my secret questions
URL: GET /auth/security/my-questions
Auth required : YES
Response:
{
"code": 200,
"message": "OK",
"data": [
{
"id": 3,
"name": "Your mother's maiden name"
},
{
"id": 2,
"name": "Favorite music group"
}
]
}
Create my mew secret question
URL: POST /auth/security/add-questions
Auth required : YES
Body form-data params : `question_id, value`
Response:
{
"code": 200,
"message": "OK",
"data": []
}
Remove my secret question
URL: POST /auth/security/remove-questions
Auth required : YES
Body form-data params : `question_id, value`
Response:
{
"code": 200,
"message": "OK",
"data": []
}
Change Password
URL: POST /auth/security/change-password
Auth required : YES
Body form-data params : `password, cPassword`
Response:
{
"code": 200,
"message": "OK",
"data": []
}
Get my IP whitelist
URL: GET /auth/security/my-ip
Auth required : YES
Body form-data params : `password, cPassword`
Response:
{
"code": 200,
"message": "OK",
"data": [
{
"id": 2,
"ip": "12.75.2.12",
"mask": "",
"created_at": 1674048540
},
{
"id": 3,
"ip": "12.75.2.12",
"mask": "",
"created_at": 1674048473
}
]
}
Create my mew IP to whitelist
URL: POST /auth/security/add-ip
Auth required : YES
Body form-data params : `ip, mask`
Response:
{
"code": 200,
"message": "OK",
"data": []
}
Remove my IP from whitelist
URL: POST /auth/security/remove-ip/{id}
Auth required : YES
Body form-data params : `ip, mask`
Response:
{
"code": 200,
"message": "OK",
"data": []
}
Change email request
URL: POST /auth/security/change-email
Auth required : YES
Body form-data params : `email`
Response:
{
"code": 200,
"message": "OK",
"data": []
}
Change email confirm
URL: POST /auth/security/change-email-confirm
Auth required : YES
Body form-data params : `email, code`
Response:
{
"code": 200,
"message": "OK",
"data": []
}
Get nicknames by user ID list
URL: POST /auth/security/get-nicknames
Auth required : NO
Body form-data params : `secret_key, ids`
Secret_key build example : `MD5 ( 1,2,3 + KEY )`
Response:
{
"code": 200,
"message": "OK",
"data": {
"1": "vasya0966",
"4": "kesha7766"
}
}