Skip to main content
WEBHOOK
com.env0.budget.exceeded
{
  "type": "<string>",
  "source": "<string>",
  "id": "<string>",
  "time": "<string>",
  "datacontenttype": "<string>",
  "data": {
    "project": {
      "url": "<string>",
      "name": "<string>",
      "description": "<string>",
      "organizationId": "<string>",
      "parentProjectId": "<string>",
      "id": "<string>",
      "createdBy": "<string>",
      "createdByUser": {
        "email": "<string>",
        "user_id": "<string>",
        "created_at": "<string>",
        "app_metadata": {},
        "picture": "<string>",
        "name": "<string>",
        "last_login": "<string>",
        "given_name": "<string>",
        "family_name": "<string>"
      },
      "isArchived": true,
      "hierarchy": "<string>"
    },
    "organization": {
      "url": "<string>",
      "maxTtl": "<string>",
      "defaultTtl": "<string>",
      "doNotReportSkippedStatusChecks": true,
      "doNotConsiderMergeCommitsForPrPlans": true,
      "enableOidc": true,
      "enforcePrCommenterPermissions": true,
      "projectCustomFlowsPolicy": "MERGE_WITH_TEMPLATES",
      "allowEnv0Secrets": true,
      "requireApprovalForPrApplies": true,
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "photoUrl": "<string>",
      "createdBy": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "mode": "paying",
      "trialEnd": "2023-11-07T05:31:56Z",
      "role": "<string>",
      "isSelfHostedK8s": true
    },
    "budget": {
      "url": "<string>",
      "id": "<string>",
      "projectId": "<string>",
      "amount": 123,
      "timeframe": "WEEKLY",
      "thresholds": [
        123
      ]
    },
    "actualCost": 123
  }
}

Body

application/json

This is the schema of what env0 sends to your endpoint when a "Budget Exceeded" event has been triggered

type
string
required
Allowed value: "com.env0.budget.exceeded"
source
string
required
Allowed value: "https://env0.com"
id
string
required
time
string
required
datacontenttype
string
required
Allowed value: "application/json"
data
object
required

Response

200

Return a 200 status to indicate that the data was received successfully

I