How long is a RefreshToken valid?


I’m writing a background worker that interacts with webhooks and the api. I wrote a cyclic process checking every 20 hours if a token is still valid, and gets a new one using the refresh token. Sometimes, the whole worker has nothing to do for days, and I’m wondering if I could also reduce this automatic refresh process - and just refresh a token when I really need it.

So my question: how long is a refresh token valid? Or does it not have any expiration?

Best regards,

Access Tokens expire after 24 hours, Refresh Tokens are valid for six months. You’d be fine just letting it run once a month or so.

1 Like


Last I knew, refresh tokens were good for 90 days. Has that changed? It would be a good thing to know :stuck_out_tongue_winking_eye:


I believe it has been set to a six month expiration period for a while now, but I would have to check with @bradb to see when it was last updated.

Refresh tokens are 180 days. I am not sure when we changed those, but it was awhile ago.