Learn which data formats the API accepts or returns, including JSON, CSV, binary streams, metadata, list data, view data, and file content.

The Anaplan Integration API uses request headers, request body formats, and response formats to define how data is sent to and returned from the API.

Most API requests and responses use JSON. Some endpoints return CSV-formatted data, and file chunk endpoints use binary streams.

Each endpoint defines the request headers it supports. Use only the headers documented for the endpoint you are calling.

Common headers include:

HeaderDescription
Authorization: AnaplanAuthToken {anaplan_auth_token}Required for authenticated requests. Replace {anaplan_auth_token} with a valid Anaplan authentication token.
Content-Type: application/jsonIndicates that the request body is in JSON format. Use this for requests that send JSON data.
Content-Type: application/octet-streamIndicates that the request body is a binary stream. Use this for file chunk upload operations.
Accept: application/jsonIndicates that the preferred response format is JSON. Some endpoints require this header, while others treat it as optional.

Use Content-Type: application/json when the endpoint expects a JSON request body.

For example, when you initiate a large read request, the request body can specify the export layout:

{
 "exportType": "TABULAR_MULTI_COLUMN"
}

Supported export layout values include:

Export typeDescription
GRID_ALL_PAGESExports data in a grid layout and respects existing sorting and filtering applied to the data grid.
TABULAR_SINGLE_COLUMNExports all dimensions in columns, with the final column reserved for data.
TABULAR_MULTI_COLUMNExports data with multiple data columns.

These values define the layout of exported data. They are not HTTP media types.

Use Content-Type: application/octet-stream when uploading file chunks.

File chunk upload requests send the file content as a binary stream rather than as JSON.

Many API responses return Content-Type: application/json.

A typical JSON response can include:

Response elementDescription
metaMetadata about the response, such as the schema used for the returned object.
statusStatus information, including a response code and message.
Resource-specific dataThe returned object or collection, such as items, file, view metadata, pages, rows, columns, or other endpoint-specific data.

Example structure:

{
 "meta": {
   "schema": "https://api.anaplan.com/2/0/objects/view"
 },
 "status": {
   "code": 200,
   "message": "Success"
 },
 "items": []
}

Some view data endpoints can return data as a CSV grid response.

For cell data retrieved from a view:

  • The first line of the CSV response contains the values of the page selectors.
  • If there are no dimensions on pages, the response omits the page selector line.
  • When there are multiple dimensions on columns, a line for each dimension follows the first line.
  • When there are multiple dimensions on rows, a column displays on the left for each row dimension.
  • You can export CSV data in different layouts by passing supported query parameters such as exportType and moduleId.

Some view cell data endpoints can return JSON instead of CSV.

To request a JSON-formatted response:

  1. Pass an Accept header of application/json.
  2. Pass a query parameter with format set to v1.

The JSON response can include:

Response elementDescription
pagesA list of selected items for each page selector. If the view has no page selectors, this list may be empty or absent.
columnCoordinatesA list of coordinates for all values in each column. Each coordinate is represented as a list of one or more values.
rowCoordinatesA list of coordinates for all values in each row.
dataThe cell values returned for the selected view data.

A successful API call does not always return a response body.

204 No Content means the request was successful, but there is no representation to return. The response body is empty.

This is the expected response for some task-related POST requests.

The following HTTP response codes are especially relevant to request and response formats:

Status codeMeaning
200 OKThe request was successful.
204 No ContentThe request was successful, but the response body is empty.
400 Bad RequestThe request is incorrect, such as missing required values or specifying invalid values.
405 Method Not AllowedThe request used the wrong HTTP method for the endpoint.
406 Not AcceptableThe requested response format cannot be provided. Check the Accept header.
415 Unsupported Media TypeThe request body is in an unsupported format. Check the Content-Type header.
429 Too Many RequestsToo many requests were made. Wait briefly, then retry.

When you build integrations with the Anaplan API, do not assume that response fields are fixed.

Write client parsers so they ignore unknown or extra fields. This helps integrations remain resilient if the API adds fields to a response in the future.