Skip to main content
POST
/
api
/
validate_stream_result
Get Validation Results
curl --request POST \
  --url https://api.example.com/api/validate_stream_result/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "job_id": "<string>"
}
'
{
  "job_id": "abc123def456",
  "status": "in_progress",
  "started": "2026-01-08T10:30:00Z",
  "timestamp": "2026-01-08T10:30:15Z"
}
Retrieve results of an asynchronous validation job. Poll this endpoint until status is done or failed.

Request Body

job_id
string
required
Job ID to retrieve results for

Response

job_id
string
Unique identifier for the validation job
status
string
Job status: started, in_progress, done, or failed
started
string
ISO 8601 UTC timestamp when the job was created. Present from the initial started status onward.
timestamp
string
ISO 8601 UTC timestamp of the current status snapshot.
overall_status
string
Overall compliance assessment (when done): approved, needs_changes, or do not send. Note: the do not send value contains spaces — this matches the API response exactly.
summary
object
Summary of violations by severity
violating_line_count
integer
Number of lines with at least one compliance violation. Absent for older jobs or when only grouped fixes exist.
compliant_line_count
integer
Number of lines with no violations. Absent for older jobs or when only grouped fixes exist.
total_line_count
integer
Total number of lines in the document. Absent for older jobs or when only grouped fixes exist.
True when more than one fix is found, suggesting a re-scan after applying all fixes.
violations_by_line
array
One entry per violating line, with all rules violated and the best fix. Absent for older jobs or when only grouped fixes exist. Present but empty for fully compliant documents.
fixes
array
Individual fix entries (rule-centric, one per violation per quote)
fixes_group
object
Grouped fixes for rules that aggregate across pages
metadata
object
Document metadata used for scenario matching
error
string
Error message (when status is failed)

Job Status Values

StatusDescription
startedJob created and queued for processing
in_progressValidation in progress
doneValidation completed successfully
failedValidation failed with error

Overall Status Values

StatusDescription
approvedDocument passes compliance checks
needs_changesDocument has violations that should be addressed
do not sendDocument has critical violations and should not be distributed
{
  "job_id": "abc123def456",
  "status": "in_progress",
  "started": "2026-01-08T10:30:00Z",
  "timestamp": "2026-01-08T10:30:15Z"
}

Example

curl -X POST "https://{api-url}/api/validate_stream_result/" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"job_id": "abc123def456"}'