Check usage

See your workspace's consumption over a rolling window.

Report your workspace’s usage over a rolling window (30d, 60d, or 90d). Needs the workspace:read scope.

1from onepin import OnepinClient
2
3client = OnepinClient()
4
5summary = client.usage.usage_summary(range="30d").data
6by_language = client.usage.usage_by_language(range="30d").data
7activity = client.usage.usage_activity(range="30d").data

To estimate a single run’s cost before running it, use onepin workflows preview-run <WORKFLOW_ID> (or client.workflows.preview_run(workflow_id)).