API Reference

This section contains detailed documentation for all available API endpoints.

Endpoints

EndpointMethodDescription
/api/products/{productId}/ai-commentsGETList comments with filtering and pagination
/api/products/{productId}/ai-comments/manual-importPOSTImport Reddit posts and create comments
/api/products/{productId}/ai-comments/{commentId}/approvePOSTApprove a comment for posting
/api/comment/{commentId}GETGet comment details

Common Response Format

All API responses follow this format:

json
{
  "success": true,
  "message": "Operation completed",
  "data": { ... }
}

Error Response Format

json
{
  "error": "Error message",
  "success": false
}

HTTP Status Codes

StatusDescription
200Success
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing API key
403Forbidden - Insufficient permissions or credits
404Not Found - Resource doesn't exist
500Internal Server Error