Hello,
I have created two apps in my Upstox account.
Can I generate two access_token (one per app) for these apps or will there be only one access_token active against my upstox account at any given point of time (irrespective of how many apps I have in my account)?
My usecase: I have two apps - one and Java and another one in Python, which run on two different machines.
Note: my question is purely from upstox API usage perspective and not website of mobile app.
Each app you develop requires a unique access token generation. An access token generated for one app will not function for another. Additionally, itâs crucial to remember that these access tokens are valid for only one day. For further details, you can refer to the Upstox API documentation on generating tokens.
Itâs important to note that only one access_token is permissible for each apiKey and User combination. In the case of an Indie app, this means you are confined to a single access_token per apiKey, as it is bound to the user who initiated the app.
If your requirements include running multiple instances of the app, consider generating extra apiKeyâs via the developer portal. By doing so, you can operate distinct sessions for each apiKey, even with the same userId.
Please be aware that an individual user is allowed to create a maximum of two apps.
Thanks for the prompt response. My setup is shown in the screenshot below.
There are two different API keys for each app - âsnifferâ and 'non-prod. As per your response, I should have two acess_tokens valid at any point - one for app sniffer and one for app non-prod. But this is not happeneing. Please do let me know if there is a gap in my understanding.