Reports

Generate PDF and Excel reports from raw data

1

POST your data

Send a JSON array with a title and output format

2

Pipeline runs

AutoReport processes and formats your data (~8 seconds)

3

Download your report

Get a PDF or Excel file — board-ready, zero effort

Completed

Rows Processed

Total Cost

Endpoint

POST/v1/reports/generate
GET/v1/reports

Generate Report

POST /v1/reports/generate

Request

curl -X POST https://api.prostackng.com.ng/v1/reports/generate \
  -H "X-API-Key: psk_test_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Monthly Sales Report",
    "output_format": "pdf",
    "data": [
      { "product": "Widget A", "sales": 120, "revenue": 60000 },
      { "product": "Widget B", "sales": 80,  "revenue": 40000 }
    ]
  }'

Response

{
  "success": true,
  "report_id": "rpt_abc123",
  "title": "Monthly Sales Report",
  "status": "completed",
  "output_format": "pdf",
  "download_url": "https://cdn.prostackng.com.ng/reports/rpt_abc123.pdf",
  "row_count": 2,
  "cost": 20.00
}
Report History
0 reports
Loading...