Overview
The KabyTech batch API is designed for high-volume ingestion. Instead of waiting for each document to finish before sending the next, you submit an entire batch and receive results asynchronously via webhooks or polling.
This architecture decouples your upload speed from processing time. A batch of 1,000 AWBs can be uploaded in under a minute, while processing completes over the following 5–10 minutes depending on document complexity. Webhooks notify your system as each document finishes, so you can start consuming results immediately.
The batch endpoint supports the same document formats as the single-document API — PDF, TIFF, JPEG, PNG — and automatically enables multi-page detection for PDFs and TIFFs.
Step 1 — Submit a Batch
Create a batch by POSTing a JSON manifest that lists the documents to process. Each entry can reference a file by URL or by a previously uploaded file ID. The response returns a batch_id for tracking.
curl -X POST https://api.kabytech.com/v1/batch \
-H "Authorization: Bearer $KABY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"webhook_url": "https://your-server.com/hooks/kaby",
"documents": [
{ "id": "doc_001", "url": "https://s3.example.com/awb-001.pdf" },
{ "id": "doc_002", "url": "https://s3.example.com/awb-002.pdf" }
]
}'The manifest can contain up to 5,000 document references per batch. For larger volumes, create multiple batches and track them independently. Each document receives its own doc_id so you can correlate results with your internal records.