curl --location ‘https://abhasbx.abdm.gov.in/abha/api/v3/enrollment/request/otp’
–header ‘Content-Type: application/json’
–header ‘TIMESTAMP: 2023-02-20 12:15:14’
–header ‘REQUEST_ID: health_id_34935c59-f57e-4304-a318-3aa0b146c426’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2Nzg5NTM5MjEsImlhdCI6MTY3ODk1MzMyMSwianRpIjoiNzY3YTlmOGUtODc0YS00ODFiLTg0NzAtZjQzNTkwNWU2N2VhIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJhZjgxOWFkMy0xZDIwLTQzM2QtOGUzZS0xNWJkZmQ0Y2ZhZjciLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJESFBMXzE4OTQ2MjQiLCJzZXNzaW9uX3N0YXRlIjoiMzljYzQ0YmUtMzMyNC00YjlmLWIzZDUtZWU2MDRiMjMxNjNmIiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwOi8vbG9jYWxob3N0OjkwMDciXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbImhpdSIsIm9mZmxpbmVfYWNjZXNzIiwiaGVhbHRoSWQiLCJwaHIiLCJPSURDIiwiaGVhbHRoX2xvY2tlciIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IkRIUExfMTg5NDYyNCI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfSwiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJvcGVuaWQgZW1haWwgcHJvZmlsZSIsImNsaWVudEhvc3QiOiIxMC4yMzMuNjkuMTQ3IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJjbGllbnRJZCI6IkRIUExfMTg5NDYyNCIsInByZWZlcnJlZF91c2VybmFtZSI6InNlcnZpY2UtYWNjb3VudC1kaHBsXzE4OTQ2MjQiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY5LjE0NyJ9.j7wArn8uSq9fEbfYJdo9jhT0Qi6YFjiXNPZXD6Afip7mW4VnNH7FxAZb9c30GPIAHJjVVP8gk_6qiiwW_Hsjqe-E81gEBD_SlhDdwqPBkuUKkxXajSeKpF5Lq925_xi7i8M9g_7TkVejeLTtvP13u9Bs0yeqL5ZQU12_foTCs09YjJzVs5zRmv4Ghw2fXpV4H2RxZQnOaBmYcgiVCpXz9d1Oj9XbZAJcPk8vzZdx9Nf8OZrIQDxlGjxWsdUSv-RymWMJKLMQt0j0Ire30cLcA8ibi5zW21I2ARPE_QEdTAsRhY72aZDrWIA-MyWiBqxPPC3pkPmcdjfzJtR4UYdg8Q’
–data ‘{
“txnId”: “”,
“scope”: [
“abha-enrol”
],
“loginHint”: “aadhaar”,
“loginId”: “k0F4n98/nNtgmt40apww8660EA8Lo7Tks9CLmtS8OAKD1RdiMbxref5r9ApXqtCu3eGmCYV4NrVd80W7vC8ue4uBFIJZ3kKAl2EEo4iWpiELNvZJhXA/lUj+4Xdz4KnWhJNQjm/iQptZ8Z0EWB+gqZCyv51vDjIyARUHdzsnXJYehPiqW1eldCGFZnNh4/gDPQX9cKVxDZgFSmwj5fZCTJ/AGg7ri49pXS0ZoKAGw7WOVI192z27l/cMzSwaUnyMJsNs7xQ6TxezZlzoE39EAFSt8KkDd3LRokPquazJhFiIeSLEOntT3UPho0pA4VLMnLGhkb3ZHgquWeGh802fOcMpZemrWRxR5hXwr/HLK7AdG3Pu1LvtbdyZMeGXjl0wdXtVPFnBW3K91v3V832Hu2s6efzdawLgRBeUGyrtO5DvEVY9HC0hKu5dcl2vltS0IYdS0z9OEVOhsoH7cWDabv18oFngDP3Q6KsbVGE+VExIy6iefkapX+0YkND6uphNGA8f27BE0yvN/ndO+NFm87w1q5GicF7ngMALgpDdaL0Psd6FstSeh9+YnqG52xe1bRzCGmjJl19deQxuWJlCikjJFhY/GjjGzNPxLrxvM1u6CIuTyGxar/PheYKuraeRqCGcGYbsbAK2RtEiv3I8NY1s+xTb7BiYg0azsZRRjCA=”,
“otpSystem”: “aadhaar”
}’
https://abhasbx.abdm.gov.in/abha/api/v3/enrollment/request/otp
Response
{
“code”: “900908”,
“message”: "Resource forbidden ",
“description”: “User is NOT authorized to access the Resource. API Subscription validation failed.”
}