1. Data integration
  2. Anaplan API Guide and Reference
  3. Use the bulk APIs
  4. Perform an export action
  5. Get the list of export files

This gets a list of both the import and export files for a model. You can identify a file by its metadata and ID. Run this call to obtain the file ID you need for subsequent calls.

Method and endpoint

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

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}/files \ -H 'Authorization: AnaplanAuthToken:{token}'

Response

{

   "meta":{

      "paging":{

         "currentPageSize":23,

         "offset":0,

         "totalSize":23

      },

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

   },

   "status":{

      "code":200,

      "message":"Success"

   },

   "files":[

      {

         "id":"113000000000",

         "name":"Organization.txt",

         "chunkCount":0,

         "delimiter":"\"",

         "encoding":"ISO-8859-1",

         "firstDataRow":2,

         "format":"txt",

         "headerRow":1,

         "separator":"\t"

      },

      {

         "id":"113000000001",

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

         "chunkCount":0,

         "delimiter":"\"",

         "encoding":"ISO-8859-1",

         "firstDataRow":2,

         "format":"txt",

         "headerRow":1,

         "separator":"\t"

      }

   ]

}