1. Data integration
  2. Anaplan API
  3. Integration API v2.0
  4. Use the bulk APIs
  5. Obtain an authentication token
  6. Refresh your authentication token

In order to use the v2 Integration API, you must refresh your authentication token every 35 minutes.

You can send a POST call to the authentication API to refresh your authentication token.

Method and endpoint

https://auth.anaplan.com/token/refresh

POST

Parameters

ParameterDescription
AnaplanAuthToken:{token}Your Anaplan authentication token value.

Curl example

curl -X POST -H authorization:'AnaplanAuthToken {token}' https://auth.anaplan.com/token/refresh

Response

{

   "meta":{

      "validationUrl":"https://auth.anaplan.com/token/validate"

   },

   "status":"SUCCESS",

   "statusMessage":"Token refreshed",

   "tokenInfo":{

      "tokenId":"ce81e2ed-eec4-11e9-9750-6925ec1fee7f",

      "tokenValue":"{token}",

      "expiresAt":1571088766187,

      "refreshTokenId":"45ffca7c-eec5-11e9-a51d-1bd448913ef3"

   }

}

Disclaimer

We may update our documentation occasionally, but will only do so in a way that does not negatively affect the features and functionality of the Anaplan service.