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

# List AI budgets

> List budgets with the page cursors of the REST listing.

`aiBudgets(input: AiBudgetListInput!): AiBudgetList!`

**Deprecated.** Renamed; the budget is an explicit argument.

Use List budgets (`Query.budgets`) instead.

**Deprecated:** Use budgets. (CR-billing-legacy-names)

## Arguments

| Argument | Type | Required |
| - | - | - |
| `input` | [`AiBudgetListInput!`](https://veryfront.com/docs/cloud/graphql/types/aibudgetlistinput) | Yes |

## Input fields

### input

[`AiBudgetListInput`](https://veryfront.com/docs/cloud/graphql/types/aibudgetlistinput)

| Field | Type | Required | Description |
| - | - | - | - |
| `projectReference` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | |
| `projectId` | [`ID`](https://veryfront.com/docs/cloud/graphql/types/id) | No | Deprecated: Use projectReference. |
| `userId` | [`ID`](https://veryfront.com/docs/cloud/graphql/types/id) | No | |
| `apiKeyId` | [`ID`](https://veryfront.com/docs/cloud/graphql/types/id) | No | |
| `cursor` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | |
| `limit` | [`Int`](https://veryfront.com/docs/cloud/graphql/types/int) | No | Page size, 1 to 100. Default 20. |

## Response

Returns [`AiBudgetList!`](https://veryfront.com/docs/cloud/graphql/types/aibudgetlist). Open the type for its fields and nested types.

| Field | Type |
| - | - |
| `data` | [`[AiBudget!]!`](https://veryfront.com/docs/cloud/graphql/types/aibudget) |
| `pageInfo` | [`AiBudgetPageInfo!`](https://veryfront.com/docs/cloud/graphql/types/aibudgetpageinfo) |

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
query AiBudgets($input: AiBudgetListInput!) {
  aiBudgets(input: $input) {
    data {
      id
      createdAt
      updatedAt
      monthlyLimitCredits
      monthlyLimitUsd
    }
    pageInfo {
      hasNextPage
      endCursor
      first
      hasPreviousPage
      next
    }
  }
}
```

```json title="variables.json" theme={null}
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001"
  }
}
```

<details>
  <summary>Try this query</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Query

  Variables (JSON)
</details>


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