Authorization
Authentication APIs
APIs for client authentication and token management
Overview
Flabs authentication APIs allow you to securely authenticate clients and manage tokens for API access.
Generate Token
Get auth tokens using client credentials
Refresh Token
Refresh your auth token when it expires
Authentication Flow
Our authentication system uses a two-token approach:
- Auth Token: Valid for 10 minutes, used for API requests
- Refresh Token: Expires after 30 days of inactivity; used to obtain new authentication tokens.
All authentication tokens should be included in the Authorization header using the Bearer scheme.
Getting Started
To integrate with our authentication system:
- Obtain client credentials (Client ID and Client Secret)
- Generate an initial auth token using the token endpoint
- Store both tokens securely
- When the auth token expires, use the refresh endpoint to get the auth token again with logging again.