{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infiniteaudience-ai/json-schema/infiniteaudience-ai-webhook-subscription-created-schema.json",
  "title": "WebhookSubscriptionCreated",
  "description": "Response to POST /v1/webhook-subscriptions. `secret` is returned exactly once, in plaintext — it is never retrievable again after this response.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infiniteaudience-ai-triggers-api-openapi.yml#/components/schemas/WebhookSubscriptionCreated",
  "type": "object",
  "required": [
    "id",
    "target_url",
    "events",
    "secret",
    "status",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "target_url": {
      "type": "string",
      "format": "uri"
    },
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NotifiableEventType"
      }
    },
    "secret": {
      "type": "string",
      "description": "Plaintext HMAC-SHA256 signing secret. Store it now — every subsequent read only returns it masked. Used to compute `X-IA-Signature` on every delivery to this subscription — see the Webhooks tag's Signing section for the exact scheme.\n"
    },
    "status": {
      "type": "string",
      "enum": [
        "active"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "NotifiableEventType": {
      "type": "string",
      "description": "Events that can trigger a webhook delivery. Segment and delivery events support ordinary durable subscriptions and the org's legacy webhook. Partnership events are restricted to the owning OAuth grant and are never sent to an org-wide webhook.\n",
      "enum": [
        "enrichment.release.available",
        "segment.ready",
        "segment.failed",
        "delivery.completed",
        "delivery.failed",
        "integration.enrichment.prepared",
        "integration.enrichment.failed",
        "integration.enrichment.blocked",
        "integration.file.ready",
        "integration.file.failed"
      ]
    }
  }
}