Use the Anaplan account user name and password to run a POST call to return an Anaplan authentication 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.
Method and endpoint
https://auth.anaplan.com/token/authenticate
Parameters
Parameter | Description |
user:password | The Anaplan user name and password |
Curl example
curl -X POST --user {user}:'{password}' https://auth.anaplan.com/token/authenticate
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"
}
}