Endpoint
POSThttps://api.graine.ai/api/v1/batches/{batch_id}/dispatch
Forces a re-run of execute_batch. This re-publishes every PENDING contact in the batch to the apollo.batch.dispatch Kafka topic.
When to Use This
Use/dispatch when:
- The worker container was down at the time the batch was created — calls never went out because nobody was consuming Kafka
- A batch shows
PENDINGcontacts with stale timestamps and the debug endpoint confirms the worker is stuck - You want to manually re-trigger dispatch after a worker restart
This endpoint only re-publishes
PENDING contacts. Contacts already dispatched, completed, failed, etc. are not affected.Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
batch_id | string | Yes | Batch to re-dispatch |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer gat_<token> |
Example Request
Response
200 OK
Typical Recovery Flow
If a batch created successfully but calls never went out:Next Steps
Debug Batch
Diagnose why calls aren’t going out
Monitor Contacts
Track per-contact status