API ReferenceCorrectionsCreate Correction

Create Correction

POST /api/v1/jobs/{job_id}/corrections/

Submit a human correction to an extraction result. Corrections are used to flag and fix errors in the automated extraction output.

Authentication

Requires an API key with jobs:write scope. Pass via the X-API-Key header.

Path Parameters

ParameterTypeDescription
job_idstring (UUID)The ID of the extraction job.

Request Body

FieldTypeRequiredDescription
correction_typestringYesType of correction. See values below.
field_pathstringYesDot-notation path to the field being corrected (e.g., employees[0].gross_pay).
original_valuestringYesThe original extracted value.
corrected_valuestringYesThe corrected value.
notesstringNoOptional explanation for the correction.

Correction Types

ValueDescription
wrong_valueThe field was extracted but has the wrong value.
wrong_fieldThe value was placed in the wrong field.
missing_fieldA field that should have been extracted was missed.
spuriousA field was extracted that should not exist.
{
  "correction_type": "wrong_value",
  "field_path": "employees[0].gross_pay",
  "original_value": "5000.00",
  "corrected_value": "5250.00",
  "notes": "Verified against source document page 3"
}

Response

Status: 201 Created

{
  "id": "f6a7b8c9-0123-4567-89ab-cdef01234567",
  "job_id": "e5f6a7b8-c901-2345-6789-abcdef012345",
  "correction_type": "wrong_value",
  "field_path": "employees[0].gross_pay",
  "original_value": "5000.00",
  "corrected_value": "5250.00",
  "notes": "Verified against source document page 3",
  "created_at": "2026-03-16T12:00:00Z"
}

Response Fields

FieldTypeDescription
idstring (UUID)Unique identifier for the correction.
job_idstring (UUID)The extraction job this correction belongs to.
correction_typestringType of correction applied.
field_pathstringDot-notation path to the corrected field.
original_valuestringThe original extracted value.
corrected_valuestringThe corrected value.
notesstring or nullOptional explanation for the correction.
created_atstring (ISO 8601)Timestamp when the correction was created.

Errors

StatusDescription
400Invalid request body or unknown correction_type.
401Missing or invalid API key.
403API key does not have jobs:write scope.
404Extraction job not found.

Code Examples

curl -X POST https://api.parsifyhq.com/api/v1/jobs/e5f6a7b8-c901-2345-6789-abcdef012345/corrections/ \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "correction_type": "wrong_value",
    "field_path": "employees[0].gross_pay",
    "original_value": "5000.00",
    "corrected_value": "5250.00",
    "notes": "Verified against source document page 3"
  }'