{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-create-event-request-schema.json",
  "title": "CreateEventRequest",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-missions-api-openapi.yml#/components/schemas/CreateEventRequest",
  "properties": {
    "agent_id": {
      "title": "Agent Id",
      "type": "string"
    },
    "idempotency_key": {
      "description": "Prevents duplicate events on retry",
      "title": "Idempotency Key",
      "type": "string"
    },
    "payload": {
      "additionalProperties": true,
      "title": "Payload",
      "type": "object"
    },
    "step_id": {
      "title": "Step Id",
      "type": "string"
    },
    "summary": {
      "title": "Summary",
      "type": "string"
    },
    "type": {
      "$ref": "#/$defs/EventType"
    }
  },
  "required": [
    "type",
    "summary"
  ],
  "type": "object",
  "$defs": {
    "EventType": {
      "enum": [
        "status_change",
        "step_started",
        "step_completed",
        "step_failed",
        "tool_call",
        "tool_result",
        "message",
        "error",
        "custom"
      ],
      "title": "EventType",
      "type": "string"
    }
  }
}