Account

Generate Token

  • You need a valid qfinr account and an access_key for the generateToken API. The email_id is the email used for the qfinr account, while the access_key is available in the setting tab. Users can re-generate the access_key or create their own in the settings tab. We recommend that you update the key regularly.
  • You need the email id of your qfinr account and the key to generate a secret_key(a time-expiring token). Every time you request the secret_key, a new token is generated. Your unique access_key and the time-sensitive secret_key are required to access your account details. The secret_key expiry will be in response to the generateToken request.

REQUEST BODY SCHEMA:

email_id
String
access_key
String
RESPONSE BODY SCHEMA:

status
Boolean
response_code
String
response
Array
secret_key
String
date_valid
DateTime (IST)
Secret key validity
RESPONSE CODES
s01
Success
err01
Error message
Post /user/token/generateToken

Default server

https://api.qfinr.com/api/user/token/generateToken

Request Samples

php
python
<?php

$curl 
curl_init();

curl_setopt_array($curl, array(
  
CURLOPT_URL => 'https://api.qfinr.com/api/user/token/generateToken',
  
CURLOPT_RETURNTRANSFER => true,
  
CURLOPT_ENCODING => '',
  
CURLOPT_MAXREDIRS => 10,
  
CURLOPT_TIMEOUT => 0,
  
CURLOPT_FOLLOWLOCATION => true,
  
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  
CURLOPT_CUSTOMREQUEST => 'POST',
  
CURLOPT_POSTFIELDS => 'email_id={{email_id}}&access_key={{access_key}}
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
1
import requests

url = "https://api.qfinr.com/api/user/token/generateToken"

payload='email_id={{email_id}}&access_key={{access_key}}'
headers = {
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
1