Tokens
Exchange Token
Tokens
Exchange Token
Exchange an authorization code for an access token. Ignition returns an authCode as a query parameter at the redirectUrl upon successful completion of the Ignition flow.
Auth codes are ephemeral and expire after 10 minutes, while accessTokens do not expire.
POST
/token/exchange
x-client-id*
x-client-secret*
curl --request POST \
--url https://api.axle.insure/token/exchange \
--header 'x-client-id: <x-client-id>' \
--header 'x-client-secret: <x-client-secret>' \
--data '{
"authCode": "<authcode>"
}'
Headers
x-client-idrequired
string
Your client ID. This will be shared with you during onboarding.
x-client-secretrequired
string
Your secret API key. This will be shared with you during onboarding and should be considered sensitive - it’s a password after all!
Body
authCoderequired
string
The authorization code obtained after a user successfully links their account via Ignition. Returned as a query parameter at the redirectUri.
Response
datarequired
object
successrequired
boolean
Indicates whether the operation was performed successfully.
curl --request POST \
--url https://api.axle.insure/token/exchange \
--header 'x-client-id: <x-client-id>' \
--header 'x-client-secret: <x-client-secret>' \
--data '{
"authCode": "<authcode>"
}'