Skip to main content

POST /batches

POST

Create Bulk Batch Job

/batches

Submits a large collection of receipt files or claims for parallel batch execution. The HeyPeppy work queue distributes tasks across isolated Cloud Tasks workers, enforces tenant rate limits, and sends aggregated progress notifications or per-task webhooks.

Headers

HTTP Headers
ParameterTypeDescription
Authorizationrequiredstring
Bearer token format: Bearer <API_KEY>
Example: Bearer pep_live_99281a8b
X-Tenant-IDoptionalstring
B2B Tenant identifier.
Example: stepup
Content-Typerequiredstring
application/json

Query Parameters

URL Query String
ParameterTypeDescription
concurrencyLimitoptionalinteger
default: 20
Maximum concurrent tasks to process simultaneously (1-50, default: 20).
Example: 25

Request Body

application/json
FieldTypeDescription
tenantIdoptionalstring
Tenant organization identifier.
Example: stepup
batchTyperequiredstring (enum)
Type of jobs in this batch (receipt_extraction or submission_audit).
Example: receipt_extraction
webhookUrloptionalstring (URI)
Webhook invoked once all tasks in the batch have reached completion.
Example: https://portal.partner.org/api/webhooks/batch-complete
itemsrequiredarray<object>
Array of up to 1,000 items matching ReceiptExtractionRequest or SubmissionAuditRequest.

Responses

3 status codes
202 AcceptedBulk batch accepted and individual tasks queued.
{
  "batchId": "batch_987xyz109",
  "totalItems": 2,
  "status": "processing",
  "createdAt": "2026-09-15T15:45:00Z",
  "pollUrl": "https://api.heypeppy.ai/v1/batches/batch_987xyz109"
}

Interactive Test Console

Bearer
concurrencyLimit