Create a new conversation with AI agents. Conversations maintain context across multiple messages and allow for interactive discussions about your codebase.
x-api-key header.
Request & Response
| Location | Field | Type | Required | Default | Description |
|---|---|---|---|---|---|
| Query | hidden | boolean | optional | false | Controls visibility in the web UI. Set to true to hide the conversation from your dashboard. |
| Body | user_id | string | required | - | User identifier. The server uses the authenticated user ID from the API key. |
| Body | title | string | required | - | Name for the conversation. Pass "Untitled" to auto-generate a name from the project. |
| Body | status | string | required | - | Initial conversation status. Use "active" for a standard new conversation. Valid values: active, archived, deleted. |
| Body | project_ids | array[string] | required | - | List of project UUIDs to include in the conversation context |
| Body | agent_ids | array[string] | required | - | List of agent identifiers to enable (e.g., ["codebase_qna_agent"]) |
| Response | message | string | - | - | Confirmation message indicating successful creation |
| Response | conversation_id | string | - | - | Unique identifier for the conversation. Use this ID to send messages. |
401 Unauthorized
402 Payment Required
500 Internal Server Error
Empty response or missing conversation_id
conversation_id.Solution:Invalid project_ids or agent_ids
API key authentication. Get your key from potpie settings page
Whether to hide this conversation from the web UI
User identifier. The server uses the authenticated user ID from the API key.
Name for the conversation. Pass "Untitled" to auto-generate a name from the project.
Initial conversation status. Use "active" for a standard new conversation.
active, archived, deleted List of project IDs to include in the conversation
List of agent IDs to use in the conversation