# budgets

```graphql
query Budgets {
  budgets {
    data {
      id
      monthlyLimitCredits
      monthlyLimitUsd
      createdAt
      updatedAt
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

List the budgets the caller may manage with their usage this month, for one project or narrowed to a member or API key.

## Arguments

| Name                     | Type            | Required | Description                      |
| ------------------------ | --------------- | -------- | -------------------------------- |
| `input`                  | BudgetListInput |          |                                  |
| `input.projectReference` | String          |          |                                  |
| `input.userId`           | ID              |          |                                  |
| `input.apiKeyId`         | ID              |          |                                  |
| `input.cursor`           | String          |          |                                  |
| `input.limit`            | Int             |          | Page size, 1 to 100. Default 20. |

## Responses

| Status | Description                      |
| ------ | -------------------------------- |
| 200    | The BudgetPage! in data.budgets. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query Budgets {\n  budgets {\n    data {\n      id\n      monthlyLimitCredits\n      monthlyLimitUsd\n      createdAt\n      updatedAt\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n  }\n}"
}'
```

## Example response

```json
{
  "data": {
    "budgets": {
      "data": [
        {
          "id": "string",
          "monthlyLimitCredits": 0,
          "monthlyLimitUsd": 0,
          "createdAt": "string",
          "updatedAt": "string"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      }
    }
  }
}
```
