Skip to content
Support

Authentication and apps

Create an app and get access.

Print this section · every page on one document

Articles

Tutorials

Reference

Troubleshooting

Questions about authentication and apps

  • How long does an access token last?

    One hour. The token response says "expires_in": 3600.

    Cache the token and reuse it until shortly before it expires: there's no refresh token, so ask for a new one the same way as the first. Don't fetch one per request, because the token endpoint is rate limited.

    A token can stop earlier: revoking or suspending the app deletes its tokens. Its scopes are fixed when it's issued, so request a new token to pick up a scope you've added. On a 401, get a fresh token and retry once.

    See Get and use an access token and 401 and 403 errors.

    Open “How long does an access token last?” on its own page