SynthPipe API Documentation

AI Agent-friendly synthetic data generation

Quick Start for AI Agents

Base URL: https://synth-pipe-agentcreator.replit.app/api/
Format: JSON requests and responses
Auth: Optional API key for rate limiting

Primary Endpoint: POST /api/generate

Generate synthetic data using natural language or structured parameters.

Request Headers:
Content-Type: application/json
X-API-Key: your_api_key (optional)
Request Body Options:
{
  "query": "Generate 10 e-commerce customer orders with products and pricing"
}

{
  "query": "Create 5 employee records with salaries and departments"
}

{
  "query": "Generate financial transaction data for Q1 analysis"
}
{
  "category": "ecommerce",
  "size": 10
}

{
  "category": "employee", 
  "size": 5
}

{
  "category": "finance",
  "size": 100
}
Response Format:
{
  "success": true,
  "data": [
    {
      "order_id": "ORD-2024-001",
      "customer_name": "Sarah Chen",
      "product": "Wireless Headphones",
      "price": 149.99,
      "order_date": "2024-08-04",
      "shipping_address": "123 Tech St, Austin TX"
    }
  ],
  "metadata": {
    "size": 10,
    "category": "ecommerce", 
    "query": "Generate customer orders",
    "generated_at": "2025-08-04T23:45:00Z",
    "remaining_limit": 490
  }
}

Available Data Categories

  • medical - Patient records, diagnoses
  • finance - Transactions, accounts
  • employee - HR records, salaries
  • student - Academic records
  • contact - Customer contacts
  • ecommerce - Products, orders
  • logistics - Shipping, tracking
  • legal - Contracts, cases
  • cybersecurity - Logs, threats
  • ai - ML training data
  • gaming - Player profiles
  • real_estate - Property listings
  • restaurant - Menu, orders
  • travel - Bookings, itineraries
  • social_media - Posts, profiles
  • vehicle - Car registrations
  • resume - Professional profiles
  • general - Basic personal data

Rate Limits & Authentication

Plan Limit Price API Access
Free 500 records total $0 Get API Key
Starter 10,000/month $19/month Upgrade
Pro 50,000/month $49/month Upgrade
Enterprise 500,000/month $199/month Upgrade

Error Codes

Code Description HTTP Status
MISSING_QUERY Query parameter is required 400
SIZE_LIMIT_EXCEEDED Maximum 1000 records per request 400
QUOTA_EXCEEDED API quota exceeded 402
GENERATION_FAILED Data generation error 500

Example Requests

curl Examples:
# E-commerce data
curl -X POST https://synth-pipe-agentcreator.replit.app/api/generate \
  -H "Content-Type: application/json" \
  -d '{"query": "Generate 5 product sales with customer info"}'

# Financial transactions  
curl -X POST https://synth-pipe-agentcreator.replit.app/api/generate \
  -d '{"category": "finance", "size": 10}'

# Employee records
curl -X POST https://synth-pipe-agentcreator.replit.app/api/generate \
  -d '{"query": "Create HR dataset with 20 employees and salaries"}'

# Any custom request
curl -X POST https://synth-pipe-agentcreator.replit.app/api/generate \
  -d '{"query": "Generate student grade data for university analytics"}'
Python Example:
import requests

response = requests.post('https://synth-pipe-agentcreator.replit.app/api/generate', 
    headers={'Content-Type': 'application/json', 'X-API-Key': 'your_key'},
    json={'category': 'medical', 'size': 10}
)
data = response.json()