Authentication and apps
Create an app and get access.
Print this section · every page on one document
Articles
Tutorials
Reference
Troubleshooting
- 401 and 403 errorsA 401 means the token is missing, expired or revoked. A 403 means the token is fine but lacks a scope, or the business or app can't use the API right now.
- My token request fails with invalid_clientA 401 invalid_client means Skeduler couldn't match the client id and secret to an active app. Check the credentials, how you send them, and the app's status.
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