I’m guessing you’re asking for a token that never expires: expires=never? So long as your query parameters don’t change (scope, name, expiration is never), you will always get back the same token. This token can be deleted via a DELETE API request to /1/tokens/ or by revoking it manually in your user settings https://trello.com/my/account.
We use the parameters in the signature to generate the token and since they aren’t changing, you’re getting back the same token. If you were to change the name or scope parameters, you’d get back a different token.
For expiration values other than never, you will not get back the same token each time. Each token generated effectively stores an expires at value with it. And since your scope is some set time, the expires at value is going to be different every time and result in a different token being generated.
If you want multiple tokens for the same user that never expire, you could change the name parameter. And yes, with a token that never expires you do not have to refresh the token.
No, we don’t currently support scopes related to Trello objects. The only scopes we support are related to whether the token can read and/or write data, and whether the token has access to your Trello’s account information.
Okay thats helpful to know that a token can read/write or only read. In my case it must only read.
Now, when i create a token here (As I did) https://trello.com/app-key
I can’t change set it to read only, or set an application name right?
So this leads me to think I must send a get request, something like: https://trello.com/1/authorize?key=substitutewithyourapplicationkey&name=My+Application&expiration=never&response_type=token&scope=read