Annotate
Save or update annotations for extracted data
This endpoint provides a unified interface for both creating new annotations and updating existing ones. The behavior is determined by whether you include the annotationId
parameter.
Usage
- Create new annotation: Omit the
annotationId
parameter to create a new annotation - Update existing annotation: Include the
annotationId
parameter to update an existing annotation
Request Body
The ID of the job the annotation belongs to
URL of the document being annotated
The original data extracted from the document. Required when creating a new annotation, optional when updating.
The annotated data with human corrections
ID of an existing annotation to update. If provided, the endpoint will update an existing annotation. If omitted, a new annotation will be created.
The ID of the extract job associated with this annotation
The ID of the extract example associated with this annotation
Response
Whether the annotation was saved successfully
The saved annotation data