Skip to main content
POST
/
file
/
enable-auto-processing
curl --request POST \
  --url https://api.royalti.io/file/enable-auto-processing \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sourceThreshold": 0.85,
  "periodThreshold": 0.75,
  "schemaThreshold": 0.85,
  "requireAllThresholds": true
}
'
{
  "success": true,
  "message": "Auto-processing enabled successfully",
  "data": {
    "autoProcessEnabled": true,
    "sourceThreshold": 0.85,
    "periodThreshold": 0.75,
    "schemaThreshold": 0.85,
    "requireAllThresholds": true
  }
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

Enable automatic processing Configure automatic processing for files that meet confidence thresholds. When enabled, files with high detection confidence will be automatically processed without manual confirmation. Threshold Configuration:
  • Set minimum confidence scores (0-1) for source, period, and schema detection
  • Choose whether ALL thresholds must be met or just one (requireAllThresholds)
  • Default thresholds: source=0.8, period=0.7, schema=0.6

Code Examples

const response = await fetch('https://api.royalti.io/file/enable-auto-processing', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "sourceThreshold": 0.85,
    "periodThreshold": 0.75,
    "schemaThreshold": 0.8,
    "requireAllThresholds": true
  })
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
sourceThreshold
number
default:0.8

Minimum source detection confidence (0-1)

Required range: 0 <= x <= 1
Example:

0.85

periodThreshold
number
default:0.7

Minimum period detection confidence (0-1)

Required range: 0 <= x <= 1
Example:

0.75

schemaThreshold
number
default:0.6

Minimum schema detection confidence (0-1)

Required range: 0 <= x <= 1
Example:

0.8

requireAllThresholds
boolean
default:false

If true, ALL thresholds must be met. If false, ANY threshold meeting requirement triggers auto-processing.

Response

Auto-processing enabled successfully

success
boolean
default:true
message
string
data
object