{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anyhook-net/json-schema/anyhook-net-app-schema.json",
  "title": "App",
  "description": "An app as the API returns it. Destination signing secrets appear only at creation or rotation.",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anyhook-net-openapi.json#/components/schemas/App",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "sourceSecret": {
      "type": "boolean",
      "description": "Whether a sender signing secret is set."
    },
    "isActive": {
      "type": "boolean"
    },
    "inboundUrl": {
      "type": "string"
    },
    "inboxAddress": {
      "type": "string"
    },
    "destinations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "headers": {
            "type": "object"
          },
          "has_signing_secret": {
            "type": "boolean"
          },
          "signing_secret_hint": {
            "type": "string"
          },
          "event_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rate_limit": {
            "type": "integer"
          },
          "delay_seconds": {
            "type": "integer"
          }
        }
      }
    },
    "eventsThisMonth": {
      "type": "integer"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "previousSlugs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}