Retrieve details of batch uploads
GET /v2/batches/inspect
Retrieves the details of batches uploaded to your instance of Sitecore CDP in the past 30 days. For an upload to be available to retrieve, you must first make the PUT request that allocates a batch upload location.
The response body contains the following fields:
|
Attribute |
Type |
Description |
Example |
|---|---|---|---|
|
|
integer |
The number of batches that were uploaded to your instance of Sitecore CDP in the past 30 days and match the criteria you specified in the request query parameters. |
|
|
|
integer |
The offset used in the request. |
|
|
|
integer |
The limit used in the request. |
|
|
|
array of objects |
The list of batch uploads returned. |
N/A |
The items array of objects:
|
Attribute |
Type |
Description |
Example |
|---|---|---|---|
|
|
string |
The URL of a batch upload. |
|
|
|
string |
The UUID of a batch upload. |
|
|
|
string |
The batch upload processing status. |
|
|
|
string |
For batch uploads with the |
|
|
|
string |
The date and time the batch upload was created. |
|
|
|
string |
The date and time the batch upload was last modified. For example, the last time the status changed. |
|
Request without query parameters:
curl -X GET '<baseURL>/v2/batches/inspect' \
-u '<username>:<password>' \
-H 'Accept: application/json'
Request with query parameters:
curl -X GET '<baseURL>/v2/batches/inspect?status=success,error&limit=100' \
-u '<username>:<password>' \
-H 'Accept: application/json'
{
"totalCount": 225,
"offset": 0,
"limit": 100,
"items": [
{
"href": "<baseURL>/v2/batches/inspect/12af3453-62da-4b31-a646-631b7b5f3009",
"ref": "439332a9-f837-496f-9e4a-87491689bb90",
"status": "success",
"createdAt": "2025-05-29T07:41:51.244Z",
"modifiedAt": "2025-05-29T07:47:59.961Z"
},
{<...>}
]
}