curl --request POST \
--url https://api-dev.narrative.io/data-shops/subscriptions/{subscription_id}/deliveries/download \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transaction_batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file": "<string>",
"file_name_override": "<string>"
}
'{
"download_url": "<string>"
}Retrieve a AWS S3 presigned URL to download a file delivered as part of a subscription.
curl --request POST \
--url https://api-dev.narrative.io/data-shops/subscriptions/{subscription_id}/deliveries/download \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transaction_batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"file": "<string>",
"file_name_override": "<string>"
}
'{
"download_url": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier for a subscription.
Unique identifier for the subscription fulfillment event which produced the file.
The name of the delivered file to be downloaded.
If specified, when the delivery file is download it will have the name specified by file_name_override instead of the default name given by the file parameter.
OK
An AWS S3 presigned URL that can be used to download the file.
The presigned URL is valid for one hour meaning that the link must be used within an hour of receipt.