---
title: "Get CU usage by workflow"
method: GET
path: "/v1/organizations/{orgId}/cu/usage-by-workflow"
tags: ["CU"]
---

# Get CU usage by workflow

`GET /v1/organizations/{orgId}/cu/usage-by-workflow`

Get per-workflow CU cost breakdown for a time period

## Path parameters

- `orgId` string, required

## Query parameters

- `from` integer, required
- `to` integer, required

## Request body

- object

## Response `200`

OK

- GetCUUsageByWorkflowSuccessResponse
  - `code` integer
  - `data` CUUsageByWorkflowResult
    - `workflows` CUWorkflowUsageItem[]
      - `cuPerHour` number
      - `estimatedCostPerRun` integer
      - `isStream` boolean
      - `runCount` integer
      - `status` string
      - `totalCu` number
      - `triggerType` string
      - `workflowId` string
      - `workflowName` string
  - `message` string
  - `requestId` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.dev/b3os/apis/b3os-workflow-api.md) · [All operations](https://skmtc.dev/b3os/apis/b3os-workflow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/b3os/b3os-workflow-api/revisions/a8c7af3c66a1/schema)
