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

Use your Certificate Authority (CA) certificate to run a POST call that returns the Anaplan authentication token.

Method and endpoint

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

POST

Parameters

ParameterDescription
CA certificateThe CA certificate you have registered with Anaplan.
sizeThe certificate itself cannot exceed 16K bytes.
encoded dataA base-64 encoded, randomly-generated string of at least 100 bytes.
encoded signed dataYour encoded data signed by your private key and base-64 encoded.

Curl example

curl -X POST https://auth.anaplan.com/token/authenticate -H 'Authorization: CACertificate {certificate key}' -d '{ "encodedData" : "{encoded data}",  "encodedSignedData" : "{encoded signed data}"} '

Response

{

   "meta":{

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

   },

   "status":"SUCCESS",

   "statusMessage":"Login successful",

   "tokenInfo":{

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

      "tokenValue":"{token}",

      "expiresAt":1571088565713,

      "refreshTokenId":"ce81e2ee-eec4-11e9-9750-adef4e60446f"

   }

}