Usage Statistics

ToolREST EndpointAnnotations
get_usage_periodGET /v1/usage/periodread, idempotent
get_usage_summaryGET /v1/usage/summaryread, idempotent
get_usage_messagesGET /v1/usage/messagesread, idempotent
get_usage_conversationsGET /v1/usage/conversationsread, idempotent
get_usage_actorsGET /v1/usage/actorsread, idempotent

get_usage_period

Returns the active billing period for the workspace: billing type, plan, and included credits.

FieldTypeRequiredDescription
workspacestringnoWorkspace ID. If omitted, returns all workspaces accessible by the API key.

get_usage_summary

Returns the main monitoring summary: messages used, included credits, conversations, and autonomy rate.

FieldTypeRequiredDescription
workspacestringnoWorkspace ID. If omitted, returns all accessible workspaces.
startDatestringnoISO 8601 start date with offset. If omitted, uses the start of the billing period.
endDatestringnoISO 8601 end date with offset. If omitted, uses the end of the billing period.

get_usage_messages

Returns daily message series and totals. Distinguishes total volume, charged messages, and failed/non-billable messages.

FieldTypeRequiredDescription
workspacestringnoWorkspace ID. If omitted, returns all accessible workspaces.
startDatestringnoISO 8601 start date with offset.
endDatestringnoISO 8601 end date with offset.
groupByenumnotype (default), channel, templateCategory, campaign, or status.
modeenumnofast (default, daily aggregates) or full (transactions, maximum 92 days). Enterprise always uses fast.
universeenumnoall (default, includes failed/non-billable messages) or billable (charged messages only).

The response includes totalMessages, billableMessages, nonBillableMessages, and failedMessages. Each totalsByGroup row includes nonBillableMessages and, in fast mode, changePct vs the previous period.


get_usage_conversations

Returns conversation and autonomy metrics, with breakdowns by platform, agent, channel, or tag.

FieldTypeRequiredDescription
workspacestringnoWorkspace ID. If omitted, returns all accessible workspaces.
startDatestringnoISO 8601 start date with offset.
endDatestringnoISO 8601 end date with offset.
breakdownenumnoplatform (default), agent, channel, or tag.

get_usage_actors

Returns message consumption by actor: automatic agents, workspace users, contacts, and other buckets captured by Platica.

FieldTypeRequiredDescription
workspacestringnoWorkspace ID. If omitted, returns all accessible workspaces.
startDatestringnoISO 8601 start date with offset.
endDatestringnoISO 8601 end date with offset.