curl https://api.thanxsandbox.com/oauth/token \ -X POST \ -H "Content-Type: application/json" \ -d '{ "grant_type": "authorization_code", "client_id": "${client_id}", "client_secret": "${client_secret}", "code": "${code}", "redirect_uri": "https://www.example.com/oauth/callback" }'
{ "token_type": "Bearer", "scope": "passwordless", "created_at": 1577836800, "access_token": "945148251b603ae34561d90acfe4050e67494d6d1e65d4d3d52798407f03c0bd", "refresh_token": "c74334301a7c74d21b714c905fd3047177dab56de6a86899e6f6b7f71bab7d55" }
Use this endpoint to acquire a user’s access token.
client_id
client_secret
refresh_token
grant_type