curl --request GET \
--url https://api.royalti.io/ddex/messages/{messageId}/download \
--header 'Authorization: Bearer <token>'{
"status": "<string>",
"data": {
"messageId": "<string>",
"downloadUrl": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"format": "<string>",
"fileSize": 123
}
}Get a signed download URL for a message
curl --request GET \
--url https://api.royalti.io/ddex/messages/{messageId}/download \
--header 'Authorization: Bearer <token>'{
"status": "<string>",
"data": {
"messageId": "<string>",
"downloadUrl": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"format": "<string>",
"fileSize": 123
}
}const response = await fetch('https://api.royalti.io/ddex/messages/example-id/download', {
method: 'GET',
});
const data = await response.json();
console.log(data);