logo
ReportsGenerate report

Generate report

Queue a new report for generation. Reports are generated asynchronously by a background worker.

Report types:

  • campaign — Generate a report for specific campaigns (1-10). Creates one report per campaign.
  • workspace — Generate a report covering all workspace activity.
  • organizational — Generate a report aggregating all workspaces owned by the authenticated user.

The report is created with status queued and processed in the background. Use webhooks or poll the report status to know when it's ready.

curl -X POST "https://api.sendkit.ai/v1/reports" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -d '{
  "reportType": "campaign",
  "campaignIds": [
    "664f0a1b2c3d4e5f6a7b8c01",
    "664f0a1b2c3d4e5f6a7b8c02"
  ],
  "periodStart": "2026-01-01",
  "periodEnd": "2026-04-17",
  "sections": {
    "executiveSummary": true,
    "campaignPerformance": true,
    "mailboxHealth": false
  }
}'
{
  "success": true,
  "data": {
    "reports": [
      {
        "id": "666f1a2b3c4d5e6f7a8b9c10",
        "title": "Q1 Outreach Report",
        "reportType": "campaign",
        "status": "queued"
      },
      {
        "id": "666f1a2b3c4d5e6f7a8b9c11",
        "title": "Follow-up Campaign Report",
        "reportType": "campaign",
        "status": "queued"
      }
    ],
    "message": "2 reports queued for generation"
  }
}
POST
/v1/reports
POST
API Key (header: X-Api-Key)
X-Api-Keystring
Required

Platform API key (sk_user_...) or Workspace API key (sk_...)

Platform API key (sk_user_...) or Workspace API key (sk_...)
Content-Typestring
Required

The media type of the request body

Options: application/json
reportTypestring
Required

Type of report to generate

Options: campaign, workspace, organizational
campaignIdsarray

Campaign IDs to include (required for campaign type, max 10)

periodStartstring

Optional period start date (ISO 8601 or YYYY-MM-DD)

periodEndstring

Optional period end date (ISO 8601 or YYYY-MM-DD)

recipientIdsarray

Recipient IDs to send the report to immediately

sectionsobject

Toggle which sections to include in the report. All default to true.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-Api-Keystring
Required

API Key for authentication. Platform API key (sk_user_...) or Workspace API key (sk_...)

Body

application/json
reportTypestring
Required

Type of report to generate

Allowed values:campaignworkspaceorganizational
campaignIdsarray

Campaign IDs to include (required for campaign type, max 10)

periodStartstring

Optional period start date (ISO 8601 or YYYY-MM-DD)

periodEndstring

Optional period end date (ISO 8601 or YYYY-MM-DD)

recipientIdsarray

Recipient IDs to send the report to immediately

Responses