Exchange for Access Token

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://apidocs.lwolf.com/doc/transactiondesk-api/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "TransactionDesk API MCP server": {
    "url": "https://apidocs.lwolf.com/doc/transactiondesk-api/mcp"
  }
}

Close
POST /oauth/token

Exchange an authorization code or client credentials for a bearer access token.

  • Use grant_type=authorization_code along with the code and redirect_uri from the Authorization Code flow.
  • Use grant_type=client_credentials for the Client Credentials flow (no user redirect required).
application/x-www-form-urlencoded

Body Required

  • grant_type string Required

    Values are authorization_code or client_credentials.

  • client_id string Required

    Client ID provided by Lonewolf

  • client_secret string Required

    Client Secret provided by Lonewolf

  • code string

    Authorization code from step 3 (authorization_code flow only). One-time use, expires in 10 minutes.

  • redirect_uri string

    Must match the redirect_uri used in step 1 (authorization_code flow only)

Responses

  • 200 application/json

    Access token issued successfully

    Hide response attributes Show response attributes object
    • access_token string
    • token_type string
POST /oauth/token
curl \
 --request POST 'https://api.pre.transactiondesk.com/oauth/token' \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'grant_type=authorization_code&client_id=Lonewolf&client_secret=LonewolfSecret&code=a29fc587-96f3-4fa2-a4ad-c42fef5141f7&redirect_uri=https%3A%2F%2Fwww.example.com'
Response examples (200)
{
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
  "token_type": "bearer"
}