curl --request GET \
--url https://api.royalti.io/file/detection/{sessionId} \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "Detection session retrieved successfully",
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"status": "detected",
"fileName": "spotify_2024-01.csv",
"fileSize": 1048576,
"detectedValues": {
"source": "spotify",
"period": "2024-01-01",
"schema": {
"artist": "string",
"track": "string",
"streams": "number",
"revenue": "number"
}
},
"confidence": {
"source": 0.95,
"period": 0.89,
"schema": 0.92
},
"completedSteps": [
"upload",
"analysis",
"pattern_matching"
],
"expiresAt": "2024-01-16T12:00:00Z"
}
}Get file detection status
curl --request GET \
--url https://api.royalti.io/file/detection/{sessionId} \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "Detection session retrieved successfully",
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"status": "detected",
"fileName": "spotify_2024-01.csv",
"fileSize": 1048576,
"detectedValues": {
"source": "spotify",
"period": "2024-01-01",
"schema": {
"artist": "string",
"track": "string",
"streams": "number",
"revenue": "number"
}
},
"confidence": {
"source": 0.95,
"period": 0.89,
"schema": 0.92
},
"completedSteps": [
"upload",
"analysis",
"pattern_matching"
],
"expiresAt": "2024-01-16T12:00:00Z"
}
}const response = await fetch('https://api.royalti.io/file/detection/example-id', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
The detection session ID returned from file upload
Detection status retrieved successfully
success Show child attributes
Current detection session status
initiated, detected, confirmed, auto_confirmed, expired Show child attributes
Steps completed in detection workflow
Session expiration time (24 hours from creation)