Documentation Index
Fetch the complete documentation index at: https://docs.thig.ai/llms.txt
Use this file to discover all available pages before exploring further.
AI Tools API
All AI tool endpoints use SSE streaming unless noted. They require authentication and are rate-limited.
PRD Coach
Get a CPO-level PRD review with scoring.
Body:
| Field | Type | Required | Description |
|---|
prdContent | string | Yes | PRD content to review |
projectName | string | No | Project name for context |
projectId | string | No | Save review to project’s stakeholder views |
curl -N -X POST https://app.thig.ai/api/ai/coach \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: text/event-stream" \
-d '{"prdContent": "# My PRD\n\n## Problem Statement\n...", "projectName": "Mobile App"}'
SSE done payload:
{
"review": {
"overallScore": 78,
"executiveSummary": "...",
"dimensions": { "clarity": 85, "completeness": 72, ... },
"strengths": ["..."],
"improvements": [{ "priority": "high", "suggestion": "..." }],
"missingSections": ["..."],
"recommendations": [{ "effort": "low", "impact": "high", "description": "..." }]
}
}
AI Improvements
List Improvement Types
Returns available improvement types.
Apply Improvement (Streaming)
Body:
| Field | Type | Required | Description |
|---|
content | string | Yes | Text to improve |
improvementType | string | Yes | Type: improve_writing, make_concise, add_detail, fix_grammar, make_technical, simplify, add_user_focus, add_metrics |
customPrompt | string | No | Custom improvement instructions |
curl -N -X POST https://app.thig.ai/api/ai/improve \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: text/event-stream" \
-d '{"content": "The app lets users do stuff with their data.", "improvementType": "improve_writing"}'
Improvement Types:
| Type | Description |
|---|
improve_writing | Better clarity and flow |
make_concise | Shorten while preserving meaning |
add_detail | Expand with specifics |
fix_grammar | Correct grammar and spelling |
make_technical | Add technical depth |
simplify | Plain language rewrite |
add_user_focus | Center on user needs |
add_metrics | Add measurable success criteria |
AI Suggestions
Non-streaming. Analyzes PRD and returns 3-5 improvement suggestions.
Body:
| Field | Type | Required | Description |
|---|
content | string | Yes | PRD content to analyze |
projectName | string | No | Project name |
curl -X POST https://app.thig.ai/api/ai/suggestions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"content": "# My PRD\n\n## Problem\nUsers need a faster way to...", "projectName": "Mobile App"}'
Response:
{
"suggestions": [
{
"id": "sug_1",
"section": "Problem Statement",
"type": "improvement",
"title": "Add quantitative data",
"description": "Consider adding market size or user pain point statistics",
"severity": "warning"
}
]
}
User Stories (Streaming)
POST /api/ai/user-stories
Body:
| Field | Type | Required | Description |
|---|
content | string | Yes | Source content |
source | string | Yes | prd, feature, or requirements |
projectName | string | No | Project name |
projectId | string | No | Save to project’s stakeholder views |
curl -N -X POST https://app.thig.ai/api/ai/user-stories \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: text/event-stream" \
-d '{"content": "Users can create and share documents", "source": "prd", "projectName": "Docs App"}'
Technical Specs (Streaming)
POST /api/ai/technical-specs
Body:
| Field | Type | Required | Description |
|---|
prdContent | string | Yes | PRD content |
projectName | string | No | Project name |
focusAreas | string[] | No | Specific areas to focus on |
projectId | string | No | Save to project |
curl -N -X POST https://app.thig.ai/api/ai/technical-specs \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: text/event-stream" \
-d '{"prdContent": "# PRD\n\n## Features\n- Real-time sync\n- Offline mode", "focusAreas": ["architecture", "data-model"]}'
Implementation Roadmap
Non-streaming.
Body:
| Field | Type | Required | Description |
|---|
prdContent | string | Yes | PRD content |
teamSize | string | Yes | small, medium, or large |
methodology | string | Yes | Development methodology |
curl -X POST https://app.thig.ai/api/ai/roadmap \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prdContent": "# My PRD\n\n## Features\n- User auth\n- Dashboard\n- Reports",
"teamSize": "small",
"methodology": "agile"
}'
Code Spec (Streaming)
Generate a developer specification sheet.
Body:
| Field | Type | Required | Description |
|---|
content | string | Yes | PRD content |
projectId | string | No | Associate with project |
provider | string | No | Force AI provider |
curl -N -X POST https://app.thig.ai/api/ai/code-spec \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: text/event-stream" \
-d '{"content": "# E-commerce PRD\n\n## Features\n- Shopping cart\n- Checkout flow", "provider": "anthropic"}'
Launch Content (Streaming)
POST /api/ai/launch-content
Body:
| Field | Type | Required | Description |
|---|
content | string | Yes | PRD content |
contentType | string | Yes | blog_post, press_release, social_media, email_announcement, demo_script, or changelog |
projectId | string | No | Associate with project |
provider | string | No | Force AI provider (openai, anthropic, gemini) |
curl -N -X POST https://app.thig.ai/api/ai/launch-content \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: text/event-stream" \
-d '{
"content": "# SaaS Analytics PRD\n\nReal-time dashboard for tracking...",
"contentType": "blog_post"
}'
Wireframe / Diagrams (Streaming)
Body:
| Field | Type | Required | Description |
|---|
content | string | Yes | PRD content |
diagramType | string | Yes | user_flow, system_architecture, screen_layout, data_flow, sequence, or journey_map |
section | string | No | Focus on a specific PRD section |
projectId | string | No | Associate with project |
curl -N -X POST https://app.thig.ai/api/ai/wireframe \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: text/event-stream" \
-d '{
"content": "# User Management\n\nUsers can register, login, manage profiles...",
"diagramType": "user_flow",
"section": "Authentication"
}'