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 series and totals for used messages. Can group by type, channel, template category, or campaign.

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, or campaign.
modeenumnofast (default, daily aggregates) or full (transactions, short ranges).

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.