Skip to main content

Logout

Upon completion of this API call, the session will be terminated, rendering the access token invalid. As a result, the user will be required to log in again to establish a new session and obtain a new access token.

Method: POST

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

Request details

ParameterDescriptionData typesExamples
userIdUser Id of the login userString"AA1999"
jKeyToken received from login APIString"d9b4e1b1c79042476fd96
11eed81003b2dc34c3f13b0
b60a4842fd5a24c9f3f2"
curl --location --request POST 'https://connect-dev.thefirstock.com/api/V3/logout' \
--header 'Content-Type: application/json' \
--data-raw '{
"jKey": "e6a211bea63adff386578988e1cf4a9521c4744e6a39ad63174c8797e2af8c38",
"userId": "AA123"
}'

Success response details

ParameterDescriptionData typesExamples
statusSuccessString"Success"
dataGive a successful logout messageString"Successfully logged out"

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": "Successfully logged out"
}