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. This endpoint is a replica of the v2 implementation.
Response FormatOn 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.
An array of message-stats objects for your account.
Different 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 of the message-stats object which is equal to the date value.
This will always be message-stats.