Skip to content

Content Ideas API

The Content Ideas API generates video content ideas by analyzing trending videos with engagement-weighted hooks and transcripts. Ideas include hooks, scripts, scene breakdowns, and inspiration sources with real creator data.

Base URL: https://agent.gen.pro/v1 (same API key as the main API)

Terminal window
curl -X POST https://agent.gen.pro/v1/agent/run \
-H "X-API-Key: $GEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "generate 5 content ideas focused on before/after transformations, keep under 12 seconds",
"agent_id": "YOUR_AGENT_ID"
}'

Response (202):

{
"run_id": "abc-123",
"conversation_id": "def-456",
"status": "running",
"firebase_path": "/agent_runs/11/abc-123/"
}
Terminal window
curl https://agent.gen.pro/v1/agent/runs/abc-123 \
-H "X-API-Key: $GEN_API_KEY"

Poll every 5 seconds until status is "completed". The messages array contains the generated ideas.

Terminal window
curl -X POST https://agent.gen.pro/v1/agent/run \
-H "X-API-Key: $GEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "make idea 1 hook shorter and punchier. change idea 3 to montage format.",
"conversation_id": "def-456",
"agent_id": "YOUR_AGENT_ID"
}'

Pass the conversation_id from step 1 to refine in context.

LayerScopeExample
Per-batch requirementsThis generation only”focus on before/after”, “under 12 seconds”
Long-term preferencesALL future generations”always use statement hooks”, “target women 25-34”
Feedback/refinementSpecific ideas”make idea 3 punchier”, “redo 2 and 4 as montage”
Terminal window
curl -X POST https://agent.gen.pro/v1/agent/run \
-H "X-API-Key: $GEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "remember: always use statement hooks, never questions. target women 25-34.",
"agent_id": "YOUR_AGENT_ID"
}'

Preferences are stored in the agent’s config and applied to every future generation.

generated → approve_to_create → ready_for_review → approved_to_post → posted

Use change_idea, change_video, or rejected when an idea needs edits or should not move forward.

Terminal window
curl "https://agent.gen.pro/v1/agent/ideas?agent_id=YOUR_AGENT_ID&status=generated" \
-H "X-API-Key: $GEN_API_KEY"
Terminal window
curl -X PUT "https://agent.gen.pro/v1/agent/ideas/123/status/approve_to_create" \
-H "X-API-Key: $GEN_API_KEY"

The firebase_path from the run response points to a run-specific progress stream:

  • status — “running”, “completed”, or “failed”
  • plan — numbered checklist of what the agent is doing
  • thinking — progress messages
  • messages — output when complete

All content ideas operations are available as MCP tools:

ToolPurpose
gen_generate_content_ideasGenerate ideas with optional requirements and video type filter
gen_refine_content_ideasIterate on ideas in conversation context
gen_set_content_preferenceSet persistent generation rules
gen_get_run_statusPoll run status
gen_list_content_ideasList ideas with optional status filter
gen_update_idea_statusUpdate idea status