1. Data integration
  2. Anaplan API Guide and Reference
  3. Use the bulk APIs
  4. Perform an import action
  5. Upload a text or CSV file
  6. Get a list of import actions

This call returns a list of import actions and their properties, such as the import ID. 

Before you can execute a specific import action, you need to know the ID of that particular import action.

Note that the import action must exist in Anaplan in order to have an ID.

Method and endpoint

https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/imports

GET

Parameters

ParameterDescription
AnaplanAuthToken:{token}Your Anaplan authentication token value.
workspaceIDThe workspace ID.
modelIDThe model ID.

Curl example

curl -X GET https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/imports \
-H 'Authorization: AnaplanAuthToken {token}' \
-H "Content-Type:application/json"

Response

{

   "meta":{

      "paging":{

         "currentPageSize":20,

         "offset":0,

         "totalSize":20

      },

      "schema":"https://api.anaplan.com/2/0/models/F1111111C11111111B11111F1111E11F/objects/import"

   },

   "status":{

      "code":200,

      "message":"Success"

   },

   "imports":[

      {

         "id":"112000000000",

         "name":"Organization from Organization.txt",

         "importDataSourceId":"113000000000",

         "importType":"HIERARCHY_DATA"

      },

      {

         "id":"112000000001",

         "name":"Sales Roll Up from Sales Roll Up.txt",

         "importDataSourceId":"113000000001",

         "importType":"HIERARCHY_DATA"

      },

      {

         "id":"112000000003",

         "name":"Products from Products.txt",

         "importDataSourceId":"113000000003",

         "importType":"HIERARCHY_DATA"

      }

   ]

}