Monday.get sdk outside of monday environment

Hello,

I have an app that is outside of the monday.com environment (not a dashboard/app view)
I am trying to use the “monday.get” sdk to get the session token or the context, but for some reason, the data is not showing up:

  const sessionToken = await monday.get("sessionToken");
   const context = await monday.get('context')

The results are:

{
    "method": "get",
    "args": {
        "type": "sessionToken"
    },
    "requestId": "u8dznyh",
    "version": "0.4.1"
}

{
    "method": "get",
    "args": {
        "type": "context"
    },
    "requestId": "fx9mzqd",
    "version": "0.4.1"
}

As you can see, I am not receiving the actual data back.
What can be the reason for it?

Thank you

this is not supported. The only method that works outside of a monday.com environment is monday.api (I believe).

I am assuming you are looking at creating an integration app? In that case a JWT is sent to your webhook in the authorization header, which allows you to make API calls.

See this link for a bit more detail: Authorization for integration recipes

1 Like

Hi,

I am creating a web app, with client side, just not on monday enviroment.
For example, I am trying to use monday.get(‘context’) to get the res.data.appVersion.versionData.major, so I can check the current major version.

Hello @Roy,

It is not clear to me what you are trying to achieve.

Are you saying this is not a monday app? If it is not a monday app what app version would you try to get?

Am I missing something?

If you have a monday app, what features does your app have?

Looking forward to hearing from you!

Cheers,
Matias

1 Like