Authentication
Exchange Auth Code
Exchanges a temporary authorization code for a permanent access token. See the Getting Started guide for more details.
POST
/
link
/
exchange
Header
Body
curl --request POST \
--url https://production.trackstarhq.com/link/exchange \
--header 'Content-Type: application/json' \
--header 'x-trackstar-api-key: <x-trackstar-api-key>' \
--data '{
"auth_code": "auth_code"
}'
{
"access_token": "your_permanent_access_token",
"connection_id": "unique_connection_id",
"integration_name": "shipbob"
}
Headers
x-trackstar-api-key
string
requiredYour organization-level Trackstar API key.
Body
application/json
auth_code
string
requiredThe authorization code returned from the frontend after a user installs an integration.
Response
200 - application/json
access_token
string
requiredThe permanent access token for the integration used to make requests to the Trackstar API.
connection_id
string
requiredA unique connection ID for the integration.
integration_name
string
requiredThe name of the integration that was installed.
curl --request POST \
--url https://production.trackstarhq.com/link/exchange \
--header 'Content-Type: application/json' \
--header 'x-trackstar-api-key: <x-trackstar-api-key>' \
--data '{
"auth_code": "auth_code"
}'
{
"access_token": "your_permanent_access_token",
"connection_id": "unique_connection_id",
"integration_name": "shipbob"
}