In order to use the v2 Integration API, you must refresh your authentication (auth) token every 35 minutes. You can send a POST call to refresh your auth token.

If you get a new auth token for every call, your request might fail. Our system works better for API calls if you use a single token for each 35 minute session.

POST

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

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

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

{

   "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"

   }

}