Access Token Request (v1 ➞ v2)
✨ Why Migrate?
Improved Security: V2 uses Basic Authentication with base64 encoding.
Standards Compliance: V2 uses
application/x-www-form-urlencoded
, aligning with OAuth 2.0.Detailed Response: Includes
token_type
,expires_in
, and other standard fields.
↺ What Changed?
Feature
API v1
API v2
Endpoint
/api/v1/Token
/api/v2/token
HTTP Method
POST
POST
Authorization Header
Bearer <access_token>
Basic base64(client_id:client_secret)
Content-Type
application/json
application/x-www-form-urlencoded
Body Format
JSON
Form-Encoded
Response Format
{ authToken, refreshToken }
{ access_token, refresh_token, token_type, expires_in }
📁 Migration Steps
✅ Before (API v1)
✅ After (API v2)
🔄 Response Comparison
❌ v1 Response
✅ v2 Response
🔀 What Remains the Same
You still use
authorization_code
as thegrant_type
.You still provide
client_id
,client_secret
, andcode
.
Last updated
Was this helpful?