{
  "manifest_version": "1.0.0",
  "template": {
    "id": "39c1d551-785e-4b3a-9c22-cb7d581e57da",
    "slug": "nnnGdy",
    "name": "Magika",
    "description": "An AI powered file type detection tool",
    "url": "https://railway.com/deploy/nnnGdy",
    "upstream": {
      "image": "ghcr.io/nxfi777/magika-railway:latest"
    }
  },
  "services": [
    {
      "name": "magika",
      "source": {
        "image": "ghcr.io/nxfi777/magika-railway:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "AUTH_TOKEN",
      "service": "magika",
      "description": "Basic Auth password",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PYTHONUNBUFFERED",
      "service": "magika",
      "description": "Provide a value for PYTHONUNBUFFERED.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nnnGdy"
      }
    },
    "cli": "railway deploy --template nnnGdy",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "39c1d551-785e-4b3a-9c22-cb7d581e57da",
            "serializedConfig": {
              "services": {
                "08005a8c-6ee5-42ac-a675-8881e6fbf2d2": {
                  "name": "magika",
                  "build": {},
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "ghcr.io/nxfi777/magika-railway:latest"
                  },
                  "variables": {
                    "AUTH_TOKEN": {
                      "isOptional": false,
                      "description": "Basic Auth password",
                      "defaultValue": "{{AUTH_TOKEN}}"
                    },
                    "PYTHONUNBUFFERED": {
                      "isOptional": false,
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "magika",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-21T16:15:12.787Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T14:27:25.847Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_095180c3c3dd4989a07a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
