π Authentication
Token-Based Authentication
Authentication Flow
Your App Adaptria API
β β
β POST /api/credentials/token
β {clientId, clientSecret}
β βββββββββββββββββββΆβ
β β
β {accessToken, expiresIn}
β ββββββββββββββββββββ
β β
β GET /api/public/v1/rfqs β
β Authorization: Bearer <token>
β βββββββββββββββββββΆβ
β β
β {data: [...]} β
β ββββββββββββββββββββUsing Authentication
Header
Value
Authentication Entry Point
Prerequisites
Authentication Flow
βββββββββββββββββββ POST /api/credentials/token βββββββββββββββββββ
β Your System β ββββββββββββββββββββββββββββββββββΆ β Adaptria API β
β β { clientId, clientSecret } β β
β β ββββββββββββββββββββββββββββββββββ β β
βββββββββββββββββββ { accessToken, expiresIn } βββββββββββββββββββ
β
β Use accessToken in Authorization header
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β All other API calls: Authorization: Bearer <accessToken> β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββToken Lifecycle
Security Best Practices
Authorizations
AuthorizationstringRequired
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:
Authorization: Bearer <token>
Token Expiration: 1 hour (3600 seconds)
Body
clientIdstring Β· min: 1RequiredExample:
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_abc123def456clientSecretstring Β· min: 1RequiredExample:
Your 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_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxResponses
200
Token generated successfully
application/json
400
Missing required fields
401
Invalid or expired credentials
application/json
post
/api/credentials/tokenLast updated