Added user token detection to know if it iss an API call