Skip to main content
Refresh an expired access token using a valid refresh token. Use this endpoint when your access token has expired (after 1 hour) to get a new access token without requiring the user to re-authenticate.
curl -X POST "https://api.chanl.ai/api/v1/auth/refresh" \
  -H "Content-Type: application/json" \
  -d '{
    "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
  }'
{
  "success": true,
  "data": {
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "expires_in": 3600,
    "token_type": "Bearer"
  }
}