The analytics API gives you programmatic access to messaging performance data, campaign trends, billing status, and credit balance. All analytics endpoints are read-only and scoped to your organization. Date ranges default to the last 30 days when not specified.Documentation Index
Fetch the complete documentation index at: https://docs.messagesender.ai/llms.txt
Use this file to discover all available pages before exploring further.
Analytics overview
Query parameters
Start of the date range. Defaults to 30 days ago.
End of the date range. Defaults to now.
Response
Response fields
Counts of campaigns by status created within the date range.
Total outbound messages logged in the date range (excludes seed/test messages).
Messages confirmed delivered to the carrier or handset.
Percentage of total messages that reached
delivered status. Calculated as (delivered / total) * 100.Contacts with
isTextable: true—confirmed reachable by SMS.Contacts with
isOptedIn: false—they have opted out and cannot receive messages.Message and campaign trends
Query parameters
messages (default) returns daily message counts by status. campaigns returns daily campaign counts by status.Start of the date range. Defaults to 30 days ago.
End of the date range. Defaults to now.
Response — messages metric
Response — campaigns metric
Top performing campaigns
Query parameters
Number of campaigns to return. Default
10.Start of the date range. Defaults to 30 days ago.
End of the date range. Defaults to now.
Response
Best send times
Query parameters
Start of the analysis window. Defaults to 90 days ago.
End of the analysis window. Defaults to now.
Response
byDayOfWeek uses a 0-indexed week where 0 = Sunday, 1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday.Billing status
Response
Response fields
Current billing health:
active, past_due, suspended, overage_warning, or archived.How messaging costs are calculated:
unlimited (subscription-only, no per-message credits), per_message (credit balance only), or full_service (subscription plus included and purchasable credits).Active subscription details, or
null if your account is on a credit-only plan.Purchased credits currently available to spend.
Credits included with your subscription this billing period (applies to
full_service plans only).Total credits available:
available + included.Credit top-up products available for purchase, with pricing.
Credit balance
GET /api/billing/status when you only need the balance number.
Response
Credits are consumed when messages are successfully dispatched: 1 credit per SMS segment (up to 480 characters), 2 credits per MMS. Longer SMS messages use
ceil(length / 480) credits. Test sends and sandbox mode do not consume credits.Export analytics
Query parameters
Export type. Currently
campaigns is the only supported value.Start of the date range. Defaults to 30 days ago.
End of the date range. Defaults to now.