> ## 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.

# usage

> Bolt and DinoAI usage in a period, the numbers the Usage page shows. Needs `usage:read`.



**query** `usage(period: UsagePeriodInput!, workspaceUid: String): Usage`

## Arguments

**`period`**: `UsagePeriodInput!` (required)

The period to sum usage over.

---

**`workspaceUid`**: `String`

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

## Returns

`Usage`

**`from`**: `DateTime!`

When the period starts, in UTC.

---

**`to`**: `DateTime!`

When the period ends, excluded, in UTC.

---

**`dinoAi`**: `DinoAiUsage!`

DinoAI credits, summed over the workspaces.

---

**`bolt`**: `BoltUsage!`

Billed Bolt run time, summed over the workspaces.

---

**`workspaces`**: `WorkspaceUsageConnection!`

The same period's usage, one workspace at a time.

**Arguments:**

- `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.

## Examples

```graphql Query
query Usage($period: UsagePeriodInput!) {
  usage(period: $period) {
    from
    to
    dinoAi {
      credits
      backgroundAgentCredits
    }
    bolt {
      billedSeconds
    }
    workspaces {
      edges {
        cursor
        node {
          __typename
        }
      }
      pageInfo {
        startCursor
        endCursor
        hasNextPage
        hasPreviousPage
      }
      totalCount
    }
  }
}
```

```json Variables
{
  "period": {
    "from": "value",
    "to": "value"
  }
}
```

```json Response
{
  "data": {
    "usage": {
      "from": "value",
      "to": "value",
      "dinoAi": {
        "credits": "value",
        "backgroundAgentCredits": "value"
      },
      "bolt": {
        "billedSeconds": "value"
      },
      "workspaces": {
        "edges": [
          {
            "cursor": "string",
            "node": {
              "__typename": "WorkspaceUsage"
            }
          }
        ],
        "pageInfo": {
          "startCursor": "string",
          "endCursor": "string",
          "hasNextPage": true,
          "hasPreviousPage": true
        },
        "totalCount": 1
      }
    }
  }
}
```


## Related topics

- [Usage groups](https://docs.paradime.io/products/radar/cost-management/usage-groups.md)
- [Administration API: Usage](https://docs.paradime.io/developers/graphql-api/admin-api/usage.md)
- [Admin client: usage](https://docs.paradime.io/developers/python-sdk/modules/admin/usage.md)
- [CLI Commands and Usage](https://docs.paradime.io/integrations/elementary-data/cli-commands-and-usage.md)
- [Radar cost controls: budgets, usage groups, custom alerts](https://docs.paradime.io/changelog/2026-09-09/radar-cost-controls.md)


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