Export email usage data for all tenants in CSV or JSON Lines format. Designed for billing system integration, data warehousing, and analytics.
Jobs to be done:
Export formats:
csv - UTF-8 with BOM for Excel compatibility (default)jsonl - JSON Lines (one JSON object per line, streamable)CSV columns:
tenant_id, tenant_name, external_id, status, sent, delivered,
soft_failed, hard_failed, bounced, held, delivery_rate,
bounce_rate, period_start, period_end
Response headers:
Content-Disposition - Filename for downloadContent-Type - text/csv or application/x-ndjsonUse your API key from arkhq.io/org/credentials
Authorization: Bearer YOUR_API_KEYTime period for export.
Shortcuts: this_month, last_month, last_30_days, etc.
Month format: 2024-01 (YYYY-MM)
Custom range: 2024-01-01..2024-01-15
Export format
csv, jsonl Filter by tenant status
active, suspended, archived Only include tenants with at least this many emails sent
x >= 0Timezone for period calculations (IANA format)
Usage export data
The response is of type string.