{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eventsend-io/json-schema/eventsend-io-post-api-events-request-schema.json",
  "title": "PostApiEventsRequest",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/eventsend-io-openapi-generated.yml#/components/schemas/PostApiEventsRequest",
  "type": "object",
  "properties": {
    "event": {
      "type": "string",
      "description": "The event name, 4–64 characters. Analytics count by it, search matches it, and topic patterns match against it."
    },
    "message": {
      "type": "string",
      "description": "Human‑readable text, 4–500 characters. It is searchable in your event history and is the body of the delivered message."
    },
    "payload": {
      "type": "object",
      "description": "Structured data, at most 4096 bytes once JSON‑encoded. Send {} if you have nothing to attach."
    },
    "level": {
      "type": "string",
      "description": "One of default, success, warning, error, critical. Defaults to default."
    },
    "icon": {
      "type": "string",
      "description": "An emoji or short string, 1–16 characters, shown next to the message."
    },
    "unique_key": {
      "type": "string",
      "description": "4–128 characters. Makes the request idempotent."
    },
    "user_id": {
      "type": "string",
      "description": "1–128 characters. Your own stable identifier for the customer this event is about."
    },
    "occurred_at": {
      "type": "string",
      "description": "ISO‑8601 timestamp of when the thing happened. Defaults to receipt time. Must be within allowed range."
    }
  },
  "required": [
    "event",
    "message",
    "payload"
  ]
}