---
title: GET /api/v1/metering/costs/by-pipeline-run
description: Costs By Pipeline Run
locale: en
version: 0.2.0
canonical: https://enterium-developer-docs.pages.dev/developers/api/metering/get-metering-costs-by-pipeline-run/
---

> Documentation index: https://enterium-developer-docs.pages.dev/developers/llms.txt — every page of this portal has a Markdown twin at <route>.md; the frozen API contract is at https://enterium-developer-docs.pages.dev/developers/api/openapi.json.

:::note
Generated from the OpenAPI contract — do not edit by hand. Interactive explorer with full schemas: [https://entherium.duckdns.org:8443/reference](https://entherium.duckdns.org:8443/reference); frozen spec for this build: [openapi.json](/developers/api/openapi.json). Group: [metering](../).
:::

Costs By Pipeline Run

Per-run cost rows, newest first.

**Auth:** `Authorization: Bearer <token>` required

## Request

```sh
curl -sS -X GET "https://entherium.duckdns.org:8443/api/v1/metering/costs/by-pipeline-run" \
  -H "Authorization: Bearer <token>"
```

## Response `200`

The contract carries no example for this response; schema: `array of RunCostRow`. Field-level shape: [interactive explorer](https://entherium.duckdns.org:8443/reference).

## Returns

`array of RunCostRow` — Successful Response

| Field | Type | Description |
| --- | --- | --- |
| `ai_company` | `integer \| null` |  |
| `brave_calls` | `integer` | Web-search API calls billed to this bucket. |
| `cost_micro_usd` | `integer` |  |
| `generated_article_id` | `integer \| null` |  |
| `pipeline_id` | `string` |  |
| `run_guid` | `integer` |  |
| `salescontracts_id` | `integer \| null` |  |
| `total_tokens` | `integer \| null` |  |

## Parameters

| Parameter | In | Required | Type | Default | Constraints | Description |
| --- | --- | --- | --- | --- | --- | --- |
| `ai_company_id` | query | no | `integer \| null` | — | — |  |
| `from` | query | no | `string \| null` | — | date-time |  |
| `to` | query | no | `string \| null` | — | date-time |  |
| `limit` | query | no | `integer` | `100` | — |  |
| `offset` | query | no | `integer` | `0` | — |  |

## Errors

| Code | Meaning | Body |
| --- | --- | --- |
| `401` | Missing or invalid authentication credentials | `ErrorResponse` |
| `422` | Validation Error | `HTTPValidationError` |

Every error body is `{detail, code?, request_id, doc_url}` — `request_id` is the value to quote, `doc_url` points at the [Errors reference](../../../reference/errors/).
