Hi @depakpant,
The API you provided is giving out HTML response when I tried. Can you please check and help me rectify if there is some mistake in my request? I tried adding Bearer prefix too but got same response,
Also less confirm if the complete URL is correct
https://healthidsbx.abdm.gov.in/v1/auth/generate/access-token
Request
curl --location --request POST 'https://healthidsbx.abdm.gov.in/v1/auth/generate/access-token' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDU1OTc5MTYsImlhdCI6MTY0NTU5NzMxNiwianRpIjoiM2I3NWMxN2UtZWFmYi00Yjk5LThmZjMtOWE0MDhhNmViZWI3IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJmMDJiMTYwNy00YTZiLTRmOTctYWJmMS1iYTRiNzg1YjBiMjgiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwMzI0Iiwic2Vzc2lvbl9zdGF0ZSI6ImFhZGEzOGI1LTM3ZDgtNDQyZi04NjQxLTdkNDUxOTY0M2ZiMiIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwicGhyIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAwMzI0Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUi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ilZ5d7BDgy1-h0x5_nwXcb69keLJwog4fvFk8EcJ2YI1_SV4NS3g9cQpEVvgV5Mcoh24-e8RT76pkrP2csUxPL2nTKKE6s7hmm21KjAINHc69pyJbGhKJIfjGFHxfEpPdoaahGPiSf5r7E_-CJmBeoRX0toD6XdndBGvLwWoBVOnmh40fTd0ErBDihAQA-MzLhf74Uof7Ns7CrzAQhx7XuZVx4GPKYv4niU32SNLDJf7cy8sDzxmaH175at9qbpaicg-31mAmkOmakOTYphKZqjex2OFPEaT4_cKPK17BuC2CXTuM2CAowsf2rhQfieNMKP3ZcVxkIi1n_HXIEfThDTlzINDkMHkyoz6VGifkdBQ6quAyAbB--mUI1cRLOhahYNs0GM-fCvo2BvPdh0IeFdymcM0ZqTIKOulNNCCwQ0D-c2C2c"
}'
Response
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="theme-color" content="#3a70d4" />
<meta name="description" content="Health ID | ABDM" />
<base href="/" />
<link rel="manifest" href="./manifest.json" />
<link rel="shortcut icon" href="./favicon.png" type="image/png" />
<title>ABHA | ABDM</title>
<link href="./static/css/2.a752b977.chunk.css" rel="stylesheet">
<link href="./static/css/main.9797289b.chunk.css" rel="stylesheet">
</head>
<body><noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script>
!function(e){function r(r){for(var n,l,a=r[0],f=r[1],i=r[2],c=0,s=[];c<a.length;c++)l=a[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,i||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var f=t[a];0!==o[f]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="./";var a=this["webpackJsonpnhdm-sa"]=this["webpackJsonpnhdm-sa"]||[],f=a.push.bind(a);a.push=r,a=a.slice();for(var i=0;i<a.length;i++)r(a[i]);var p=f;t()}([])
</script>
<script src="./static/js/2.7e0604c4.chunk.js"></script>
<script src="./static/js/main.080a4a93.chunk.js"></script>
</body>
</html>
Thanks,
Ayush