Skip to content

Conversations

Every time you start a fresh content ideas run (without a conversation_id), the Ideas Engine creates a new conversation. Every refinement call with that conversation_id appends to it. Conversations are the durable record of a brainstorm — you can come back weeks later, scroll back through the ideas, and iterate.

Base URL: https://agent.gen.pro/v1

Terminal window
curl "https://agent.gen.pro/v1/agent/conversations?agent_id=$AGENT_ID" \
-H "X-API-Key: $GEN_API_KEY"

Response:

{
"conversations": [
{
"id": "conv_def456",
"agent_id": "agent_xyz789",
"title": "Before/after taco ideas",
"pinned": false,
"created_at": "2026-04-10T09:00:00Z",
"updated_at": "2026-04-18T11:30:00Z",
"run_count": 4
}
]
}
Terminal window
curl "https://agent.gen.pro/v1/agent/conversations/conv_def456" \
-H "X-API-Key: $GEN_API_KEY"
Terminal window
curl "https://agent.gen.pro/v1/agent/conversations/conv_def456/messages" \
-H "X-API-Key: $GEN_API_KEY"

Messages come back in chronological order. Each message has a role ("user" or "assistant") and the content. Assistant messages carrying ideas have structured data with the full idea payloads.

Terminal window
curl "https://agent.gen.pro/v1/agent/conversations/conv_def456/runs" \
-H "X-API-Key: $GEN_API_KEY"

Useful for auditing which runs touched this conversation and their completion status.

Terminal window
curl -X PATCH "https://agent.gen.pro/v1/agent/conversations/conv_def456" \
-H "X-API-Key: $GEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "title": "Taco launch campaign", "pinned": true }'

Pinned conversations float to the top of the list in the UI.

Terminal window
curl -X DELETE "https://agent.gen.pro/v1/agent/conversations/conv_def456" \
-H "X-API-Key: $GEN_API_KEY"

Deletes the conversation and all its runs + messages. Ideas that were generated in the conversation survive — delete those separately through the ideas endpoints if you want them gone.