Query Change History
Query audit summaries grouped by transaction across a specified time range.
URL
POST https://api.ads.apple.com/v1/change-history/queryHeader Parameters
| Name | Type | Description |
|---|---|---|
X-Ap-Context Required | string |
Response Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 200 | OK Content-Type: application/json | AuditSummaryResponse | Successful operation. Returns AuditSummaryResponse ( |
| 400 | Bad Request Content-Type: application/json | Error | Bad Request. Returns ErrorMessage. |
| 401 | Unauthorized Content-Type: application/json | Error | Unauthorized. |
| 403 | Forbidden Content-Type: application/json | Error | Forbidden. |
| 404 | Not Found Content-Type: application/json | Error | Not Found. Returns ErrorMessage. |
| 429 | Too Many Requests Content-Type: application/json | Error | Rate Limit Exceeded. Returns ErrorMessage. |
| 500 | Internal Server Error Content-Type: application/json | Error | Internal Server Error. Returns ErrorMessage. |
Discussion
This endpoint returns one AuditSummary row per (userType, modifiedBy, transactionId, eventType, entityType) combination. The count field on each row indicates how many individual field changes that transaction group contains.
To fetch field-level details via GET /v1/change-history/{detailId} (Get Change History Detail), you need a composite detailId in the form EntityType.entityId.txnId. A summary row alone doesn’t include entityId, so set options.metadata to latest or snapshot on the query request: each resulting row’s metas array then includes a ready-to-use detailId you can pass directly to the detail endpoint.
See AuditOperator for the full set of supported comparison operators.
Request Body
Filters
The following fields support filtering. For non-time fields, the API supports only EQUALS and IN. It reserves GREATER_THAN, LESS_THAN, and BETWEEN for eventTime.
Field | Operators | Notes |
|---|---|---|
|
| Required. ISO 8601 date strings. Maximum lookback is 6 months. |
|
| Not a closed enum. A string matching the name of the API entity that changed, such as |
|
| The specific entity that changed. |
|
|
|
|
|
|
|
| The user who made the change. |
|
| Transaction ID. Matches |
|
| Available when |
|
| Available when |
|
| Available when |
Sorting
Sort by any filterable field using field and order (ASC or DESC). Default sort is by eventTime descending.
The options object controls response performance and metadata behavior.
Option | Values | Default | Description |
|---|---|---|---|
|
|
| Include total row count in the response pagination object. Set to |
|
|
| Timezone for |
|
|
| Controls entity metadata in change detail responses. |
Payload Examples
HTTP Body
An AuditQuery object specifying filter fields, sorting, pagination, and options. Every request requires a time-range filter on eventTime. Use BETWEEN for a bounded range or GREATER_THAN or LESS_THAN for an open-ended range.