V3 APIs Unauthorized

Hi,

My ClientID: SBX_002117

Not able to access the V3 APIs. I am getting accessToken using https://dev.abdm.gov.in/gateway/v0.5/sessions. Please help. The access token payload extracted from jwt.io is pasted here

{
  "exp": 1696348790,
  "iat": 1696327190,
  "jti": "ab4e185a-039e-4236-b9cb-cc526246265d",
  "iss": "https://dev.ndhm.gov.in/auth/realms/central-registry",
  "aud": "account",
  "sub": "f736a8b0-1af9-4c75-a70a-56288f650a1d",
  "typ": "Bearer",
  "azp": "SBX_002117",
  "session_state": "dde0575f-24cd-4c75-b8e4-885f4c941a38",
  "acr": "1",
  "allowed-origins": [
    "http://localhost:9007"
  ],
  "realm_access": {
    "roles": [
      "hiu",
      "offline_access",
      "healthId",
      "phr",
      "OIDC",
      "hip"
    ]
  },
  "resource_access": {
    "SBX_002117": {
      "roles": [
        "uma_protection"
      ]
    },
    "account": {
      "roles": [
        "manage-account",
        "manage-account-links",
        "view-profile"
      ]
    }
  },
  "scope": "openid email profile",
  "clientHost": "10.233.69.72",
  "clientId": "SBX_002117",
  "email_verified": false,
  "preferred_username": "service-account-sbx_002117",
  "clientAddress": "10.233.69.72"
}

@IntegrationSupport - Please Help.

This is the API used

curl --location 'https://abhasbx.abdm.gov.in/abha/api/v3/enrollment/request/otp' \
--header 'REQUEST-ID: 8b9cec54-89ca-4ee7-9e9b-33bcb4d27431' \
--header 'TIMESTAMP: 2023-10-03T10:33:40.463Z' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2OTYzNTA1OTEsImlhdCI6MTY5NjMyODk5MSwianRpIjoiNTU2NjhmOWQtYTU3NS00ZDVlLWE0MGUtMzE3ZDQwYTNiNTRlIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZ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DnKw8Kwgwd3UTCdvjsj8YAPGO-a3At90MJMKj-drGmvfeAcrlFyrg-7cNgdz05s688AOPmCV16yRm8r6OuMFlpX6aWt2rzkP4g' \
--header 'Content-Type: application/json' \
--data '{ 
    "scope": [
        "abha-enrol"
    ],
    "loginHint": "aadhaar",
    "loginId": "k8MLTcaF21My3LpAAlOcn/kHxfTN3b8tt/7CWCe8vFnY7ksxWSHcE5FfyDELjrQvR9MCy7dyu/2p6jSfbfiHG5zkpmo9Ky493EtN/zjfhFvUp3s9froo+UIqtDOATBNV45ld+zReZnNh3OjymRxo4Aah1+H04LA81u/5Q9ryPB951bxZohu44sSiRBrTFddkOvuWfOXkMdS5ktO12YDUwn1ZwSccLr+cJEAAKevsz26x1/bs68F+YDyWj22KSKcjHHTE/jYFvlN/7U3N1KR9T5Brl3nT9R4s9SF2UqXNK9sgZB4/SR1YSAS4OpLRBrwII2Z9tlv+OuPXFNKUQuPSJmeDmb4s73KkU7YgNNJn5L3hg3huD+w3lolqipSbwvDPOByNyxK98VClSI+pByRCvpvkhgXBHMS7pyEdhCEG3BzshNPWvHw+KirpMZL+vF5PdL7eEDJ2rVIpsrokxLd6KYO8LpayYJBdKBWI4ZdIDmGSAqp7EtkKtzNnjmkBoZUkVjJ39Xi07dq1qsIAVGt/RsTqi51AHnhxjlOMJNOrmE5zggo03+qVJuyde/FEa6J4wqwkTdk3KjP11GwpZHP9QXYq9h0xaU1kP6QYNeM3IoN48e2v8HEqejL0R7taLkTFfJuxcx9U2hbcxlugKcJUz61PdAaWdyStvvXJQsUFdpM=",
    "otpSystem": "aadhaar"
} '

The response got was

{
    "code": "900908",
    "message": "Resource forbidden ",
    "description": "User is NOT authorized to access the Resource. API Subscription validation failed."
}

@viewzen you need to take access to use V3 API. Provide your client ID

This is our clientId

@IntegrationSupport

@IntegrationSupport Please help with this

@viewzen the role has been provided, kindly check.

Thanks

“code”: “900908”,

    "description": "User is NOT authorized to access the Resource. API Subscription validation failed.",

    "message": "Resource forbidden "

@IntegrationSupport
@Ramandeep24
clientId=SBX_002539
need access pls for V3 APIs

@deeptomar93 We have initiated for the access for V3.

great
thanks
also need to understand whether do we have v3 api for downloading png card or pdf for abha card

@deeptomar93 request you to go through this link - https://sandbox.abdm.gov.in/abdm-docs/ABDM_M3_V1

Hello @integrationsupport

Requesting you to provide access to v3 Apis for our client id SBX_004566.
We are getting this error while calling the below API. 

https://abhasbx.abdm.gov.in/abha/api/v3/enrollment/request/otp

{
"code": "900908",
"message": "Resource forbidden ",
"description": "User is NOT authorized to access the Resource. API Subscription validation failed."
}