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

# consumptionBudgets

> The consumption budgets of the workspaces the key can reach. The company's `PLATFORM` budget is listed only for a company API key granted every workspace of the company. Needs `dinoai:admin:read`.



**query** `consumptionBudgets(unit: ConsumptionUnit, workspaceUid: String, scopes: [ConsumptionBudgetScope!], first: Int, after: String): ConsumptionBudgetConnection!`

## Arguments

**`unit`**: `ConsumptionUnit` = DINOAI_CREDITS

What the budgets count; `DINOAI_CREDITS` by default.

---

**`workspaceUid`**: `String`

The uid of one workspace whose budgets to list. Leave it out for every workspace the key can reach: a workspace key's own, or every workspace a company API key is allowed.

---

**`scopes`**: `[ConsumptionBudgetScope!]`

Only budgets of these scopes; every scope when left out, and none for an empty list.

---

**`first`**: `Int` = 100

How many to return: 100 by default, at most 500. 0 returns only `totalCount`.

---

**`after`**: `String`

The `endCursor` of the previous page.

## Returns

`ConsumptionBudgetConnection!`

**`edges`**: `[ConsumptionBudgetEdge!]!`

This page, in order.

---

**`pageInfo`**: `PageInfo!`

Where this page sits in the list.

---

**`totalCount`**: `Int!`

How many there are across all pages.

## Examples

```graphql Query
query ConsumptionBudgets {
  consumptionBudgets {
    edges {
      cursor
      node {
        unit
        scope
        workspace {
          __typename
        }
        userUid
        user {
          __typename
        }
        agentSlug
      }
    }
    pageInfo {
      startCursor
      endCursor
      hasNextPage
      hasPreviousPage
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "consumptionBudgets": {
      "edges": [
        {
          "cursor": "string",
          "node": {
            "unit": "DINOAI_CREDITS",
            "scope": "PLATFORM",
            "workspace": {
              "__typename": "Workspace"
            },
            "userUid": "string",
            "user": {
              "__typename": "User"
            },
            "agentSlug": "string"
          }
        }
      ],
      "pageInfo": {
        "startCursor": "string",
        "endCursor": "string",
        "hasNextPage": true,
        "hasPreviousPage": true
      },
      "totalCount": 1
    }
  }
}
```


## Related topics

- [Administration API: DinoAI](https://docs.paradime.io/developers/graphql-api/admin-api/dinoai.md)
- [Budget & Consumption](https://docs.paradime.io/products/dino-ai/budget-and-consumption.md)
- [Budget & Consumption for DinoAI credits](https://docs.paradime.io/changelog/2026-07-29/budget-and-consumption.md)
- [Budgets](https://docs.paradime.io/products/radar/cost-management/budgets.md)
- [Administration API: Usage](https://docs.paradime.io/developers/graphql-api/admin-api/usage.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.