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 Data Sheet
Prepare a CSV file containing:- A unique identifier (e.g., phone number or customer ID)
- Additional fields for personalization
Step 2: Naming the Data Sheet
Use the following naming conventions based on priority:-
High Priority Campaign:
WhilterTemplateID_Priority_CustomerDefinedCampaignName.zip -
Normal Priority Campaign:
WhilterTemplateID_CustomerDefinedCampaignName.zip
Make sure to compress the CSV as a ZIP file before uploading.
Step 3: Upload to S3
Upload the.zip file to your designated S3 bucket path as instructed by the Whilter.AI onboarding team.
Step 4: 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 5: 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 6: Cancel a Task (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:
API Reference
To explore detailed endpoints and example requests, see the Batch Media API references.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.

