Get budget

budget(budgetId: ID!): Budget!

Arguments

ArgumentTypeRequiredDescription
budgetIdID!YesBudget ID. A budget you cannot manage is masked as missing and fails with resource-not-found (404).

Response

Returns Budget!. Open the type for its fields and nested types.

FieldType
idID!
scopeBudgetScope!
monthlyLimitCreditsFloat!
monthlyLimitUsdFloat!
statusBudgetStatus!
createdAtString!
updatedAtString!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query Budget($budgetId: ID!) {
  budget(budgetId: $budgetId) {
    id
    createdAt
    updatedAt
    monthlyLimitCredits
    monthlyLimitUsd
  }
}
json
{
  "budgetId": "00000000-0000-4000-8000-000000000001"
}