{
  "manifest_version": "1.0.0",
  "template": {
    "id": "11aa8cb2-8caa-4cd7-916e-ae56f797de8b",
    "slug": "waha-production",
    "name": "WAHA | WhatsApp HTTP API (GOWS Engine) for n8n, Chatwoot and Bots",
    "description": "WhatsApp HTTP API: GOWS engine, sessions survive redeploys, locked down",
    "url": "https://railway.com/deploy/waha-production",
    "upstream": {
      "image": "devlikeapro/waha:gows-2026.9.2"
    }
  },
  "services": [
    {
      "name": "WAHA",
      "source": {
        "image": "devlikeapro/waha:gows-2026.9.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "WAHA",
      "description": "Port Railway routes to - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "WAHA_API_KEY",
      "service": "WAHA",
      "description": "API key - send it as the X-Api-Key header (also the key the dashboard asks for)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WAHA_BASE_URL",
      "service": "WAHA",
      "description": "Public URL used in webhook media links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "WAHA_PRINT_QR",
      "service": "WAHA",
      "description": "Don't print QR codes into the logs",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "WAHA_LOG_FORMAT",
      "service": "WAHA",
      "description": "Structured logs for Railway's log viewer",
      "secret": false,
      "strategy": "default",
      "default": "JSON"
    },
    {
      "key": "UV_THREADPOOL_SIZE",
      "service": "WAHA",
      "description": "Node I/O threads (the image would size it from the host's 48 cores)",
      "secret": false,
      "strategy": "default",
      "default": "16"
    },
    {
      "key": "WHATSAPP_FILES_FOLDER",
      "service": "WAHA",
      "description": "Downloaded media on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/app/data/media"
    },
    {
      "key": "WAHA_DASHBOARD_PASSWORD",
      "service": "WAHA",
      "description": "Dashboard and Swagger password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "WAHA_DASHBOARD_USERNAME",
      "service": "WAHA",
      "description": "Dashboard and Swagger login",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "WHATSAPP_DEFAULT_ENGINE",
      "service": "WAHA",
      "description": "GOWS = lightweight Go engine, no browser. WEBJS needs the Chrome image and far more RAM",
      "secret": false,
      "strategy": "default",
      "default": "GOWS"
    },
    {
      "key": "WAHA_LOCAL_STORE_BASE_DIR",
      "service": "WAHA",
      "description": "WhatsApp sessions on the volume, so redeploys don't log you out",
      "secret": false,
      "strategy": "default",
      "default": "/app/data/sessions"
    },
    {
      "key": "WHATSAPP_SWAGGER_PASSWORD",
      "service": "WAHA",
      "description": "Swagger password (same as the dashboard)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WHATSAPP_SWAGGER_USERNAME",
      "service": "WAHA",
      "description": "Swagger login (same as the dashboard)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "waha-production"
      }
    },
    "cli": "railway deploy --template waha-production",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "11aa8cb2-8caa-4cd7-916e-ae56f797de8b",
            "serializedConfig": {
              "services": {
                "766764de-1566-43d1-bf3c-2975ec5634e7": {
                  "icon": "https://raw.githubusercontent.com/two-workspaces/waha/main/icon.png",
                  "name": "WAHA",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/ping",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "devlikeapro/waha:gows-2026.9.2"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes to - leave as is",
                      "defaultValue": "3000"
                    },
                    "WAHA_API_KEY": {
                      "isOptional": false,
                      "description": "API key - send it as the X-Api-Key header (also the key the dashboard asks for)",
                      "defaultValue": "{{WAHA_API_KEY}}"
                    },
                    "WAHA_BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL used in webhook media links",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "WAHA_PRINT_QR": {
                      "isOptional": false,
                      "description": "Don't print QR codes into the logs",
                      "defaultValue": "False"
                    },
                    "WAHA_LOG_FORMAT": {
                      "isOptional": false,
                      "description": "Structured logs for Railway's log viewer",
                      "defaultValue": "JSON"
                    },
                    "UV_THREADPOOL_SIZE": {
                      "isOptional": false,
                      "description": "Node I/O threads (the image would size it from the host's 48 cores)",
                      "defaultValue": "16"
                    },
                    "WHATSAPP_FILES_FOLDER": {
                      "isOptional": false,
                      "description": "Downloaded media on the volume",
                      "defaultValue": "/app/data/media"
                    },
                    "WAHA_DASHBOARD_PASSWORD": {
                      "isOptional": false,
                      "description": "Dashboard and Swagger password",
                      "defaultValue": "{{WAHA_DASHBOARD_PASSWORD}}"
                    },
                    "WAHA_DASHBOARD_USERNAME": {
                      "isOptional": false,
                      "description": "Dashboard and Swagger login",
                      "defaultValue": "admin"
                    },
                    "WHATSAPP_DEFAULT_ENGINE": {
                      "isOptional": false,
                      "description": "GOWS = lightweight Go engine, no browser. WEBJS needs the Chrome image and far more RAM",
                      "defaultValue": "GOWS"
                    },
                    "WAHA_LOCAL_STORE_BASE_DIR": {
                      "isOptional": false,
                      "description": "WhatsApp sessions on the volume, so redeploys don't log you out",
                      "defaultValue": "/app/data/sessions"
                    },
                    "WHATSAPP_SWAGGER_PASSWORD": {
                      "isOptional": false,
                      "description": "Swagger password (same as the dashboard)",
                      "defaultValue": "${{WAHA_DASHBOARD_PASSWORD}}"
                    },
                    "WHATSAPP_SWAGGER_USERNAME": {
                      "isOptional": false,
                      "description": "Swagger login (same as the dashboard)",
                      "defaultValue": "${{WAHA_DASHBOARD_USERNAME}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "480cf293-5ec9-4170-a0c7-d6e2e546598e": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "WAHA",
      "method": "GET",
      "path": "/ping",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-20T04:14:47.318Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-20T03:03:54.682Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d9a5e87827054828b4cf",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 68,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "WAHA"
  }
}
