Chat & PRD Generation API
General AI Chat
| Field | Type | Required | Description |
|---|---|---|---|
messages | array | Yes | Array of {role, content} message objects |
provider | string | No | Force a specific provider (openai, anthropic, gemini) |
projectId | string | No | Associate with a project for context |
Project Chat
| Field | Type | Required | Description |
|---|---|---|---|
message | string | Yes | User message |
conversationHistory | array | No | Previous messages for context |
Streaming Conversation
Generate PRD (Non-Streaming)
| Field | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Project to generate PRD for |
style | string | No | PRD style (comprehensive, technical, business, lean, agile) |
regenerate | boolean | No | Force regeneration |
Generate PRD (Streaming)
Chat Export
| Parameter | Type | Description |
|---|---|---|
format | string | pdf, csv, or json |