Authentication

Exchange for Access Token

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).

post/oauth/token

Request

  • Base URL: https://api.pre.transactiondesk.com
  • URL: https://api.pre.transactiondesk.com/oauth/token
  • Auth: none required

Query parameters

grant_type'authorization_code' | 'client_credentials' required

The OAuth 2.0 grant type

client_idstring required

Client ID provided by Lonewolf

client_secretstring required

Client Secret provided by Lonewolf

codestring

Authorization code received in the redirect (authorization_code flow only). One-time use, expires in 10 minutes.

redirect_uristring

Redirect URI registered with Lonewolf (authorization_code flow only). Must match the URI used in the authorization request.

Response

Access token issued successfully

access_tokenstring

The signed bearer token to use in Authorization headers for subsequent API requests

token_typestring

Token type (always 'bearer')

Example response

{
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
  "token_type": "bearer"
}

Changes

No recorded changes to this operation across all 1 revision of this API.