Skip to main content

Use the retrieve batch flows output resource function in Sitecore CDP REST API

Abstract

Provides details on retrieving batch flows output resource for signed URLs in Sitecore CDP (Data model 2.1).

You can use the Audience Sync REST API to perform the retrieve batch flows output resource function to retrieve the signed URLs. To do this, you must use the ref included in the response when locating batch flow jobs. The signed URLs expire after a short time.

To retrieve a batch flows output resource in Sitecore CDP, use the following:

GET: https://apiEndpoint/v2/batchFlowOutput/<ref>/files

Attribute

Description

Type

ref

The Universal Unique Identifier (UUID) of the resource.

string

$ curl -H 'Content-Type: application/json' -X GET 
https://{apiEndpoint}/v2/batchFlowsJob?flowRef=9d496538-6079-49ff-8911-9964f0333528&expand=true

The following is the 200 response for retrieving a batch flows output resource:

{  
   "href":"https://{apiEndpoint}/v2/batchFlowOutput/60971bde-0028-45ae-8811-becca8420856/files",
   "ref":"60971bde-0028-45ae-8811-becca8420856",
   "clientKey":"pqsPERS3lw12v5a9rrHPW1c4hET73GxQ",
   "flowRef":"88f60b6f-7072-4b85-94be-4a4028cd92ae",
   "segmentRef":"84965807-1f52-4130-b48e-616e6d8c54be",
   "status":"SUCCESS",
   "signedUrls":[  
      "https://<temporarySignedUrl>"
   ]
}