Lets you review your message stats including cost, number of inbound and outbound messages, and the total number of messages sent and received on your account grouped by period in this order: yearly, monthly, daily, and lifetime.
API Upgrade
To upgrade from v2 to v2.1, see Upgrade to Flowroute Messaging API v2.1.
Endpoint
GET /message-statsResponse Format
On success, the HTTP status code in the response header is 200 OK and the response body contains an array of message-stats objects. On error, the header status code is an error code and the response body contains an error object.-
data
arrayAn array of message-stats objects for your account.
-
attributes
objectDifferent attributes of a message-stats object:
amount_display float- The cost of the message in USD.
amount_nanodollars number- The cost of the message in nanodollars. The displayed nanodollars amount is the amount_display value multiplied by 1,000,000,000 (one billion) for a corresponding whole number.
date string- Associated period for the returned message stats. This could be a specific year in YYYY format, year and month in YYYY-MM, date in YYYY-MM-DD format, or lifetime.
message_inbound integer- The total number of inbound messages sent to any of your Flowroute long code or toll-free number.
message_outbound integer- The total number of outbound messages sent from any of your Flowroute long code or toll-free number.
message_total string- Combined total number of inbound and outbound messages on your Flowroute account.
-
id
stringID of the message-stats object which is equal to the date value.
-
type
stringThis will always be message-stats.