Making API usable with stored tokens