Skip to main content
GET
/
kyc
/
entitylocker
/
sessions
/
{session_id}
/
status
Get session status
curl --request GET \
  --url https://test-api.sandbox.co.in/kyc/entitylocker/sessions/{session_id}/status \
  --header 'Authorization: <authorization>' \
  --header 'x-api-key: <x-api-key>'
import requests

url = "https://test-api.sandbox.co.in/kyc/entitylocker/sessions/{session_id}/status"

headers = {
    "Authorization": "<authorization>",
    "x-api-key": "<x-api-key>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {
  method: 'GET',
  headers: {Authorization: '<authorization>', 'x-api-key': '<x-api-key>'}
};

fetch('https://test-api.sandbox.co.in/kyc/entitylocker/sessions/{session_id}/status', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://test-api.sandbox.co.in/kyc/entitylocker/sessions/{session_id}/status",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: <authorization>",
    "x-api-key: <x-api-key>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://test-api.sandbox.co.in/kyc/entitylocker/sessions/{session_id}/status"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "<authorization>")
	req.Header.Add("x-api-key", "<x-api-key>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://test-api.sandbox.co.in/kyc/entitylocker/sessions/{session_id}/status")
  .header("Authorization", "<authorization>")
  .header("x-api-key", "<x-api-key>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://test-api.sandbox.co.in/kyc/entitylocker/sessions/{session_id}/status")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["x-api-key"] = '<x-api-key>'

response = http.request(request)
puts response.read_body
{ "code": 200, "timestamp": 1752580258171, "data": { "@entity": "in.co.sandbox.kyc.entitylocker.session", "id": "139fd8a0-d645-42e1-a904-bb43353b0139", "status": "created", "created_at": 1752579445983 }, "transaction_id": "900ff751-2191-4b7d-b20a-8301790a3e29" }
https://mintcdn.com/sandboxfinancialtechnologiesprivatelimited/gviqebbpT5NUt_6i/static/svg/Postman.svg?fit=max&auto=format&n=gviqebbpT5NUt_6i&q=85&s=da47f2b7e10d87befec951aed9468de3

Run in Postman

Headers

Authorization
string
required

JWT access token. For token-generation steps, refer to the Quickstart Guide.

x-api-key
string
required

API key used to identify and authenticate the client.

x-api-version
string

Specifies the API version for the request.

Path Parameters

session_id
string
required

Session identifier generated during EntityLocker Initiate Session API .

Response

code
integer
required

HTTP status code.

timestamp
integer
required

Unix timestamp (in milliseconds) indicating when the server generated the response.

data
object
required
transaction_id
string
required

Unique identifier for tracking the request across systems.