{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/akahu/main/json-schema/akahu-webhook-schema.json",
  "title": "Webhook",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/akahu-webhooks-api-openapi.yml#/components/schemas/Webhook",
  "type": "object",
  "properties": {
    "_id": {
      "type": "string",
      "description": "Unique Akahu webhook identifier."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 formatted timestamp that the webhook was created."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 formatted timestamp that the webhook was last updated."
    },
    "last_called_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 formatted timestamp of the last time your webhook endpoint was sent a webhook event."
    },
    "state": {
      "type": "string",
      "description": "Stored state upon creating a webhook and is made available on the webhook event allowing you to verify the event.\nCan be used to store a unique identifier related to your end user allowing you to determine on an arrival of a webhook event which user of your application needs to be updated or notified."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Endpoint to send registered webhook events to."
    }
  }
}