> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Get CU costs

Get the complete CU cost list for all triggers and actions (public, no auth)

` GET /v1/cu/costs `

Get CU costs

Get the complete CU cost list for all triggers and actions (public, no auth)

## Responses

### ` 200 ` — OK

Content type: ` application/json `

- ` value `: type ` object `

  - ` code `: type ` integer `

    - example: ` 0 `

  - ` data `: type ` object `

    - ` actions `: type ` object `

      - ` builtIn `: type ` array `

        - ` array item `: type ` object `

          - ` cost `: type ` number `

          - ` isStream `: type ` boolean ` — IsStream and UptimeCu are set only on trigger items. A stream trigger bills UptimeCu once per uptime interval for as long as the workflow is active, on top of per-fire costs.

          - ` source `: type ` string ` — "default" or "override"

          - ` type `: type ` string `

          - ` uptimeCu `: type ` number `

      - ` dynamic `: type ` array `

        - ` array item `: type ` object `

          - ` cost `: type ` number `

          - ` isStream `: type ` boolean ` — IsStream and UptimeCu are set only on trigger items. A stream trigger bills UptimeCu once per uptime interval for as long as the workflow is active, on top of per-fire costs.

          - ` source `: type ` string ` — "default" or "override"

          - ` type `: type ` string `

          - ` uptimeCu `: type ` number `

      - ` logic `: type ` array `

        - ` array item `: type ` object `

          - ` cost `: type ` number `

          - ` isStream `: type ` boolean ` — IsStream and UptimeCu are set only on trigger items. A stream trigger bills UptimeCu once per uptime interval for as long as the workflow is active, on top of per-fire costs.

          - ` source `: type ` string ` — "default" or "override"

          - ` type `: type ` string `

          - ` uptimeCu `: type ` number `

    - ` defaults `: type ` object `

      - ` builtIn `: type ` number `

      - ` dynamic `: type ` number `

      - ` logic `: type ` number `

      - ` trigger `: type ` number `

    - ` triggers `: type ` array `

      - ` array item `: type ` object `

        - ` cost `: type ` number `

        - ` isStream `: type ` boolean ` — IsStream and UptimeCu are set only on trigger items. A stream trigger bills UptimeCu once per uptime interval for as long as the workflow is active, on top of per-fire costs.

        - ` source `: type ` string ` — "default" or "override"

        - ` type `: type ` string `

        - ` uptimeCu `: type ` number `

    - ` uptime `: type ` object `

      - ` defaultCu `: type ` number `

      - ` enabled `: type ` boolean `

      - ` enrichmentCu `: type ` object ` — EnrichmentCu maps enricher name (e.g. "sender", "valueUsd") to its per-interval CU cost, charged on top of the trigger's base uptime for workflows that opt into the enrichment.

      - ` intervalMs `: type ` integer `

  - ` message `: type ` string `

    - example: ` "successfully" `

  - ` requestId `: type ` string `

    - example: ` "req_abc123" `

## Request examples

### cURL

```curl
curl -X GET 'https://api.example.com/v1/cu/costs' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('https://api.example.com/v1/cu/costs', {
  method: 'GET',
  headers: {
      "Authorization": "Bearer YOUR_API_TOKEN"
  }
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN'
}

response = requests.get('https://api.example.com/v1/cu/costs', headers=headers)
print(response.json())
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://api.example.com/v1/cu/costs", nil)
	req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")

	resp, _ := http.DefaultClient.Do(req)
	defer resp.Body.Close()
	result, _ := io.ReadAll(resp.Body)
	fmt.Println(string(result))
}
```