About the Auth API
Secure, standards-based tokens for every 52ViKING system.
The 52VIKING AuthAPI provides authentication and token management for all 52ViKING systems and applications. All 52 Cloud API requests require authentication through it.
Base URL: https://auth.fiftytwo.com
Two methods
Token lifetimes
Both are JWTs carrying an exp claim (a Unix timestamp), so you can read the
exact expiry locally. Decode it rather than waiting for a 401.
In most cases a single access token covers all of a day’s integration traffic.
Workflow
Best practices
Do not call /v1/user for each request. Sign-ins are rate limited to 15 per
60 seconds and will return 429 Too Many Requests. Cache the access token.
- Use the AT for all API calls; refresh only on
401. - Both tokens sent to
/v1/refreshmust belong to the same user session. - A
401can also mean insufficient privileges. If a refresh succeeds but the call still fails, check the account’s permissions instead of retrying.