Aadhaar eKYC V1 — Refresh Captcha
Get a fresh captcha image for an Aadhaar eKYC session. Use this when the user needs to retry captcha verification.
curl -X GET "https://production.deepvue.tech/v1/ekyc/aadhaar/reload-captcha?session_id=a73af0b7accc4c3fbaa3dd2dc2cab550&consent=Y&purpose=lending" \
-H "Content-Type: application/json" \
-H "X-Deepvue-Origin: acme-web" \
-H "x-api-key: YOUR_API_KEY" \
-H "client-id: YOUR_API_KEY"
import requests
import json
url = "https://production.deepvue.tech/v1/ekyc/aadhaar/reload-captcha?session_id=a73af0b7accc4c3fbaa3dd2dc2cab550&consent=Y&purpose=lending"
headers = {
"Content-Type": "application/json",
"X-Deepvue-Origin": "acme-web",
"x-api-key": "YOUR_API_KEY",
"client-id": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://production.deepvue.tech/v1/ekyc/aadhaar/reload-captcha?session_id=a73af0b7accc4c3fbaa3dd2dc2cab550&consent=Y&purpose=lending", {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-Deepvue-Origin": "acme-web",
"x-api-key": "YOUR_API_KEY",
"client-id": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://production.deepvue.tech/v1/ekyc/aadhaar/reload-captcha?session_id=a73af0b7accc4c3fbaa3dd2dc2cab550&consent=Y&purpose=lending", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-Deepvue-Origin", "acme-web")
req.Header.Set("x-api-key", "YOUR_API_KEY")
req.Header.Set("client-id", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://production.deepvue.tech/v1/ekyc/aadhaar/reload-captcha?session_id=a73af0b7accc4c3fbaa3dd2dc2cab550&consent=Y&purpose=lending')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['X-Deepvue-Origin'] = 'acme-web'
request['x-api-key'] = 'YOUR_API_KEY'
request['client-id'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"timestamp": 1738305161129,
"transaction_id": "489dc198583e441c8a66a48ba3059442",
"data": {
"captcha": "base64-encoded-captcha-string"
},
"code": 200
}
{
"detail": "Inactive client_id"
}
{
"detail": "Not authenticated"
}
{
"detail": "Not a valid token"
}
{
"detail": [
{
"loc": [
"query",
"session_id"
],
"msg": "field required",
"type": "value_error.missing"
}
]
}
{
"detail": "Internal Server Error"
}
{
"code": null,
"timestamp": null,
"transaction_id": "a73af0b7accc4c3fbaa3dd2dc2cab550",
"message": "Unable to create a session"
}
/v1/ekyc/aadhaar/reload-captcha
Target server for requests. Edit to use your own host.
The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.
The CLIENT_ID provided to you. This header parameter is required for authentication purposes.
Identifies the product, service, or platform you are calling the API from. The value appears in the Caller column of Transaction logs and in dashboard analytics.
- Use lowercase letters, digits, and hyphens only
- Start with a letter or digit
- Maximum 32 characters
A value that does not match ^[a-z0-9][a-z0-9-]{0,31}$ is rejected with INVALID_ORIGIN_METADATA.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.
API Key for authentication. The CLIENT_ID provided to you. This header parameter is required for authentication purposes.
Query Parameters
a73af0b7accc4c3fbaa3dd2dc2cab550YlendingHeaders
Identifies the product, service, or platform you are calling the API from. The value appears in the Caller column of Transaction logs and in dashboard analytics.
- Use lowercase letters, digits, and hyphens only
- Start with a letter or digit
- Maximum 32 characters
A value that does not match ^[a-z0-9][a-z0-9-]{0,31}$ is rejected with INVALID_ORIGIN_METADATA.
acme-webResponses
Consent must be mandatorily stored at your end before proceeding with verification.