Skip to content

Auth


The Authentication is probably the most crucial aspect for any of the Developer API Suite. Please follow the instructions carefully to generate the token for gaining access to all the API's

Logging In

Note

Please make sure that you have registered the redirect URL on the developer Portal and you have the appId and appSecret with you handy for the next steps.

Steps

  1. Navigate to https://app.tiqs.in/app/login?appId=<YOUR_APP_ID>
  2. Login using your USER ID and PASSWORD and TOTP
  3. You will be redirected to the redirect url that you mentioned on the developer portal
  4. In the query params, you will get the request-token and a checksum. The checksum is for your personal use which is the SHA of your request-token:appId
  5. Now create the SHA256 of appId:appSecret:request-token Note Don't forget the colons :
  6. Create a POST request to the following endpoint
  7. A successful POST request will fetch you a token in the response which together with appId will be required in all the request.
Sample Request
curl --location 'https://api.tiqs.trading/auth/app/authenticate-token' \
--header 'Content-Type: application/json' \
--data '{
    "checkSum": "SHA256 OF <appID:appSecret:request-token>",
    "token": "<YOUR_REQUEST_TOKEN>",
    "appId": "<YOUR_APP_ID>"
}'
Sample Response
{
  "data": {
    "name": "Abhishek Jain",
    "token": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJBSjAxMDEiLCJpc3MiOiJ0aXFzIiwic3ViIjoiNTQ3NzE4MTU3NTIwIiwiZXhwIjoxNzA5NDA0MTk5LCJpYXQiOjE3MDkzNjY3MTZ9.MrZ3c74ZaUvSEK_h_Oth6_RzSl7agyBktnpeQOGMXY5yylENUbkixowmWxmfDPwubhqPKcwas4fC8FERaSE4CQ",
    "userId": "AJ0101"
  },
  "status": "success"
}