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.
// 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 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
Authentication
Register, login, profile, onboarding
Projects
CRUD, conversation, comments, assignment
PRD Generation
Generate, stream, versions
AI Services
Coach, improve, specs, stories, roadmap
Templates
CRUD, versions, marketplace
Organization
Members, invitations, domain
Billing
Checkout, portal, webhooks
Admin
Dashboard, analytics, settings
Export
PDF, DOCX
Quick Start Examples
Get up and running in minutes
// 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));
} // 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
Ready to Start Building?
Get your API key and start integrating AI-powered PRD generation today.