Skip to main content

User details

This sections let’s us know how to fetch the information of the logged in user.

Method POST

https://connect.thefirstock.com/api/V3/userDetails

Request details

ParameterDescriptionData typesExample
userIdUser Id of the login userString"AA1999"
jKeyToken received from login APIString"150c4971ef34f705a800f
4a8b9b97b99cc785fb3008
d9aa8c621f0264c966ff1"
curl --location 'https://connect.thefirstock.com/api/V3/userDetails' \
--header 'Content-Type: application/json' \
--data '{
"userId": "AA123",
"jKey": "e6a211bea63adff386578988e1cf4a9521c4744e6a39ad63174c8797e2af8c38"
}'

Success response details

ParameterDescriptionData typesExamples
data.requestTimeResponse received time.String"17:01:12 10-02-2023"
statusSuccessString"Success"
data.userNameName given to the user during registration.String"jon tester"
data.actidAccount idString"SS1197"
data.exchangeJson array of strings with enabled, allowed exchange namesString"NSE","BSE","NIPO"
data.orarrJson array of Product Obj with enabled products, as defined below.String"LMT","MKT","SL-LMT","SL-MKT"
data.uprevAlways it will be an INVESTOR, other types of user not allowed to login using this API.String"INVESTOR"
data.emailE-mail given by the userString"[email protected]"

Failure response details

ParameterDescriptionData TypeExample
statusFailedString"Failed"
codeHTTP CodeString"401"
nameType of errorString"INVALID_JKEY"
error.fieldError fieldString"jKey"
error.messageError messageString"jKey parameter is invalid"

Sample response

{
"status": "Success",
"data": {
"requestTime": "16:47:03 01-09-2022",
"userName": "AA199",
"exchange": [
"NSE",
"BSE",
"NIPO"
],
"orarr": [
"LMT",
"MKT",
"SL-LMT",
"SL-MKT"
],
"email": "[email protected]"",
"actid": "SS1197",
"uprev": "INVESTOR",
}
}