This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Body
application/json
Response
200
Webhook processed successfully
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/webhook/download/status-update/webhook \
  --header 'Content-Type: application/json' \
  --data '{
  "downloadId": "download_789012",
  "status": "ready",
  "downloadUrl": "https://storage.googleapis.com/downloads/file.csv",
  "expiresAt": "2024-06-16T12:00:00Z"
}'Receives status updates for download operations
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/webhook/download/status-update/webhook \
  --header 'Content-Type: application/json' \
  --data '{
  "downloadId": "download_789012",
  "status": "ready",
  "downloadUrl": "https://storage.googleapis.com/downloads/file.csv",
  "expiresAt": "2024-06-16T12:00:00Z"
}'const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/webhook/download/status-update/webhook', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "downloadId": "download_789012",
    "status": "ready",
    "downloadUrl": "https://storage.googleapis.com/downloads/file.csv",
    "expiresAt": "2024-06-16T12:00:00Z"
  })
});
const data = await response.json();
console.log(data);
Webhook processed successfully