curl --location --request GET 'https://www.amazon.com/ap/oa/streams/subscriptions' \
--header 'Amazon-Advertising-API-ClientId: {{client_id}}' \
--header 'Amazon-Advertising-API-Scope: {{profileId}}' \
--header 'Accept: application/vnd.MarketingStreamSubscriptions.StreamSubscriptionResource.v1.0+json' \
--header 'Authorization: Bearer {{access_token}}'
{
"subscriptions": [
{
"createdDate": "2024-05-01T14:43:19.136Z",
"dataSetId": "sp-traffic",
"destination": {
"firehoseDestination": {
"deliveryStreamArn": "arn:aws:firehose:us-east-1:xxxxxxx:deliverystream/NA-sp-traffic-sp-traffic-na",
"subscriberRoleArn": "arn:aws:iam::xxxxxxx:role/NA-sp-traffic-FirehoseSubscriberRole",
"subscriptionRoleArn": "arn:aws:iam::xxxxxxx:role/NA-sp-traffic-FirehoseSubscriptionRole"
}
},
"notes": "",
"status": "ACTIVE",
"subscriptionId": "amzn1.fead.cs1.j5VQ2r3VDddWK2e_ArVApg",
"updatedDate": "2024-05-01T14:43:23.476Z"
},
{
"createdDate": "2024-05-01T14:46:26.643Z",
"dataSetId": "sp-traffic",
"destination": {
"sqsDestination": {
"queueArn": "arn:aws:sqs:us-east-1:xxxxxx:StreamDestinationQueue"
}
},
"destinationArn": "arn:aws:sqs:us-east-1:xxxxxx:StreamDestinationQueue",
"notes": "string",
"status": "PENDING_CONFIRMATION",
"subscriptionId": "amzn1.fead.cs1.nQHVYtEaQMEqCWGBX31DHQ",
"updatedDate": "2024-05-01T14:46:30.02Z"
}
]
}