Skip to main content

API Reference

The thig.ai API provides programmatic access to projects, PRDs, templates, AI tools, exports, and more.

Base URL

Authentication

All API requests require authentication via session cookies or API keys. See Authentication for details.

Response Format

Success Response

Some endpoints return the data directly without a wrapper:

Error Response

Common HTTP Status Codes

Rate Limiting

API requests are rate-limited based on:
  • Subscription tier — Higher plans get higher limits
  • Endpoint type — AI endpoints have stricter limits than CRUD endpoints
When rate limited, you’ll receive a 429 response. Wait and retry after the indicated period.

Streaming Endpoints

AI-powered endpoints use Server-Sent Events (SSE) for streaming responses. Event types:

Handling SSE Streams

Feature Flags

Some endpoints are gated by feature flags and may return 403 if the feature is disabled for your organization. Feature-gated endpoints are noted in their documentation.

API Sections

Projects

CRUD operations for PRD projects

Chat & PRD Generation

AI conversation and PRD generation

AI Tools

User stories, tech specs, roadmaps, wireframes

Templates

Template CRUD and marketplace

Exports

PDF, DOCX, HTML, Notion, Google Docs export

Organization

Org settings, members, branding, domain

User

Profile, BYOK keys, onboarding, data export

Webhooks & Integrations

Outgoing webhooks and third-party integrations

Notifications

In-app notifications, preferences, scheduled exports

Usage & Billing

Usage metrics, plan limits, billing management

Admin & Enterprise

Teams, approval workflows, audit logs, IP allowlist