It looks like you're new here. If you want to get involved, click one of these buttons!
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
Unable to fetch auth-token
I am using postman to post " api-key, request-token and checksum" & header as "X-Kite-Version:3" to
. But getting this response. Kindly help and thanks in advance.
"message": "`api_key` should be minimum 6 characters in length.",
You need to make a form request and not json request.
You need to POST api_key,request_token and checksum as body response as urlencoded data.
Go through this video
any of the answer is not helping me out kindly provide php related solution
code is :
$request_token = $_GET['request_token'];
$status = $_GET['status'];
$action = $_GET['action'];
$apikey = "xxxxxxxxxx";
$apisecret = "XXXXXXXXXX";
$hash = hash('sha256', $apikey.$request_token.$apisecret);
$fields = array(
'api_key' => $apikey,
'request_token' => $request_token,
'checksum' => $hash
$curl = curl_init();
CURLOPT_URL => "
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => $fields,
CURLOPT_HTTPHEADER => array(
$response = curl_exec($curl);
$err = curl_error($curl);
kindly help me to find where i am getting it wrong.