Start Batch Job Immediately
Batch Calling
Start Batch Job Immediately
Manually start a scheduled or pending batch job immediately, bypassing the scheduled start time.
POST
Start Batch Job Immediately
Overview
Starts a scheduled or pending batch job immediately, without waiting for the scheduled start time. Use cases:- Start a scheduled job ahead of time
- Manually trigger a job that was created but not started
- Override scheduling and begin processing now
Only works for jobs in
scheduled or pending status. Running jobs cannot be started again.Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
batch_job_id | string | ✅ | Unique batch job identifier |
Response
Response Fields
| Field | Type | Description |
|---|---|---|
success | boolean | Whether start succeeded |
message | string | Start result description |
batchJobId | string | Started batch job ID |
status | string | New job status (running) |
contactsEnqueued | integer | Number of contacts queued for processing |
redisJobCancelled | boolean | Whether Redis scheduled job was cancelled |
startedAt | string | Start time (ISO 8601, UTC) |
Examples
Example 1: Start Scheduled Job Early
Example 2: Start Pending Job
Example 3: Start Already Running Job (Error)
Behavior by Status
| Job Status | Start Behavior |
|---|---|
scheduled | Cancels Redis defer job + marks as running + enqueues all contacts |
pending | Marks as running + enqueues all contacts |
running | ❌ Error: Job already running |
completed | ❌ Error: Cannot start completed job |
failed | ❌ Error: Cannot start failed job |
cancelled | ❌ Error: Cannot start cancelled job |
How It Works
Error Handling
404 Not Found
400 Bad Request
| Error Code | Cause |
|---|---|
job_not_found | Batch job ID doesn’t exist |
invalid_status | Job is not in scheduled or pending status |
already_running | Job is already processing |
500 Internal Server Error
Use Cases
Start Campaign Early
You scheduled a campaign for 9 AM but want to start at 8:30 AM:Manual Trigger After Creation
Create a job without scheduling, then start manually:Related
- Create Batch Job — Create a new batch job
- Cancel Batch Job — Cancel a job
- Reschedule Batch Job — Change scheduled time
- Get Batch Job Detail — Get job status
- Batch Calling Guide — Complete guide to batch campaigns
Authorizations
Your TalkifAI API key. Get it from Studio → Settings → API Keys.