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.
Templates API
List Templates
List templates available to the current user (public + organization + personal).
Query Parameters:
| Parameter | Type | Description |
|---|
category | string | Filter by category |
search | string | Search by name/description |
type | string | Filter by template type |
curl -G https://app.thig.ai/api/templates \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "category=product" \
-d "search=mobile"
Get Template
Returns template details. systemPrompt is replaced with [Protected] for non-superadmin users on system/marketplace templates.
curl https://app.thig.ai/api/templates/tmpl_456 \
-H "Authorization: Bearer YOUR_API_KEY"
Template Versions
GET /api/templates/{id}/versions
List all versions of a template. Requires org admin.
Restore Template Version
POST /api/templates/{id}/restore
Body: { "versionId": "ver_123" }
Admin Template Management
List (Admin)
Query Parameters:
| Parameter | Type | Description |
|---|
templateType | string | personal, organization, system, marketplace |
category | string | Template category |
visibility | string | personal, organization, public |
isActive | boolean | Active status |
isFeatured | boolean | Featured status |
pricingTier | string | Pricing tier filter |
search | string | Search query |
sortBy | string | Sort field |
sortOrder | string | asc or desc |
limit | number | Results per page |
offset | number | Pagination offset |
Create Template
POST /api/admin/templates
Body:
| Field | Type | Required | Description |
|---|
name | string | Yes | Template name |
description | string | Yes | Description |
category | string | Yes | Category |
templateType | string | No | personal, organization, system, marketplace |
systemPrompt | string | No | AI instructions |
initialQuestion | string | No | First question AI asks |
sections | string[] | No | PRD sections |
tags | string[] | No | Tags |
features | string[] | No | Key features |
visibility | string | No | personal, organization, public |
isActive | boolean | No | Active status |
isFeatured | boolean | No | Featured status |
pricingTier | string | No | Pricing tier |
curl -X POST https://app.thig.ai/api/admin/templates \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "SaaS PRD Template",
"description": "Optimized for SaaS product requirements",
"category": "product",
"sections": ["Problem Statement", "User Personas", "Features", "Success Metrics"],
"tags": ["saas", "product"],
"visibility": "organization"
}'
Update Template
PATCH /api/admin/templates/{id}
Partial update. System/marketplace templates blocked for non-superadmins.
Delete Template
DELETE /api/admin/templates/{id}
Marketplace
Browse Marketplace
GET /api/marketplace-templates
Public endpoint. No authentication required.
Query Parameters:
| Parameter | Type | Description |
|---|
category | string | Filter by category |
search | string | Search query |
featured | boolean | Featured only |
pricingTier | string | Tier filter |
sort | string | Sort order |
curl -G https://app.thig.ai/api/marketplace-templates \
-d "category=product" \
-d "featured=true"
Get Marketplace Template
GET /api/marketplace-templates/{templateId}
Submit Template
POST /api/template-submissions
Submit a community template for marketplace approval.
curl -X POST https://app.thig.ai/api/template-submissions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"templateId": "tmpl_789"}'
List My Submissions
GET /api/template-submissions
View your own template submissions and their approval status.