question

John Cherian avatar image
John Cherian asked Phong Vu answered

Resource for parameter [messageId] is not found

I am encountering an error while using JWTToken-based authentication. The error message states, "Resource for parameter [messageId] is not found," even though the messageId exists. We are performing these operations in the sandbox environment to ensure the application's readiness for graduation.


Here is the relevant code snippet:


static String CLIENT_ID = "XXXXX";

static String CLIENT_SECRET = "XXXXX";

static String JWT_TOKEN = "XXXXXXXXXXXXXXX";


restClient = new RestClient(CLIENT_ID, CLIENT_SECRET, SERVER_URL);

await restClient.Authorize(JWT_TOKEN);

var messageid = "13334139004";

var resp = await restClient.Restapi().Account().Extension().MessageStore(messageid).Get();



message
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered

How do you know that the message id ("13334139004" is valid?

If it's a valid id, it could be that the message does not belong to the currently authenticated user extension. In that case, double check if the JWT token is generated for a super admin user or not.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys