Skip to main content

Endpoint

POST https://api.graine.ai/api/v1/batches/ Also available as POST /batches/upload (Merlin alias — identical behaviour). Creating a batch immediately begins dispatching calls to all contacts (unless scheduled_start is set).

Headers

Request Body

Contact schema

callee_name must be in call_variables for each contact (not in campaign default_call_variables). The AI agent uses this in its greeting — without it, the agent cannot address the person by name.

scheduled_start timezone handling

Example Request

Schedule for a specific time

This starts at 9:00 AM in the campaign’s timezone (e.g. Asia/Kolkata).

Responses

200 OK

Save the returned batch_id — use it to track progress, export results, or pause/cancel this batch independently.

400 Bad Request

404 Not Found

Code Examples

Next Steps

Monitor Contacts

Track per-contact call status

Export Results

Download call outcomes as CSV

Pause or Cancel

Control batch execution mid-flight

Troubleshoot Stuck Batch

Debug why calls aren’t going out