{
  "manifest_version": "1.0.0",
  "template": {
    "id": "20aa04a4-60d3-4009-a2e4-0bc3e9b6b2db",
    "slug": "agentmarginrouter-1",
    "name": "AgentMarginRouter",
    "description": "Agent Margin Router – x402 Daten-API",
    "url": "https://railway.com/deploy/agentmarginrouter-1",
    "upstream": {
      "repo_url": "https://github.com/AgentMarginRouter/AgentMarginRouter"
    }
  },
  "services": [
    {
      "name": "redis",
      "source": {
        "image": "redis:7-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "agent-margin-router",
      "source": {
        "repo": "https://github.com/AgentMarginRouter/AgentMarginRouter"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "agentmarginrouter-1"
      }
    },
    "cli": "railway deploy --template agentmarginrouter-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "20aa04a4-60d3-4009-a2e4-0bc3e9b6b2db",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1f88c36f-f7bc-490c-b9fa-ef71089e3948": {
                  "icon": null,
                  "name": "redis",
                  "deploy": {
                    "startCommand": "redis-server --appendonly yes --dir /data",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:7-alpine"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "1f88c36f-f7bc-490c-b9fa-ef71089e3948": {
                      "mountPath": "/data"
                    }
                  }
                },
                "e19022de-cce9-46da-a2a3-5a0f812adfba": {
                  "icon": null,
                  "name": "agent-margin-router",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "repo": "https://github.com/AgentMarginRouter/AgentMarginRouter",
                    "rootDirectory": null
                  },
                  "variables": {},
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "agent-margin-router",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-16T16:14:44.185Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-16T15:42:45.892Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_51aa36b1c0c34616a199",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": false,
        "detail": "got 502, expected 200"
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ]
  }
}
