curl https://api.initrepo.com/v1/projects/550e8400-e29b-41d4-a716-446655440000 \ -H "Authorization: Bearer ir_live_your_api_key" \ -H "API-Version: v1.0"
{ "success": true, "data": { "projectId": "550e8400-e29b-41d4-a716-446655440000", "status": "in_progress", "estimatedCompletionMs": 120000 } }
Retrieves the current status of a project and returns results when complete.
{ "success": true, "data": { "projectId": "550e8400-e29b-41d4-a716-446655440000", "status": "completed", "project": { "name": "AI-Commerce Platform", "description": "Modern e-commerce platform with AI-powered recommendations", "type": "web", "questionnaire": { "targetAudience": "Small to medium online retailers", "monetization": "SaaS subscription model", "techStack": ["React", "Node.js", "PostgreSQL", "Redis"] }, "documents": [ { "type": "README", "filename": "README.md", "content": "# AI-Commerce Platform\n\nA modern e-commerce solution...", "generated_at": "2024-01-15T10:30:00Z", "stage": "project-brief", "tokens_used": 1200 }, { "type": "Product Requirements", "filename": "PRD.md", "content": "# Product Requirements Document\n\n## Overview...", "generated_at": "2024-01-15T10:32:00Z", "stage": "requirements", "tokens_used": 2100 } ] }, "metadata": { "creditsConsumed": 15000, "generationTimeMs": 165000, "documentsGenerated": 10 } } }
{ "success": true, "data": { "projectId": "550e8400-e29b-41d4-a716-446655440000", "status": "failed", "error": { "code": "generation_failed", "message": "Project generation failed due to AI service timeout. Credits refunded." } } }
in_progress
completed
failed
Bearer token authentication using API keys (ir_live_* or ir_test_*)
The unique identifier of the project
Project status retrieved successfully
true
Show child attributes