Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Template GenAI
The various methods for Template GenAI Settings are listed below:
Sync flow
Triggers the template generation sync workflow using a brand URL.
Parameters
Field | Data Type | Requirement | Description |
|---|---|---|---|
brandUrl | string | Mandatory | URL of the brand PDF or guidelines document |
retailer | object | Mandatory | Retailer details |
string | Mandatory | Retailer identifier | |
retailer.name | string | Mandatory | Retailer display name |
inventoryType | string | Mandatory | Inventory type (e.g. |
requestId | string | Mandatory | Unique request ID for tracking the workflow |
Sample Request
Request Body
Sample Response
Proxied JSON response from the GenAI service with workflow initiation details.
Sync flow (upload)
Triggers the template generation sync workflow through a multipart file upload.
Parameters
Field | Data Type | Requirement | Description |
|---|---|---|---|
requestId | string | Mandatory | Unique request ID |
retailerId | string | Mandatory | Retailer identifier |
retailerName | string | Mandatory | Retailer display name |
inventoryType | string | Mandatory | Inventory type (e.g. |
file | file | Mandatory | Brand document or asset file to upload |
Sample Request
Sample Response
Design brief
Triggers template generation, using a Design Brief ZIP, PSD file, or Brand Brief document. Either designBriefZip or psdFile must be provided.
Parameters
Field | Data Type | Requirement | Description |
|---|---|---|---|
requestId | string | Mandatory | Unique request ID |
retailerId | string | Mandatory | Retailer identifier |
retailerName | string | Mandatory | Retailer display name |
inventoryType | string | Mandatory | Inventory type (e.g. |
brandUrl | string | Optional | Brand guidelines URL. If provided, |
designBriefZip | file | One of | Design brief as ZIP, PNG, JPG, JPEG, or WEBP file. Mutually exclusive with |
psdFile | file | One of | PSD source file. Mutually exclusive with |
brandBriefDoc | file | Optional | Brand brief document (ignored if |
Sample Request
Sample Response
Get UI response
Returns the UI-facing response for a template generation workflow.
Sample Request
Sample Response
Proxied JSON response containing the UI state for the given request.
Get workflow status
Returns the current status of a template generation workflow.
Sample Request
Sample Response
Get workflow result
Returns the final result of a completed Template Generation workflow.
Sample Request
Sample Response
Terminate request
Terminates an in-progress template generation workflow.
Sample Request
Sample Response
Regenerate
Triggers an iterative template regeneration using an edit prompt.
Parameters
Field | Data Type | Requirement | Description |
|---|---|---|---|
requestId | string | Mandatory | Original workflow request ID |
conversationId | string | Optional | ID of the existing conversation to continue |
templateHtml | string | Optional | Current HTML of the template being edited |
editPrompt | string | Mandatory | User instruction for the regeneration (e.g. "Make the headline bolder"). |
adUnitSize | string | Optional | Target ad unit size (e.g. |
Sample Request
Request Body
Sample Response
Proxied JSON response from the GenAI service with workflow initiation details.
Regenerate retry
Retries a regeneration from a specific major version.
Parameters
Field | Data Type | Requirement | Description |
|---|---|---|---|
requestId | string | Mandatory | Original workflow request ID |
conversationId | string | Mandatory | Conversation ID |
majorVersion | integer | Mandatory | Major version number to retry from |
Sample Request
Request Body
Regenerate revert
Reverts a regeneration to a specific version.
Parameters
Field | Data Type | Requirement | Description |
|---|---|---|---|
requestId | string | Mandatory | Original workflow request ID |
conversationId | string | Mandatory | Conversation ID |
version | string | Mandatory | Version string to revert to |
Sample Request
Request Body
Regenerate like
Records a positive feedback signal for a regenerated version.
Parameters
Field | Data Type | Requirement | Description |
|---|---|---|---|
requestId | string | Mandatory | Original workflow request ID |
conversationId | string | Mandatory | Conversation ID |
version | string | Mandatory | Version being liked |
likeValue | boolean | Mandatory |
|
Sample Request
Request Body
Regenerate dislike
Records a negative feedback signal for a regenerated version.
Parameters
Field | Data Type | Requirement | Description |
|---|---|---|---|
requestId | string | Mandatory | Original workflow request ID |
conversationId | string | Mandatory | Conversation ID |
version | string | Mandatory | Version being disliked |
dislikeValue | boolean | Mandatory |
|
Sample Request
Request Body
Get all conversations
Returns all regeneration conversations for a given workflow request.
Sample Request
Sample Response
Get conversation
Returns the details of a single regeneration conversation.
Sample Request
Get HTML by version
Returns the HTML output for a specific version within a conversation.
Sample Request
Sample Response
Returns raw text/html content.
Get latest HTML
Returns the latest HTML output for a conversation.
Sample Request
Sample Response
Returns raw text/html content.
Get minor versions
Returns all minor versions within a major version of a conversation.
Sample Request
Sample Response
Get regenerate result
Returns the result for a specific regeneration job.
Sample Request
Sample Response