POST
/
link
/
token
curl --request POST \
  --url https://production.trackstarhq.com/link/token \
  --header 'Content-Type: application/json' \
  --header 'x-trackstar-api-key: <x-trackstar-api-key>' \
  --data '{
  "connection_id": "existing_connection_id"
}'
{
  "link_token": "your_link_token"
}

Headers

x-trackstar-api-key
string
required

Your organization-level Trackstar API key.

Example:

"<x-trackstar-api-key>"

Body

application/json
connection_id
string

An optional existing connection ID. If provided, the connection is reinstalled instead of a new connection being created.

Example:

"existing_connection_id"

Response

200
application/json
Successful response

The link token that is required to initiate the react-trackstar-link component.

Example:

"your_link_token"