POST
/
token
/
exchange
curl --request POST \
  --url https://api.axle.insure/token/exchange \
  --header 'Content-Type: application/json' \
  --header 'x-client-id: <x-client-id>' \
  --header 'x-client-secret: <api-key>' \
  --data '{
  "authCode": "<string>"
}'
{
  "success": true,
  "data": {
    "accessToken": "<string>",
    "account": "<string>",
    "policies": [
      "<string>"
    ]
  }
}

Authorizations

x-client-secret
string
headerrequired

Your secret API key. This will be shared with you during onboarding and should be considered sensitive - it’s a password after all! Your secret will be matched with your client ID to authenticate your requests.

Headers

x-client-id
string
required

Your client ID. This will be shared with you during onboarding.

x-destination-client-id
string

The client ID of the destination client. This is optional and only used by platform clients. See the Axle for Platforms guide for more information.

Body

application/json
authCode
string
required

The authorization code obtained after a user successfully links their account via Ignition. Returned as a query parameter at the redirectUri.

Response

200 - application/json
success
boolean
required

Indicates whether the operation was performed successfully.

data
object
required