{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scriptivox-com/json-schema/scriptivox-com-webhook-send-result-schema.json",
  "title": "WebhookSendResult",
  "description": "What happened to one try of a webhook made on request.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scriptivox-com-openapi.json#/components/schemas/WebhookSendResult",
  "type": "object",
  "required": [
    "delivery_id",
    "event",
    "attempt",
    "delivered",
    "response_code",
    "error",
    "duration_ms",
    "status"
  ],
  "properties": {
    "transcription_id": {
      "type": "string",
      "format": "uuid",
      "description": "The job (resend only)."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Where the test event went (test only)."
    },
    "delivery_id": {
      "type": "string",
      "format": "uuid",
      "description": "The X-Scriptivox-Delivery id of this event."
    },
    "event": {
      "type": "string",
      "description": "The event sent."
    },
    "attempt": {
      "type": "integer",
      "description": "The X-Scriptivox-Attempt value of this try."
    },
    "delivered": {
      "type": "boolean",
      "description": "True when your server answered with a 2xx status."
    },
    "response_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The HTTP status your server answered, or null when there was no answer."
    },
    "error": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why it was not delivered, e.g. \"HTTP 500\" or \"No answer within 10 s.\"."
    },
    "duration_ms": {
      "type": "integer",
      "description": "How long the try took."
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "succeeded",
        "failed",
        "superseded",
        "unknown"
      ],
      "description": "The event after this try: pending (automatic retries continue), succeeded, failed (no tries left, or 410), superseded."
    },
    "next_attempt_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the next automatic retry is due, if any."
    }
  }
}