API: Support for async batch processing endpoint

Would love to see a dedicated batch processing endpoint in the API. Something like:

POST /v1/batch
{
  "template_id": "inv_standard_v2",
  "documents": [
    {"url": "s3://bucket/doc1.pdf"},
    {"url": "s3://bucket/doc2.pdf"},
    ...
  ],
  "webhook": "https://myapp.com/batch-complete"
}

Returns a batch ID, processes all docs, sends one webhook when the whole batch is done with a summary + individual results.

This would be way more efficient than submitting 500 individual requests and tracking 500 webhooks.

2 Likes

Strongly agree. We’re building a data pipeline and the current approach of one-request-per-document creates a lot of orchestration overhead. A batch endpoint would simplify things significantly.

1 Like

This is actively in our roadmap! We’re targeting a batch endpoint in Q3. It’ll work roughly as you described — submit a batch, get a batch ID, poll or webhook for completion. Will share more details when we’re closer.

4 Likes