---
title: "POST /auth/token"
method: POST
path: "/auth/token"
---

# POST /auth/token

`POST /auth/token`

## Request

- Base URL: `https://api.trychart.com`
- URL: `https://api.trychart.com/auth/token`
- Auth: none required

Exchange authorization code for access token.

## Headers

- `x-chart-async` 'true'

## Request body

- object
  - `client_id` string, required
  - `client_secret` string, required
  - `code` string, required
  - `redirect_uri` string: redirect_uri is optional for the embedded SDK flow.

## Response `200`

Token Response

- object
  - `taxpayer_id` string
  - `provider_id` 'turbotax' | 'hr' | 'taxact' | 'tax_slayer' | 'jackson' | 'free_tax_usa' | 'irs' | 'irs_tax_pro' | 'pilot' | 'cch_axcess' | 'drake' | 'proconnect' | 'chart-sandbox'
  - `access_token` string

## Other responses

- `400`: Invalid Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/trychart/apis/chart-api.md) - [All operations](https://skmtc.dev/trychart/apis/chart-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trychart/apis/chart-api/revisions/fac67e8a1281?raw)
