---
title: "WebhookEvent"
url: "https://developers.perryweather.com/apis/perry-weather-webhooks-1/versions/aee3a2cd-955e-467b-98c4-51fddb573453/schemas/WebhookEvent"
---

> Full API specification: https://developers.perryweather.com/apis/perry-weather-webhooks-1/versions/aee3a2cd-955e-467b-98c4-51fddb573453.md

# WebhookEvent

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: PerryWeather Webhooks (v1.2)
  version: "1.2"
components:
  schemas:
    PolicyTriggerPayload:
      type: object
      required:
        - customer_id
        - location_id
        - location_name
        - policy_trigger_id
        - condition_type
        - message
        - additional_message
        - value
        - value_units
        - event_type
        - event_id
        - policy
      properties:
        customer_id:
          type: integer
        location_id:
          type: string
        location_name:
          type: string
        policy_trigger_id:
          type: string
          format: uuid
        condition_type:
          type: string
        message:
          type: string
        additional_message:
          type:
            - string
            - "null"
        value:
          type: number
        value_units:
          type: string
        event_type:
          type: string
          enum:
            - DELAY
            - ALL_CLEAR
        event_id:
          type: string
        policy:
          $ref: "#/components/schemas/TriggeredPolicy"
    TriggeredPolicy:
      type: object
      required:
        - type
        - threshold
        - threshold_units
        - all_clear_minutes
      properties:
        type:
          type: string
        threshold:
          type: number
        threshold_units:
          type: string
        all_clear_minutes:
          type: integer
    WebhookEvent:
      type: object
      required:
        - event_id
        - event_type
        - time
        - version
        - payload
      properties:
        event_id:
          type: string
        event_type:
          type: string
          enum:
            - DELAY
            - ALL_CLEAR
        time:
          type: string
          format: date-time
        version:
          type: string
          enum:
            - "1.2"
        payload:
          $ref: "#/components/schemas/PolicyTriggerPayload"
```
