action callfire_get_credit_usage { label: "Find credit usage" description: "Find credit usage for the user. Returns credits usage for time period specified or if unspecified then total for all time. For authentication use api credentials." provider: callfire method: GET path: "/me/billing/credit-usage" encoding: json input: { type: "object" properties: { intervalBegin: { type: "integer" format: "int64" } intervalEnd: { type: "integer" format: "int64" } } additionalProperties: false } output: { type: "object" description: "Contains statistics of billing plan usage" properties: { callsDurationMinutes: { type: "integer" format: "int32" description: "Sum of calls duration rounded to nearest whole minute" } creditsUsed: { type: "number" description: "Total credits used calls and texts." } intervalBegin: { type: "integer" format: "int64" description: "Start of usage period formatted in unix time milliseconds. Example: 1473781817000 for Sat, 05 Jan 1985 14:03:37 GMT" } intervalEnd: { type: "integer" format: "int64" description: "End of usage period formatted in unix time milliseconds. Example: 1473781817000 for Sat, 05 Jan 1985 14:03:37 GMT" } textsSent: { type: "integer" format: "int32" description: "Number of texts sent" } } } }