cURL
curl --request GET \ --url https://api.usecobalt.com/v1/link/token/exchange \ --header 'client_id: <api-key>' \ --header 'client_secret: <api-key>'
{ "success": true, "token": "<string>" }
Exchange a public token for an access token.
public_token
access_token
curl -X GET https://api.usecobalt.com/v1/link/token/exchange \ -H 'Content-Type: application/json' \ -H 'client_id: ci_live_198908HJDKJSH98789OHKJL' \ -H 'client_secret: cs_live_9827hofdsklOYYHJLJh' \ -G \ --data-urlencode "public_token=pt_198908HJDKJSH98789OHKJL"
{ "success": true, "token": "493JKLHIU98789hLKH9HHJH" }
The public token to exchange
Successful response
The response is of type object.
object