Skip to content

Auto Content Engine

An Auto Content Engine is the top-level workspace that contains everything needed to produce videos:

  • Sheet — the data grid (columns, rows, cells) where you write scripts, assign voices, etc.
  • Video composition — layers (text, sound, clip overlays) that make up each video
  • Automations — pipelines with triggers and actions
  • Global variables — template values for dynamic substitution
  • Final video — the rendered output
{
"id": 100,
"slug": "my-first-engine",
"title": "March Campaign",
"project_type": "autocontentengine",
"is_default": false,
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "active",
"created_at": "2026-03-01T12:00:00.000Z",
"created_at_ts": 1709294400000,
"updated_at_ts": 1709380800000,
"spreadsheet_columns": [],
"spreadsheet_rows": [],
"global_variables_sheet": null
}

The spreadsheet_columns and spreadsheet_rows arrays are populated when fetching a single engine. The global_variables_sheet is null unless variables have been imported.


Creates a new Auto Content Engine for the specified agent.

POST /v1/autocontentengine?agent_id={agent_id}
FieldTypeRequiredDescription
spreadsheet.titlestringYesName for the engine.
spreadsheet.is_defaultbooleanNoSet as the agent’s default engine. Defaults to false.

Returns the created engine object.

Terminal window
curl -X POST "https://api.gen.pro/v1/autocontentengine?agent_id=42" \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"spreadsheet": {"title": "March Campaign"}}'
{
"id": 101,
"slug": "march-campaign",
"title": "March Campaign",
"project_type": "autocontentengine",
"is_default": false,
"uuid": "f1e2d3c4-b5a6-7890-fedc-ba0987654321",
"status": "active",
"created_at": "2026-03-09T10:00:00.000Z",
"created_at_ts": 1741510800000,
"updated_at_ts": 1741510800000,
"spreadsheet_columns": [],
"spreadsheet_rows": [],
"global_variables_sheet": null
}
StatusError codeDescription
401unauthorizedInvalid API key.
422validation_errorMissing title or invalid parameters.

Returns a single Auto Content Engine with all its columns, rows, cells, and layers.

GET /v1/autocontentengine/{id}?agent_id={agent_id}
ParameterTypeDescription
idintegerThe engine ID.
ParameterTypeRequiredDescription
agent_idintegerYesThe agent that owns this engine.
with_execution_costbooleanNoInclude credit cost breakdowns on cells and layers.

Returns the full engine object including nested spreadsheet_columns, spreadsheet_rows (each containing spreadsheet_cells), and global_variables_sheet.

Terminal window
curl "https://api.gen.pro/v1/autocontentengine/101?agent_id=42&with_execution_cost=true" \
-H "X-API-Key: your-api-key"

Creates a copy of an existing Auto Content Engine. Optionally clone into a different agent.

POST /v1/autocontentengine/{id}/clone?agent_id={agent_id}
ParameterTypeDescription
idintegerThe engine ID to clone.
FieldTypeRequiredDescription
target_agent_idintegerNoClone into a different agent. Defaults to the same agent.

Returns the newly created engine object.

Terminal window
# Clone within the same agent
curl -X POST "https://api.gen.pro/v1/autocontentengine/101/clone?agent_id=42" \
-H "X-API-Key: your-api-key"
# Clone into a different agent
curl -X POST "https://api.gen.pro/v1/autocontentengine/101/clone?agent_id=42" \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"target_agent_id": 87}'
StatusError codeDescription
404not_foundEngine not found or agent does not have access.
422validation_errorTarget agent not accessible or insufficient credits.