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.
User API
Profile
Get Profile
Returns user profile and preferences.
curl https://app.thig.ai/api/user/profile \
-H "Authorization: Bearer YOUR_API_KEY"
Update Profile
Body:
| Field | Type | Description |
|---|
name | string | Display name |
jobTitle | string | Job title |
bio | string | Short bio |
avatar | string | Avatar URL |
preferredStyle | string | Document style preference |
curl -X PATCH https://app.thig.ai/api/user/profile \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Jane Smith", "jobTitle": "Product Manager", "preferredStyle": "comprehensive"}'
BYOK API Keys
Manage personal AI provider keys (Bring Your Own Key).
List Keys
Returns masked keys for all configured providers.
Add Key
Body:
| Field | Type | Required | Description |
|---|
provider | string | Yes | openai, anthropic, or gemini |
key | string | Yes | API key (encrypted before storage) |
name | string | No | Display name |
curl -X POST https://app.thig.ai/api/user/api-keys \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"provider": "openai", "key": "sk-proj-abc123...", "name": "My OpenAI Key"}'
Response:
{
"id": "key_123",
"provider": "openai",
"name": "My OpenAI Key",
"createdAt": "2026-01-15T10:30:00Z"
}
Remove Key
DELETE /api/user/api-keys/{keyId}
Timezone
Update Timezone
Body:
{ "timezone": "America/New_York" }
Must be a valid IANA timezone string.
curl -X PATCH https://app.thig.ai/api/user/timezone \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"timezone": "America/New_York"}'
Onboarding
Check Status
Response:
{
"completed": true,
"completedAt": "2026-01-15T10:30:00Z",
"preferences": { ... }
}
Complete Onboarding
POST /api/user/onboarding
Body:
| Field | Type | Required | Description |
|---|
fullName | string | Yes | Full name |
jobTitle | string | Yes | Job title |
company | string | Yes | Company name |
useCase | string | Yes | Primary use case |
teamSize | string | Yes | Team size |
prdStyle | string | Yes | Preferred PRD style |
interests | string[] | Yes | Features of interest |
createOrg | boolean | No | Create organization |
orgName | string | No | Organization name |
inviteEmails | string[] | No | Emails to invite |
curl -X POST https://app.thig.ai/api/user/onboarding \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fullName": "Jane Smith",
"jobTitle": "Product Manager",
"company": "Acme Corp",
"useCase": "Product requirements",
"teamSize": "medium",
"prdStyle": "comprehensive",
"interests": ["ai-chat", "templates", "exports"]
}'
Onboarding Progress
GET /api/user/onboarding-progress
Returns a 5-step checklist with completion status.
Activity
Ping Activity
Records user activity. Server throttles to max once per 5 minutes.
Account Management
Data Export (GDPR)
GET /api/user/data-export
Downloads a JSON file containing all user data.
curl https://app.thig.ai/api/user/data-export \
-H "Authorization: Bearer YOUR_API_KEY" \
-o my-data.json
Delete Account
DELETE /api/user/delete-account
Body:
{ "confirmEmail": "jane@example.com" }
Permanently deletes the account and all associated data.