Exchanges an authorization code or client credentials for a bearer access token. Parameters must be passed as query parameters in the URL.
Use grant_type=authorization_code along with the code and redirect_uri from the Authorization Code flow.
Use grant_type=client_credentials for server-to-server integrations (no user redirect required).
Query parameters
-
The OAuth 2.0 grant type
Values are
authorization_codeorclient_credentials. -
Client ID provided by Lonewolf
-
Client Secret provided by Lonewolf
-
Authorization code received in the redirect (authorization_code flow only). One-time use, expires in 10 minutes.
-
Redirect URI registered with Lonewolf (authorization_code flow only). Must match the URI used in the authorization request.
POST
/oauth/token
curl \
--request POST 'https://api.pre.transactiondesk.com/oauth/token?grant_type=authorization_code&client_id=Lonewolf&client_secret=LonewolfSecret'
Response examples (200)
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
"token_type": "bearer"
}