{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tinysend-com/json-schema/tinysend-com-create-automation-schema.json",
  "title": "CreateAutomation",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/tinysend-com-v1-openapi.json#/components/schemas/CreateAutomation",
  "type": "object",
  "properties": {
    "project_id": {
      "type": "string",
      "description": "Defaults to the caller's project when omitted."
    },
    "type": {
      "type": "string",
      "enum": [
        "quality",
        "triage",
        "auto_reply",
        "digest",
        "domain_health",
        "spam_guard",
        "audience",
        "extract",
        "otp",
        "summarizer",
        "custom"
      ]
    },
    "entity_type": {
      "type": "string",
      "enum": [
        "mailbox",
        "list",
        "project"
      ]
    },
    "entity_id": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "model": {
      "type": "string"
    },
    "system_prompt": {
      "type": "string"
    },
    "tool_permissions": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "schedule": {
      "type": "string"
    },
    "skills": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "config": {
      "type": "object",
      "additionalProperties": {
        "nullable": true
      }
    },
    "allowed_domains": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "type",
    "entity_type",
    "entity_id"
  ]
}