{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8e77d36a-45f8-43a1-91c4-6f7cae0b2daf",
    "slug": "emailflare",
    "name": "Cloudflare Email",
    "description": "EmailFlare is a self-hosted email sending platform built around Cloudflare",
    "url": "https://railway.com/deploy/emailflare",
    "upstream": {
      "image": "ghcr.io/0xdps/emailflare:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "EmailFlare",
      "source": {
        "image": "ghcr.io/0xdps/emailflare:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "ADMIN_TOKEN",
      "service": "EmailFlare",
      "description": "Static bearer token for the admin UI and admin API routes. ",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MESAHUB_URL",
      "service": "EmailFlare",
      "description": "Controls where Email Flare stores its data (API keys, templates, send logs)",
      "secret": false,
      "strategy": "default",
      "default": "mh://local/emailflare"
    },
    {
      "key": "CF_API_TOKEN",
      "service": "EmailFlare",
      "description": "Required for production email sending via the Cloudflare Email Sending API. Guide: https://emailflare.dev/cloudflare-token",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CF_ACCOUNT_ID",
      "service": "EmailFlare",
      "description": "Your Cloudflare account ID — found in the Cloudflare dashboard sidebar.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SESSION_SECRET",
      "service": "EmailFlare",
      "description": "Secret used to sign HTTP session cookies",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "emailflare"
      }
    },
    "cli": "railway deploy --template emailflare",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8e77d36a-45f8-43a1-91c4-6f7cae0b2daf",
            "serializedConfig": {
              "services": {
                "040d3cd3-4820-482b-8459-8008f58e334f": {
                  "icon": "https://raw.githubusercontent.com/0xdps/emailflare/refs/heads/trunk/services/landing/public/favicon.svg",
                  "name": "EmailFlare",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "ghcr.io/0xdps/emailflare:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 1,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 2,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 3,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 4,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 5,
                          "endHour": 24,
                          "startHour": 0
                        },
                        {
                          "day": 6,
                          "endHour": 24,
                          "startHour": 0
                        }
                      ]
                    }
                  },
                  "variables": {
                    "ADMIN_TOKEN": {
                      "isOptional": false,
                      "description": "Static bearer token for the admin UI and admin API routes. ",
                      "defaultValue": "{{ADMIN_TOKEN}}"
                    },
                    "MESAHUB_URL": {
                      "isOptional": false,
                      "description": "Controls where Email Flare stores its data (API keys, templates, send logs)",
                      "defaultValue": "mh://local/emailflare"
                    },
                    "CF_API_TOKEN": {
                      "isOptional": false,
                      "description": "Required for production email sending via the Cloudflare Email Sending API. Guide: https://emailflare.dev/cloudflare-token",
                      "defaultValue": "{{CF_API_TOKEN}}"
                    },
                    "CF_ACCOUNT_ID": {
                      "isOptional": false,
                      "description": "Your Cloudflare account ID — found in the Cloudflare dashboard sidebar.",
                      "defaultValue": "{{CF_ACCOUNT_ID}}"
                    },
                    "SESSION_SECRET": {
                      "isOptional": false,
                      "description": "Secret used to sign HTTP session cookies",
                      "defaultValue": "{{SESSION_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "040d3cd3-4820-482b-8459-8008f58e334f": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "EmailFlare",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T04:14:41.730Z",
  "generator_version": "0.1.0"
}
