{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/repuso-com/json-schema/repuso-com-webhook-schema.json",
  "title": "Webhook",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/repuso-com-openapi.json#/components/schemas/Webhook",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "url": {
      "type": "string"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "review.created",
          "rating.changed",
          "profile.error"
        ]
      }
    },
    "format": {
      "type": "string",
      "description": "`api` for webhooks created via this API (signed, versioned envelope). `legacy` for webhooks created in the dashboard Integrations screen."
    },
    "active": {
      "type": "boolean"
    },
    "error": {
      "type": "boolean",
      "description": "True when the endpoint kept failing and deliveries were suspended."
    },
    "profile_ids": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "description": "Present when the webhook is scoped to specific profiles."
    },
    "group_ids": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "description": "Present when the webhook is scoped to groups."
    }
  }
}