π Authentication
Token-Based Authentication
Authentication Flow
Your App Adaptria API
β β
β POST /api/credentials/token
β {clientId, clientSecret}
β βββββββββββββββββββΆβ
β β
β {accessToken, expiresIn}
β ββββββββββββββββββββ
β β
β GET /api/public/v1/rfqs β
β Authorisation: Bearer <token>
β βββββββββββββββββββΆβ
β β
β {data: [...]} β
β ββββββββββββββββββββUsing Authentication
Authentication Entry Point
Prerequisites
Authentication Flow
βββββββββββββββββββ POST /api/credentials/token βββββββββββββββββββ
β Your System β ββββββββββββββββββββββββββββββββββΆ β Adaptria API β
β β { clientId, clientSecret } β β
β β ββββββββββββββββββββββββββββββββββ β β
βββββββββββββββββββ { accessToken, expiresIn } βββββββββββββββββββ
β
β Use accessToken in Authorisation header
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β All other API calls: Authorisation: Bearer <accessToken> β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββToken Lifecycle
Security Best Practices
Authorisation Header Required
JWT access token obtained from POST /api/credentials/token
How to authenticate:
- Generate API credentials from the Adaptria Portal
- Exchange credentials for a token:
POST /api/credentials/token - Include the token in all requests using the
Authorisationheader:Authorisation: Bearer <token>
Important: Use Authorisation (British English spelling with 's'), not Authorisation (American spelling with 'z').
Token Expiration: 1 hour (3600 seconds)
Your unique client identifier provided when API credentials were generated.
This ID uniquely identifies your application and is used together with the client secret to authenticate API requests.
Format: adaptria_<timestamp>_<random>
adaptria_1733836800000_abc123def456Your confidential client secret provided when API credentials were generated.
β οΈ Security Warning: Keep this secret secure! Never expose it in client-side code, public repositories, or logs.
Best Practices:
- Store in environment variables or secure vaults
- Rotate periodically
- Never commit to version control
sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxToken generated successfully
Missing required fields
Invalid or expired credentials
Last updated