I created a console application to test the API token behavior, how it works with multiple users and API limits. The console app does the following:
- Calls the token endpoint by passing username/password.
- It receives the token and does a GET appointment 50 records API call.
- There is 20 second wait
- Because our license has Max 20 API users limit, I am running the above steps for 22 users to verify the behavior. It run synchronously for one user after another, not in parallel.
Observations:
- Sometimes I get the 200 status and Response “<script>window.open("/Main","_top");</script>” in Appointment Get call
- In the screen System Monitor → Active Users, I notice it always maintains 20 users list. It removes the oldest active user from the list. But still I can use the token of the user which is not in the Active User list anymore and make API calls.
Questions:
- What is the reason for the error “<script>window.open("/Main","_top");</script>” ?
- I have a use case to build app where around 30 users will need to make REST API calls in parallel. Because I am able to use the token of users not present in the “Active Users” screen, Can I use any number of API users using token endpoint until the token expires or do you think I will face the API limit? If I will face API limit issue, what issue would it be?
