Multi-document pipeline
Process a batch of documents in parallel with LangGraph on AWS Lambda.
InterfacesAPI SpecSections
API Spec Designed
- POST
/api/docflow/v1/batchesCreate a batch of up to 10 documents; each file is checked on its own. Signed in
Body
{files: [{file_name, mime, size}]}→201 {batch, documents: [{document, upload} | {file_name, rejected_reason}]}. SupportsIdempotency-Key. - POST
/api/docflow/v1/batches/{batchId}/processStart extraction for the batch once the uploads are confirmed. Signed in
→
202 {batch}. Calls ExtractionPOST /job-groups. Idempotent. Errors:409if no file is ready. - POST
/api/extraction/v1/job-groupsRun several extraction jobs as one group with a concurrency limit. Signed in
Body
{jobs: [{file_id, schema, reference?}], max_concurrency: 3}→202 {group, jobs[]}. One job failing does not fail the group. - GET
/api/extraction/v1/job-groups/{groupId}Group status with each job's current step. Signed in
→
200 {group, jobs: [{id, file_id, node, status}], summary: {extracted, failed, running}}. - GET
/api/docflow/v1/batchesList my batches. Signed in
Query
cursor,limit→200 {data: [Batch], next_cursor}. - GET
/api/docflow/v1/batches/{batchId}Batch status with each document's step and status. Signed in
→
200 {batch, documents: [{id, file_name, step, status}], summary: {extracted, needs_review, failed}}. - PATCH
/api/upload/v1/files/{fileId}change a file's retention. Signed in
Body
{retention: "30_days"|"until_deleted"}→200 {file}.
Notes
EXTRACTION-V2-E9-02The Lambda pipeline is part of the Extraction service and writes to Extraction's own schema. DocFlow follows progress throughGET /job-groups/{groupId}and theextraction.job.*events.
Coming Soon...
Full inputs, constraints, error codes and sample requests and responses for each endpoint will appear here when this module's design is finalized.