Skip to main content
POST
/
webhook
/
download
/
status-update
/
webhook
Download status update webhook
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"
}'
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

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);

Body

application/json
downloadId
string
required
Example:

"download_789012"

status
enum<string>
required
Available options:
preparing,
ready,
failed,
expired
Example:

"ready"

downloadUrl
string<uri>
Example:

"https://storage.googleapis.com/downloads/file.csv"

expiresAt
string<date-time>
Example:

"2024-06-16T12:00:00Z"

Response

200

Webhook processed successfully