Overview
Whilter.AI’s Batch Media API enables clients to process and deliver large-scale personalized campaigns using a structured batch-based integration flow. Whether you’re generating thousands of personalized images or videos, this API ensures smooth and efficient execution.High-Level Integration Flow
The batch execution flow consists of the following 5 simple steps:Step 1: Prepare Your Campaign Data
Prepare a CSV file containing:- A unique identifier (e.g., customer ID or phone number)
- Required personalization fields for media generation
WHILTERTEMPLATEID_CLIENTNAME_CAMPAIGNNAME_TIMESTAMP.zip
Step 2: Upload the File to SFTP
Upload the ZIP file to the designated input location (e.g.,sftp/in) shared during onboarding.
Step 3: Trigger the Task via API
Notify Whilter.AI that the file has been uploaded using the Task API.POST /client/task
Request Headers:
Request Body:
Sample Response:
Step 4: Check Task Status (Optional)
Track task progress using the task ID.GET /client/task/status/<task-id>
Request Headers:
Sample Response:
The output file will mirror your input CSV but with two additional columns:
media-url: Link to the generated mediaerror: If generation failed for a row
Step 5: Cancel a Task (Optional)
This step is optional. If you need to cancel a previously triggered task (for example, due to incorrect data or a campaign change), use the following API.POST /image/task/cancel/{taskId}
Path Parameter:
| Name | Type | Description |
|---|---|---|
| taskId | string | The unique identifier of the task to cancel |
Request Headers:
Sample Response:
Callback Support
Instead of polling the status API, you can provide a callback URL, and Whilter.AI will notify your system automatically when the task is completed.Security
All APIs are secured using Bearer Token Authentication. Ensure your access token is kept confidential.Need help integrating? Contact us or explore more API references in the sidebar.

