{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assinafy-com-br/json-schema/assinafy-com-br-webhook-dispatch-schema.json",
  "title": "WebhookDispatch",
  "description": "A single webhook delivery-history entry.",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/assinafy-com-br-openapi.json#/components/schemas/WebhookDispatch",
  "properties": {
    "resource": {
      "description": "Always `activity_dispatching_history` in single-resource responses.",
      "type": "string"
    },
    "id": {
      "description": "Dispatch entry ID.",
      "type": "string"
    },
    "event": {
      "description": "Event type that triggered the dispatch.",
      "type": "string"
    },
    "activity_id": {
      "description": "Internal activity ID associated with the dispatch.",
      "type": "integer"
    },
    "endpoint_id": {
      "description": "ID of the webhook endpoint the delivery was sent to (`null` once that endpoint is deleted).",
      "type": [
        "string",
        "null"
      ]
    },
    "endpoint": {
      "description": "URL that received the request.",
      "type": [
        "string",
        "null"
      ]
    },
    "payload": {
      "description": "JSON payload sent to the endpoint.",
      "type": [
        "object",
        "null"
      ]
    },
    "delivered": {
      "description": "Whether delivery succeeded.",
      "type": "boolean"
    },
    "webhook_id": {
      "description": "The `webhook-id` header of the request: the same on every attempt of this event to this endpoint.",
      "type": [
        "string",
        "null"
      ]
    },
    "attempt": {
      "description": "Which attempt of this event to this endpoint the entry records, counted from 1.",
      "type": [
        "integer",
        "null"
      ]
    },
    "kind": {
      "description": "`scheduled`: the delivery of the event as it happened; `probe`: the one delivery we send to a paused endpoint to see whether it answers; `manual`: asked for through **Retry webhook delivery**.",
      "type": "string",
      "enum": [
        "scheduled",
        "probe",
        "manual"
      ]
    },
    "will_retry": {
      "description": "Whether another attempt follows this one. `false` on a delivered entry and on the last attempt of a failed one.",
      "type": "boolean"
    },
    "http_status": {
      "description": "HTTP status returned (null if connection failed).",
      "type": [
        "integer",
        "null"
      ]
    },
    "response_body": {
      "description": "Endpoint response body, truncated to 2000 chars.",
      "type": [
        "string",
        "null"
      ]
    },
    "error": {
      "description": "Delivery error message, if any.",
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "type": "object"
}