{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ranla-ai/json-schema/ranla-ai-trigger-event-request-schema.json",
  "title": "TriggerEventRequest",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ranla-ai-openapi.yml#/components/schemas/TriggerEventRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Canonical event name (alias: `type`)"
    },
    "type": {
      "type": "string",
      "description": "Alias for name"
    },
    "user_id": {
      "type": "string"
    },
    "userId": {
      "type": "string",
      "description": "Alias for user_id"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "data": {
      "type": "object",
      "additionalProperties": true,
      "description": "Event payload. Automations see it as sent. The stored event (and the `event` in the response) has credential values redacted to `\"REDACTED\"`: keys such as `password`, `secret`, `otp`, `api_key`, keys ending in `token`, `code` on login or verification events, and secret query parameters inside URL values.\nSign-up source context (all optional) ties a conversion to where the person came from: `id` (your user or subscription id; repeats of the same event are recorded once), `visitor_id` (the `stx_vid` cookie), `gclid` / `gbraid` / `wbraid` (the ad click, from the `rnl_ad` cookie), `came_from` (your own word for the source, shown as written), `signup_method`, `invited: true` (a teammate joining an existing account: a seat, not a sign-up, no conversion) and `internal: true` (your own team or a test: no conversion)."
    }
  },
  "anyOf": [
    {
      "required": [
        "name"
      ]
    },
    {
      "required": [
        "type"
      ]
    }
  ]
}