4.3. Verify a Long-Term Access Token

Method URL
POST /oauth2/authorize

Verifies a long-term access token during automatic re-login flow.

Request Body

Key Required? Data Type Description
accessToken Yes string A non-repeatable token allowing for long-term access to the trading environment.

Output

Key Data Type Description
userId string The unique ID of a specific user.

Request Example

curl -X POST ‘https://brokerCrmUrl.com/cid/oauth2/authorize?token=cr56mng23454laf5545sdfdf234fs541200sdf’ -H ‘Content-Type: application/json’ -H ‘Accept: application/json’ -d ‘{"accessToken": "0eZXAw8GJQ55RlDcALSVi6xPDHTRCivfE9STSyBfeMxRWZAGEIe0VujpibDP"}’

Expected Response Status Code

200

Please, see the Appendix for the additional error codes that may arise when making this API call.

Response Example

{
    "userId": 10345533
}

Last update: September 26, 2022

Comments