curl --request POST \
--url https://api.royalti.io/file/detection/{sessionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"royaltySourceId": "456e7890-e89b-12d3-a456-426614174001",
"accountingPeriod": "2024-01",
"salePeriod": "2024-01",
"confirm": true
}
'{
"status": "success",
"message": "Detection confirmed and file queued for processing",
"data": {
"sessionId": "123e4567-e89b-12d3-a456-426614174000",
"fileId": "789e0123-e89b-12d3-a456-426614174002",
"jobId": "job_abc123xyz",
"status": "confirmed",
"markedForReview": false
}
}Confirm or reject detected royalty source
curl --request POST \
--url https://api.royalti.io/file/detection/{sessionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"royaltySourceId": "456e7890-e89b-12d3-a456-426614174001",
"accountingPeriod": "2024-01",
"salePeriod": "2024-01",
"confirm": true
}
'{
"status": "success",
"message": "Detection confirmed and file queued for processing",
"data": {
"sessionId": "123e4567-e89b-12d3-a456-426614174000",
"fileId": "789e0123-e89b-12d3-a456-426614174002",
"jobId": "job_abc123xyz",
"status": "confirmed",
"markedForReview": false
}
}const response = await fetch('https://api.royalti.io/file/detection/example-id', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"royaltySourceId": "sample-royaltySourceId",
"accountingPeriod": "sample-accountingPeriod",
"salePeriod": "sample-salePeriod",
"confirm": true
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
The detection session ID
Success - Returns jobId if confirmed, or marks for manual review if rejected
success