Developer API

Build with the Thig.ai API

130+ REST endpoints to integrate AI-powered PRD generation into your workflow. Full OpenAPI documentation with real-time streaming support.

api-example.js
// Create a new PRD project
const response = await fetch('https://app.thig.ai/api/projects', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: 'Mobile App PRD',
    templateId: 'template-uuid'
  })
});

const project = await response.json();
console.log(project.id); // New project ID
130+
API Endpoints
99.9%
Uptime SLA
<100ms
Avg Response
OpenAPI 3.0
Specification

Built for Developers

Everything you need to integrate PRD generation into your tools

Real-time Streaming

Get AI responses token-by-token with Server-Sent Events for instant feedback.

Secure Authentication

Bearer token authentication with encrypted API keys and role-based access.

RESTful Design

Clean, predictable REST API following industry best practices and standards.

Webhooks

Real-time notifications for project updates, PRD generation, and team events.

OpenAPI Spec

Full OpenAPI 3.0 documentation with interactive Swagger UI explorer.

SDK Support

Official SDKs for JavaScript/TypeScript with more languages coming soon.

API Endpoints

Comprehensive coverage for every use case

4

Authentication

Register, login, profile, onboarding

15

Projects

CRUD, conversation, comments, assignment

6

PRD Generation

Generate, stream, versions

8

AI Services

Coach, improve, specs, stories, roadmap

8

Templates

CRUD, versions, marketplace

10

Organization

Members, invitations, domain

5

Billing

Checkout, portal, webhooks

30

Admin

Dashboard, analytics, settings

2

Export

PDF, DOCX

Quick Start Examples

Get up and running in minutes

POST /api/generate-prd/stream
// Generate PRD with streaming
const response = await fetch('https://app.thig.ai/api/generate-prd/stream', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    projectId: 'project-uuid',
    style: 'comprehensive',
    provider: 'anthropic'
  })
});

// Handle streaming response
const reader = response.body.getReader();
while (true) {
  const { done, value } = await reader.read();
  if (done) break;
  console.log(new TextDecoder().decode(value));
}
POST /api/chat
// Send message to AI for requirements gathering
const response = await fetch('https://app.thig.ai/api/chat', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    messages: [
      { role: 'user', content: 'I want to build a task management app' }
    ],
    provider: 'openai',
    projectId: 'project-uuid'
  })
});

const aiResponse = await response.json();
console.log(aiResponse.content);

Rate Limits

Scale with generous rate limits based on your plan

FREE
10 req/min
STARTER
30 req/min
PROFESSIONAL
60 req/min
ENTERPRISE
300 req/min

Ready to Start Building?

Get your API key and start integrating AI-powered PRD generation today.