Bỏ qua tới nội dung

Báo cáo

Báo cáo tổng quan, lượng tin, giờ cao điểm, chiến dịch, workflow. · 1 endpoint

Báo cáo (dashboard, message-volume, peak-hours, contact-growth, segmentation, campaign-comparison, friend-requests, workflows, ai, response-time, label-usage)

GET/api/v1/analytics/{report}Scope: analytics:read

Tham số

report
path · bắt buộc
"dashboard" | "message-volume" | "peak-hours" | "contact-growth" | "segmentation" | "campaign-comparison" | "friend-requests" | "workflows" | "ai" | "response-time" | "label-usage"
account_id
query · tuỳ chọn
string
max 200
Bắt buộc với báo cáo theo tài khoản
from
query · tuỳ chọn
integer
≥ 0
Epoch ms (mặc định 30 ngày trước)
to
query · tuỳ chọn
integer
≥ 0
Epoch ms (mặc định bây giờ)
granularity
query · tuỳ chọn
"hour" | "day"
default "day"
thread_type
query · tuỳ chọn
"user" | "group"

Lệnh mẫu

bash
curl "http://127.0.0.1:9900/api/v1/analytics/{report}" \
  -H "Authorization: Bearer dpk_xxx"