v1

latestSwagger 2.0Apache 2.02026-07-13123128517.6 KB
me

Find credit usage grouped by period

Find credit usage for the user. Returns credits usage grouped by time period (day, week, month, etc.) for time period specified or if unspecified then total for all time. For authentication use api credentials.

get/me/billing/credit-usage/grouped/{rollupBinType}

Path parameters

rollupBinType'TOTAL' | 'YEARS' | 'QUARTERS' | 'MONTHS' | 'WEEKS' | 'DAYS' | 'MINUTES' | 'HOUROFDAY' | 'DAYOFWEEK' required

Grouping period: YEARS, MONTHS, WEEKS, DAYS, etc.

Query parameters

intervalBegininteger

Beginning of usage period formatted in unix time milliseconds. Example: 1473781817000

intervalEndinteger

End of usage period formatted in unix time milliseconds. Example: 1473781817000

Response

successful operation

intervalBegininteger

Start of usage period formatted in unix time milliseconds. Example: 1473781817000 for Sat, 05 Jan 1985 14:03:37 GMT

intervalEndinteger

End of usage period formatted in unix time milliseconds. Example: 1473781817000 for Sat, 05 Jan 1985 14:03:37 GMT

callsDurationMinutesinteger

Sum of calls duration rounded to nearest whole minute

textsSentinteger

Number of texts sent

creditsUsednumber

Total credits used calls and texts.