Executes a POST search with body-specified time boundaries and lookback intervals, returning audit events formatted in ArcSight Common Event Format (CEF).

Combines the flexibility of POST request bodies with CEF text formatting. The request body is transmitted in JSON format (Content-Type: application/json), while the response format is requested in plain text by setting Accept: text/plain. This pattern is ideal for automated SIEM collectors that need to query large, specific historical windows without exposing sensitive timestamp filters in URL strings.

Although the request payload is formatted in JSON, the response is delivered as raw plain text containing newline-separated CEF logs. 

POST

/audit/api/1/events/search

Parameter Type Required/optionalDescription
type String Optional Event category filter: all (default), byok, or user_activity. 

curl -X POST "https://audit.anaplan.com/audit/api/1/events/search?type=all" \

  -H "Authorization: AnaplanAuthToken {anaplan_auth_token}" \

  -H "Content-Type: application/json" \

  -H "Accept: text/plain" \

  -d '{

    "from": 1489608511000,

    "to": 1505776337000,

    "interval": 24

  }'

If the request is successful, the API returns an HTTP 200 OK status code with Content-Type: text/plain containing newline-separated CEF event records.

HTTP statusStatus message Description
200OK (text/plain)Audit events matching search criteria returned successfully. 

2018-03-15T19:30:39.000Z test.anaplan.net CEF:0|Anaplan, Inc.|test.anaplan.net|6.0.0.3050|DSM-DAO0267I|user logged in|id=974367285749080064 userId=8a80d86a58233b8d015825b37f310013 tenantId=8a80d8034e9a6fa0014e9aa747ae0002 eventTimeZone=UTC createdDate=1521142238000 checksum=9d85737850b219554d1fc7b366e7456bc61dbe0b42055eacfcc8efe8b8ec811d 

If the request is unsuccessful, the API returns an error code.

HTTP statusError message Description/resolution
400Bad RequestInvalid body formatting or negative interval value. 
401UnauthorizedInvalid or expired authentication token. Re-authenticate with the Anaplan Authentication Service.

{

  "status": "FAILURE",

  "statusMessage": "Search failed due to invalid parameters" 

}