POST
/
auth
/
token
cURL
curl --request POST \
  --url https://api.trychart.com/auth/token \
  --header 'Content-Type: application/json' \
  --data '{
  "client_id": "<string>",
  "client_secret": "<string>",
  "code": "<string>",
  "redirect_uri": "<string>"
}'
{
  "taxpayer_id": "<string>",
  "provider_id": "turbotax",
  "access_token": "<string>"
}
Exchange the authorization code for an access token

Headers

x-chart-async
enum<string>

When set to 'true', the API returns immediately after pulling documents from the provider without waiting for parsing to complete. You must wait for taxpayer_status to change to COMPLETED via webhooks before accessing parsed JSON data.

Available options:
true

Body

application/json
client_id
string
required
client_secret
string
required
code
string
required
redirect_uri
string

redirect_uri is optional for the embedded SDK flow.

Response

Token Response

taxpayer_id
string
provider_id
enum<string>
Available options:
turbotax,
hr,
taxact,
tax_slayer,
jackson,
free_tax_usa,
irs,
irs_tax_pro,
pilot,
cch_axcess,
drake,
proconnect,
chart-sandbox
access_token
string