Skip to main content
The First Step
August 14, 2024
Question

Getting CMN-408 error while requesting token using Production credentials Got token from sandbox, but SMS Failed

I am using production credintials to get Basic token in order to send sms
{
    "error": "invalid_client",
    "errors": [
        {
            "errorCode": "CMN-408",
            "message": "In order to call this API endpoint, one of the following permissions [ThirdPartyAppAccess] have to be granted to the authorized user.",
            "parameters": [
                {
                    "parameterName": "permissionsName",
                    "parameterValue": "ThirdPartyAppAccess"
                }
            ]
        }
    ],
    "error_description": "In order to call this API endpoint, one of the following permissions [ThirdPartyAppAccess] have to be granted to the authorized user."
}

 

The user whose JWT token is used for getting access token has Developer Admin role. In my understanding it should have "ThirdPartyAppAccess" permission.

Why I cannot get access token using production credentials for my app & user? Is that because my user belong to free account?

Best,

Anna

    6 replies

    PhongVu
    Community Manager
    Community Manager
    August 14, 2024

    Can you clarify a few things?

    • “Production credentials”, do you mean the app client id and client secret for production? Or do you mean the JWT token for production?
    • What is the server url do you use for the production? platform.ringcentral.com or platform.devtest.ringcentral.com?
    • Does the user who owns the JWT token is a user under your production account?
    The First Step
    August 20, 2024

    I am utilizing a JWT token for production to send SMS messages through the RingCentral API, using the URL "platform.ringcentral.com." also user who owns the JWT token is user under the production account.

    then Why I cannot get access token for production for my app
     

    Best,

    Anna

    PhongVu
    Community Manager
    Community Manager
    August 20, 2024

    I am utilizing a JWT token for production to send SMS messages through the RingCentral API, using the URL "platform.ringcentral.com." also user who owns the JWT token is user under the production account.

    then Why I cannot get access token for production for my app
     

    Best,

    Anna

     

    I asked you about the app client id and app client secret too and you did not tell me if you checked and verified that they are the ones for production too.

    I think you should submit a dev support ticket.

    The First Step
    August 21, 2024

    Okay The things are 

    • Production Credentials are 
      Client id :- 5TMwSiOs0C7fa0LBpi9SWJ
      Client secret :-
      I need the JWT token for production , currently i have this JWT token :-

      but not getting any responses, it is showing me error :- 
      {
          "error": "invalid_client",
          "errors": [
              {
                  "errorCode": "CMN-408",
                  "message": "In order to call this API endpoint, one of the following permissions [ThirdPartyAppAccess] have to be granted to the authorized user.",
                  "parameters": [
                      {
                          "parameterName": "permissionsName",
                          "parameterValue": "ThirdPartyAppAccess"
                      }
                  ]
              }
          ],
          "error_description": "In order to call this API endpoint, one of the following permissions [ThirdPartyAppAccess] have to be granted to the authorized user."
      }
       
    • I am using this server url for production :- https://platform.ringcentral.com
       
    • I created the JWT from Ringcentral developer :- https://developers.ringcentral.com/console/my-credentials
      Yes my account is under production account
    PhongVu
    Community Manager
    Community Manager
    August 21, 2024

    Okay The things are 

    • Production Credentials are 
      Client id :- 5TMwSiOs0C7fa0LBpi9SWJ
      Client secret :-
      I need the JWT token for production , currently i have this JWT token :-

      but not getting any responses, it is showing me error :- 
      {
          "error": "invalid_client",
          "errors": [
              {
                  "errorCode": "CMN-408",
                  "message": "In order to call this API endpoint, one of the following permissions [ThirdPartyAppAccess] have to be granted to the authorized user.",
                  "parameters": [
                      {
                          "parameterName": "permissionsName",
                          "parameterValue": "ThirdPartyAppAccess"
                      }
                  ]
              }
          ],
          "error_description": "In order to call this API endpoint, one of the following permissions [ThirdPartyAppAccess] have to be granted to the authorized user."
      }
       
    • I am using this server url for production :- https://platform.ringcentral.com
       
    • I created the JWT from Ringcentral developer :- https://developers.ringcentral.com/console/my-credentials
      Yes my account is under production account

    I never asked you to post those sensitive credentials in a public forum. I asked you to check and verify them. I had to edit and delete them here.

    Don’t ever share any sensitive info in public forum!

    PhongVu
    Community Manager
    Community Manager
    August 21, 2024

    Using the app client id I can find you account and your user setting. Your role in the production account is “developer” and you don’t have the permission to access the API platform.

    1. You have to ask the account admin (IT) to change your role which would at least include the “ThirdPartyAppAccess”
    2. You can ask account admin user to generate a JWT token and share the token with you to access the platform. I see “Joel Eichler” is one of the admin who has generated a JWT token for all apps under the account.