{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d0b9d0bf-f62c-4ec2-94df-1fc4d25d5ba5",
    "slug": "jgUR1t",
    "name": "letta",
    "description": "Deploy a Letta server (uses the latest Letta Docker image)",
    "url": "https://railway.com/deploy/jgUR1t",
    "upstream": {
      "image": "letta/letta:latest"
    }
  },
  "services": [
    {
      "name": "letta/letta:latest",
      "source": {
        "image": "letta/letta:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/postgresql",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "letta/letta:latest",
      "description": "Location where the Letta server data will be persisted",
      "secret": false,
      "strategy": "default",
      "default": "/data/postgresql/pgdata"
    },
    {
      "key": "SECURE",
      "service": "letta/letta:latest",
      "description": "To enable password protection, set SECURE to true",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LETTA_SERVER_PASSWORD",
      "service": "letta/letta:latest",
      "description": "If SECURE is true, the server will use this password",
      "secret": true,
      "strategy": "default",
      "default": "password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "jgUR1t"
      }
    },
    "cli": "railway deploy --template jgUR1t",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d0b9d0bf-f62c-4ec2-94df-1fc4d25d5ba5",
            "serializedConfig": {
              "services": {
                "dfcc10d8-b02a-40f3-b5eb-22f1beb74bea": {
                  "name": "letta/letta:latest",
                  "deploy": {
                    "startCommand": "",
                    "healthcheckPath": "/v1/health/"
                  },
                  "source": {
                    "image": "letta/letta:latest"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the Letta server data will be persisted",
                      "defaultValue": "/data/postgresql/pgdata"
                    },
                    "SECURE": {
                      "isOptional": true,
                      "description": "To enable password protection, set SECURE to true",
                      "defaultValue": "true"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Your OpenAI API key (optional)",
                      "defaultValue": ""
                    },
                    "COMPOSIO_API_KEY": {
                      "isOptional": true,
                      "description": "Your Composio API key (optional)",
                      "defaultValue": ""
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Your Anthropic API key (optional)",
                      "defaultValue": ""
                    },
                    "LETTA_SERVER_PASSWORD": {
                      "isOptional": true,
                      "description": "If SECURE is true, the server will use this password",
                      "defaultValue": "password"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "dfcc10d8-b02a-40f3-b5eb-22f1beb74bea": {
                      "mountPath": "/data/postgresql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "letta/letta:latest",
      "method": "GET",
      "path": "/v1/health/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T10:37:38.110Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_de64d523a8c84a209e70",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
