faileon
faileon•10mo ago

Get tokens by users

Hi all, is it possible to get the token usage of my users via the typescript SDK or http API inside my app?
7 Replies
Max
Max•10mo ago
Hi, yes we have an (so far undocumented) endpoint to fetch tokens by users. GET api/public/users returns to you the tokens by user by day. Does that help you?
faileon
faileon•10mo ago
Ill check it out when I get to PC and let you know, cheers
Max
Max•10mo ago
Sure, let me know if that works for you 🙂
faileon
faileon•10mo ago
Hi, just got my hands on it, I think I can work with that for now. Eventually I would love to see an endpoint to get tokens for specific user in a given timeframe (start,end). I guess that is not possible for now?
Max
Max•10mo ago
Not possible now but something we can take up once this becomes neccessary 🙂
faileon
faileon•10mo ago
Cool, thanks. Would you accept a PR if I went ahead and implemented it? :] or is that out of scope currently?
Max
Max•10mo ago
Awesome