{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a06c27f4-38e3-4386-8fb7-23ae2a5f1ebf",
    "slug": "waha",
    "name": "WAHA",
    "description": "Deploy WAHA: WhatsApp HTTP API with dashboard and Swagger UI",
    "url": "https://railway.com/deploy/waha",
    "upstream": {
      "image": "devlikeapro/waha"
    }
  },
  "services": [
    {
      "name": "devlikeapro/waha",
      "source": {
        "image": "devlikeapro/waha"
      },
      "needs_volume": true,
      "volume_mount_path": "/local",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "WAHA_API_KEY",
      "service": "devlikeapro/waha",
      "description": "**Primary API key** used to authenticate API calls to WAHA. It’s auto-generated using Railway’s `secret()` function for uniqueness and security.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WAHA_BASE_URL",
      "service": "devlikeapro/waha",
      "description": "Base URL of your deployed WAHA instance. It’s automatically set to use your Railway private domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WAHA_PRINT_QR",
      "service": "devlikeapro/waha",
      "description": "Whether to print QR codes in logs for manual session pairing (`False` by default).",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "WAHA_LOG_LEVEL",
      "service": "devlikeapro/waha",
      "description": "Log verbosity level (`info` by default).",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "WAHA_LOG_FORMAT",
      "service": "devlikeapro/waha",
      "description": "Format of application logs (`JSON` for structured output).",
      "secret": false,
      "strategy": "default",
      "default": "JSON"
    },
    {
      "key": "WAHA_MEDIA_STORAGE",
      "service": "devlikeapro/waha",
      "description": "Storage backend for files and media (`LOCAL` by default).",
      "secret": false,
      "strategy": "default",
      "default": "LOCAL"
    },
    {
      "key": "WHATSAPP_FILES_FOLDER",
      "service": "devlikeapro/waha",
      "description": "Path to the folder where WhatsApp files are stored (`/app/.media`).",
      "secret": false,
      "strategy": "default",
      "default": "/app/.media"
    },
    {
      "key": "WAHA_DASHBOARD_ENABLED",
      "service": "devlikeapro/waha",
      "description": "Enables the management dashboard (`True` by default).",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "WHATSAPP_START_SESSION",
      "service": "devlikeapro/waha",
      "description": "Name of the WhatsApp session that is automatically started on service boot.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "WAHA_DASHBOARD_PASSWORD",
      "service": "devlikeapro/waha",
      "description": "Dashboard password, automatically generated during deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "WAHA_DASHBOARD_USERNAME",
      "service": "devlikeapro/waha",
      "description": "Username for the WAHA web dashboard (default: `admin`).",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "WHATSAPP_DEFAULT_ENGINE",
      "service": "devlikeapro/waha",
      "description": "Default WhatsApp automation engine (`WEBJS`). Supports connecting multiple WhatsApp accounts.",
      "secret": false,
      "strategy": "default",
      "default": "WEBJS"
    },
    {
      "key": "WHATSAPP_FILES_LIFETIME",
      "service": "devlikeapro/waha",
      "description": "Lifetime (in seconds) before media files are deleted. `0` means no expiration.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "WHATSAPP_SWAGGER_ENABLED",
      "service": "devlikeapro/waha",
      "description": "Enables the Swagger API documentation (`True` by default).",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "WAHA_LOCAL_STORE_BASE_DIR",
      "service": "devlikeapro/waha",
      "description": "Base directory used to persist WhatsApp session data on disk.",
      "secret": false,
      "strategy": "default",
      "default": "/local/.sessions"
    },
    {
      "key": "WAHA_RESTART_ALL_SESSIONS",
      "service": "devlikeapro/waha",
      "description": "Forces all existing WhatsApp sessions to restart when WAHA starts.",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "WHATSAPP_SWAGGER_PASSWORD",
      "service": "devlikeapro/waha",
      "description": "Password to access the Swagger UI, automatically generated and unique per deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "WHATSAPP_SWAGGER_USERNAME",
      "service": "devlikeapro/waha",
      "description": "Username to access the Swagger UI (default: `admin`).",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "waha"
      }
    },
    "cli": "railway deploy --template waha",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a06c27f4-38e3-4386-8fb7-23ae2a5f1ebf",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0a292a9a-0f3f-4a41-8edc-aa4272760d1b": {
                  "icon": "https://github.com/devlikeapro/waha/blob/core/logo.png",
                  "name": "devlikeapro/waha",
                  "deploy": {
                    "startCommand": "",
                    "healthcheckPath": "/ping"
                  },
                  "source": {
                    "image": "devlikeapro/waha"
                  },
                  "variables": {
                    "WAHA_API_KEY": {
                      "description": "**Primary API key** used to authenticate API calls to WAHA. It’s auto-generated using Railway’s `secret()` function for uniqueness and security.",
                      "defaultValue": "{{WAHA_API_KEY}}"
                    },
                    "WAHA_BASE_URL": {
                      "description": "Base URL of your deployed WAHA instance. It’s automatically set to use your Railway private domain.",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "WAHA_PRINT_QR": {
                      "description": "Whether to print QR codes in logs for manual session pairing (`False` by default).",
                      "defaultValue": "False"
                    },
                    "WAHA_LOG_LEVEL": {
                      "description": "Log verbosity level (`info` by default).",
                      "defaultValue": "info"
                    },
                    "WAHA_LOG_FORMAT": {
                      "description": "Format of application logs (`JSON` for structured output).",
                      "defaultValue": "JSON"
                    },
                    "WAHA_MEDIA_STORAGE": {
                      "description": "Storage backend for files and media (`LOCAL` by default).",
                      "defaultValue": "LOCAL"
                    },
                    "WHATSAPP_FILES_FOLDER": {
                      "description": "Path to the folder where WhatsApp files are stored (`/app/.media`).",
                      "defaultValue": "/app/.media"
                    },
                    "WAHA_DASHBOARD_ENABLED": {
                      "description": "Enables the management dashboard (`True` by default).",
                      "defaultValue": "True"
                    },
                    "WHATSAPP_START_SESSION": {
                      "description": "Name of the WhatsApp session that is automatically started on service boot.",
                      "defaultValue": "default"
                    },
                    "WAHA_DASHBOARD_PASSWORD": {
                      "description": "Dashboard password, automatically generated during deployment.",
                      "defaultValue": "{{WAHA_DASHBOARD_PASSWORD}}"
                    },
                    "WAHA_DASHBOARD_USERNAME": {
                      "description": "Username for the WAHA web dashboard (default: `admin`).",
                      "defaultValue": "admin"
                    },
                    "WHATSAPP_DEFAULT_ENGINE": {
                      "description": "Default WhatsApp automation engine (`WEBJS`). Supports connecting multiple WhatsApp accounts.",
                      "defaultValue": "WEBJS"
                    },
                    "WHATSAPP_FILES_LIFETIME": {
                      "description": "Lifetime (in seconds) before media files are deleted. `0` means no expiration.",
                      "defaultValue": "0"
                    },
                    "WHATSAPP_SWAGGER_ENABLED": {
                      "description": "Enables the Swagger API documentation (`True` by default).",
                      "defaultValue": "True"
                    },
                    "WAHA_LOCAL_STORE_BASE_DIR": {
                      "description": "Base directory used to persist WhatsApp session data on disk.",
                      "defaultValue": "/local/.sessions"
                    },
                    "WAHA_RESTART_ALL_SESSIONS": {
                      "description": "Forces all existing WhatsApp sessions to restart when WAHA starts.",
                      "defaultValue": "True"
                    },
                    "WHATSAPP_SWAGGER_PASSWORD": {
                      "description": "Password to access the Swagger UI, automatically generated and unique per deployment.",
                      "defaultValue": "{{WHATSAPP_SWAGGER_PASSWORD}}"
                    },
                    "WHATSAPP_SWAGGER_USERNAME": {
                      "description": "Username to access the Swagger UI (default: `admin`).",
                      "defaultValue": "admin"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "0a292a9a-0f3f-4a41-8edc-aa4272760d1b": {
                      "mountPath": "/local"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "devlikeapro/waha",
      "method": "GET",
      "path": "/ping",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-14T22:14:43.073Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-14T01:50:39.984Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_448c9f047fdb4917a7a9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 85,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "devlikeapro/waha"
  }
}
