curl --request POST \
--url https://api.royalti.io/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://api.royalti.io/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://api.royalti.io/file/createroyalty', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
console.log(data);