---
updatedAt: 2025-11-06T09:55:33.000Z
agentTools:
  projectIndex: https://docs.umbrellacost.io/llms.txt
---

# Create Budget

The call is used to create budgets and budget alerts

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Advanced services",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.umbrellacost.io"
    }
  ],
  "x-readme": {
    "explorer-enabled": false
  },
  "paths": {
    "/api/v2/budgets": {
      "post": {
        "description": "The call is used to create budgets",
        "summary": "Create Budget",
        "tags": [
          "Budgets"
        ],
        "operationId": "post_apiv2budgets",
        "responses": {
          "200": {
            "description": ""
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "apikey",
            "in": "header",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "x-readme": {
          "code-samples": [
            {
              "code": "curl --location --request POST 'https://api.umbrellacost.io/api/v2/budgets' \\\n--header 'apikey: {{account-api-key}}' \\\n--header 'Authorization: {{bearer-token}}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n  \"budgetName\": \"test plan type\",\n  \"budgetAmount\": 999999,\n  \"budgetAmounts\": [\n    {\n      \"amount\": 76923,\n      \"date\": \"2023-12\"\n    },\n    {\n      \"amount\": 76923,\n      \"date\": \"2024-1\"\n    },\n    {\n      \"amount\": 76923,\n      \"date\": \"2024-2\"\n    },\n    {\n      \"amount\": 76923,\n      \"date\": \"2024-3\"\n    },\n    {\n      \"amount\": 76923,\n      \"date\": \"2024-4\"\n    },\n    {\n      \"amount\": 76923,\n      \"date\": \"2024-5\"\n    },\n    {\n      \"amount\": 76923,\n      \"date\": \"2024-6\"\n    },\n    {\n      \"amount\": 76923,\n      \"date\": \"2024-7\"\n    },\n    {\n      \"amount\": 76923,\n      \"date\": \"2024-8\"\n    },\n    {\n      \"amount\": 76923,\n      \"date\": \"2024-9\"\n    },\n    {\n      \"amount\": 76923,\n      \"date\": \"2024-10\"\n    },\n    {\n      \"amount\": 76923,\n      \"date\": \"2024-11\"\n    },\n    {\n      \"amount\": 76923,\n      \"date\": \"2024-12\"\n    }\n  ],\n  \"endDate\": \"2024-12-26 00:00:00\",\n  \"startDate\": \"2023-12-26 00:00:00\",\n  \"isRelativeAlerts\": true,\n  \"budgetAlerts\": [\n    {\n      \"whenToAlert\": [\n        \"forecasted\"\n      ],\n      \"alertGranularity\": [\n        \"monthly\"\n      ],\n      \"alertPercent\": \"88\",\n      \"alertEmail\": \"demo@umbrellacost.com\"\n    }\n  ],\n  \"costType\": \"net_amortized\",\n  \"description\": \"\",\n  \"isFlexible\": 1,\n  \"excludeFilters\": {},\n  \"includeFilters\": {},\n  \"budgetType\": \"expiring\",\n  \"budgetAmountType\": \"planned\",\n  \"period\": 0\n}'",
              "language": "shell",
              "name": ""
            }
          ],
          "samples-languages": [
            "shell"
          ]
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "budgetName": {
                    "type": "string",
                    "description": "The name in the Umbrella Cost UI",
                    "x-readme-id": "0.0"
                  },
                  "costType": {
                    "type": "string",
                    "description": "Valid values: “amortized”,”net_amortized”,”unblended”",
                    "x-readme-id": "0.1"
                  },
                  "budgetType": {
                    "type": "string",
                    "description": "Valid values: “recurring”, “expiring”",
                    "x-readme-id": "0.7"
                  },
                  "budgetAmountType": {
                    "type": "string",
                    "description": "Valid values: “fixed”,”planned”",
                    "x-readme-id": "0.8"
                  },
                  "budgetAmount": {
                    "type": "integer",
                    "description": "The total budget",
                    "x-readme-id": "0.9"
                  },
                  "budgetAmounts": {
                    "type": "array",
                    "description": "An array of amount and month pairs. Example: {\"amount\": 1234 ,\"date\": \"2024-2\"},{\"amount\": 5000 ,\"date\": \"2024-3\"}",
                    "items": {
                      "type": "string"
                    },
                    "x-readme-id": "0.12"
                  },
                  "isFlexible": {
                    "type": "string",
                    "description": "Valid Values: \"true\", \"false\"",
                    "x-readme-id": "0.13"
                  },
                  "isRelativeAlerts": {
                    "type": "string",
                    "description": "Do not use this parameter",
                    "x-readme-id": "0.14"
                  },
                  "period": {
                    "type": "integer",
                    "description": "Valid values: 0-\"Monthly\", 1-\"Quarterly\", 2-\"Yearly\"",
                    "x-readme-id": "0.15"
                  },
                  "startDate": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Example: “2024-02-11T09:25:29.800Z”",
                    "x-readme-id": "0.16"
                  },
                  "endDate": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Example: \"2025-02-11T09:25:29.809Z\"",
                    "x-readme-id": "0.17"
                  },
                  "includeFilters": {
                    "type": "string",
                    "description": "object of filter keys - Example: {\"region\": [\"af-south-1\"]}",
                    "x-readme-id": "0.18"
                  },
                  "excludeFilters": {
                    "type": "string",
                    "description": "object of filter keys - Example: {\"chargetype\": [\"Tax\"]}",
                    "x-readme-id": "0.19"
                  },
                  "budgetAlerts": {
                    "type": "array",
                    "description": "An array of alerts defined over the budget",
                    "items": {
                      "type": "string"
                    },
                    "x-readme-id": "0.20"
                  },
                  "whenToAlert": {
                    "type": "array",
                    "description": "Valid values: “forecasted\", ”actualUsage” of both",
                    "items": {
                      "type": "string"
                    },
                    "x-readme-id": "0.21"
                  },
                  "alertGranularity": {
                    "type": "array",
                    "description": "Valid values: ”monthly”, “daily”, “total” or combinations of them",
                    "items": {
                      "type": "string"
                    },
                    "x-readme-id": "0.22"
                  },
                  "alertPercent\t": {
                    "type": "string",
                    "description": "Budget percent utilization thereshold",
                    "x-readme-id": "0.23"
                  },
                  "alertEmail": {
                    "type": "string",
                    "description": "valid email addresses, separated by commas",
                    "x-readme-id": "0.24"
                  }
                },
                "type": "object",
                "required": [
                  "budgetName",
                  "costType",
                  "budgetType",
                  "budgetAmount",
                  "budgetAmountType",
                  "budgetAmounts",
                  "isFlexible",
                  "endDate",
                  "startDate",
                  "period",
                  "whenToAlert",
                  "alertGranularity",
                  "alertEmail",
                  "alertPercent\t"
                ]
              }
            }
          }
        }
      }
    }
  }
}
```