{
  "service": "Bulk API Trigger Platform",
  "version": "2.0",
  "endpoints": {
    "GET /health": "Health check and system status",
    "GET /jobs": "List recent jobs",
    "GET /jobs/{job_id}": "Get job details",
    "GET /jobs/{job_id}/errors": "Get job errors",
    "GET /jobs/{job_id}/report": "Get job report",
    "GET /metrics": "System metrics",
    "GET /config": "Current configuration",
    "GET /status": "Status of all active and recent jobs",
    "GET /resume/stats": "Resume statistics across all files",
    "POST /trigger": "Trigger a new job",
    "POST /trigger/batch": "Trigger multiple CSV files",
    "POST /resume/status": "Get resume status for a file",
    "POST /resume/clear": "Clear resume marker for a file"
  },
  "webhook_endpoint": {
    "url": "POST /trigger",
    "payload": {
      "csv_file": "Path to CSV file (required)",
      "job_name": "Custom job name (optional)",
      "skip_rows": "Number of rows to skip (optional, default: 0)",
      "resume": "Enable resume from last checkpoint (optional, default: true)",
      "force_restart": "Force restart from beginning (optional, default: false)"
    },
    "example": {
      "csv_file": "/app/data/csv/webhooks.csv",
      "job_name": "My Custom Job",
      "resume": true
    }
  }
}