1. Data integration
  2. Anaplan API Guide and Reference
  3. Use the bulk APIs
  4. Obtain an authentication token
  5. Refresh your auth token

You must refresh your authentication token every 35 minutes of your session.

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"

   }

}