This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
application/json · object
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/file/createroyalty \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'{
  "success": true,
  "message": "Royalty report file generated",
  "data": {
    "name": "f-2025-07-08.csv",
    "status": "generated",
    "id": "file-uuid-123"
  }
}Generates a royalty report file based on BigQuery data and saves it to storage.
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/file/createroyalty \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'{
  "success": true,
  "message": "Royalty report file generated",
  "data": {
    "name": "f-2025-07-08.csv",
    "status": "generated",
    "id": "file-uuid-123"
  }
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/file/createroyalty', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"