Step 1 I am passing the Journey ID in the call to get the data extension ID
Get
https://xxxxxxxx.rest.marketingcloudapis.com/interaction/v1/eventDefinitions/{5b3c1a00-0bbc-4484-b7be-21234567890}
Sample Response:
{
"id": "xxxxx",
"type": "EmailAudience",
"name": "xxxxxx",
"description": "",
"createdDate": "2019-07-02T21:41:53.4",
"createdBy": 100169002,
"modifiedDate": "2019-07-02T21:41:53.4",
"modifiedBy": 100169002,
"mode": "Production",
"eventDefinitionKey": "DEAudience-xxxx",
"dataExtensionId": "xxxxxxx",
"dataExtensionName": "xxxxxxxxxx",
"sourceApplicationExtensionId": "xxxxx",
"filterDefinitionId": "00000000-0000-0000-0000-000000000000",
"filterDefinitionTemplate": "",
"iconUrl": "/images/icon-data-extension.svg",
"arguments":
Unknown macro: { "serializedObjectType"}
,
"configurationArguments":
Unknown macro: { "unconfigured"}
,
"metaData":
Unknown macro: { "criteriaDescription"}
,
"interactionCount": 1,
"isVisibleInPicker": false,
"isPlatformObject": false,
"category": "Audience",
"publishedInteractionCount": 1,
"automationId": "xxxxxxx"
}
Now I want to retrieve the External key for the data extension via rest API. Are there any sample calls to retrieve the External key based on the dataExtensionId got from the above response?