Link
Exchange Public Token for Access Token
Link
Exchange Public Token for Access Token
Exchanges the public token for an access token used to interact with the account. Store the access token in a secure location.
curl --request POST \
--url https://app.vessel.dev/link/exchange \
--header 'vessel-api-token: <vessel-api-token>' \
--header 'x-vessel-api-token: <x-vessel-api-token>' \
--data '{
"publicToken": "<publictoken>"
}'
curl --request POST \
--url https://api.vessel.land/link/exchange \
--header 'Content-Type: application/json' \
--header 'vessel-api-token: ' \
--data '{
"publicToken": "string"
}'
{
"connectionId": "string",
"accessToken": "string",
"integrationId": "string",
"nativeOrgId": "string",
"nativeUserId": "string"
}
Authorizations
vessel-api-token[header]required
string
Body
publicTokenrequired
string
Response
accessTokenrequired
string
connectionIdrequired
string
integrationIdrequired
string
Available options:
salesforce
, hubspot
, pipedrive
, zoho
, apollo
, salesloft
, outreach
nativeOrgIdrequired
string
nativeOrgURLrequired
string
nativeUserIdrequired
string
curl --request POST \
--url https://api.vessel.land/link/exchange \
--header 'Content-Type: application/json' \
--header 'vessel-api-token: ' \
--data '{
"publicToken": "string"
}'
{
"connectionId": "string",
"accessToken": "string",
"integrationId": "string",
"nativeOrgId": "string",
"nativeUserId": "string"
}