{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flomailr-com/json-schema/flomailr-com-post-api-v1-events-request-schema.json",
  "title": "PostApiV1EventsRequest",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/flomailr-com-openapi-generated.yml#/components/schemas/PostApiV1EventsRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Event name (see name rules)"
    },
    "email": {
      "type": "string",
      "description": "The contact's email. Provide email or contactId"
    },
    "contactId": {
      "type": "string",
      "description": "The contact's id. Used instead of email when both are given"
    },
    "properties": {
      "type": "object",
      "description": "Optional object. At most 50 keys and 8 KB when serialized"
    },
    "value": {
      "type": "number",
      "description": "Optional money amount in major units (e.g., dollars). Stored as whole minor units"
    },
    "valueCents": {
      "type": "integer",
      "description": "Optional money amount as a whole number of minor units. Wins over value if both are sent"
    },
    "currency": {
      "type": "string",
      "description": "Optional three‑letter code, stored uppercase. Anything else is ignored"
    },
    "externalId": {
      "type": "string",
      "description": "Optional unique id for the event, used to make retries safe (truncated to 200 characters)"
    }
  },
  "required": [
    "name"
  ]
}