{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mobilevalidate-com/json-schema/mobilevalidate-com-webhook-endpoint-schema.json",
  "title": "WebhookEndpoint",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mobilevalidate-com-webhooks-api-openapi.yml#/components/schemas/WebhookEndpoint",
  "type": "object",
  "required": [
    "object",
    "id",
    "url",
    "events",
    "status",
    "created_at"
  ],
  "properties": {
    "object": {
      "type": "string",
      "const": "webhook_endpoint"
    },
    "id": {
      "type": "string",
      "pattern": "^we_"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WebhookEvent"
      }
    },
    "status": {
      "type": "string",
      "enum": [
        "pending_verification",
        "active",
        "disabled"
      ]
    },
    "livemode": {
      "type": "boolean",
      "description": "Mode of the key that created the endpoint. Test keys see and manage only test endpoints, live keys only live endpoints; test-mode events are delivered only to test endpoints and live events only to live endpoints.\n"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "WebhookEvent": {
      "type": "string",
      "enum": [
        "lookup.completed",
        "job.completed",
        "job.failed",
        "job.progress",
        "balance.low",
        "limits.cap_reached"
      ]
    }
  }
}