---
title: "Exchange for Access Token"
method: POST
path: "/oauth/token"
tags: ["Authentication"]
---

# Exchange for Access Token

`POST /oauth/token`

## Request

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

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

- `grant_type` 'authorization_code' | 'client_credentials', required
- `client_id` string, required
- `client_secret` string, required
- `code` string
- `redirect_uri` string

## Response `200`

Access token issued successfully

- object
  - `access_token` string: The signed bearer token to use in Authorization headers for subsequent API requests
  - `token_type` string: Token type (always 'bearer')

---

[API](https://skmtc.dev/lwolf/apis/transactiondesk-partner-api.md) · [All operations](https://skmtc.dev/lwolf/apis/transactiondesk-partner-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lwolf/apis/transactiondesk-partner-api/revisions/9bb49674e238?raw)
