{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1ba0fbd8-967e-41e1-a882-f69c773f9884",
    "slug": "cobalt-server",
    "name": "Cobalt Tools | Private Media Downloader API",
    "description": "Cobalt media downloader API on a pinned release, locked with your key",
    "url": "https://railway.com/deploy/cobalt-server",
    "upstream": {
      "image": "ghcr.io/two-workspaces/cobalt:24e364d"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Cobalt",
      "source": {
        "image": "ghcr.io/two-workspaces/cobalt:24e364d"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Cobalt",
      "description": "Port Cobalt listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "API_URL",
      "service": "Cobalt",
      "description": "Public URL of this instance, used in download links - set it to your custom domain when you add one",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "API_PORT",
      "service": "Cobalt",
      "description": "Same port, the variable Cobalt reads - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "COBALT_API_KEY",
      "service": "Cobalt",
      "description": "Access key every request needs - auto-generated, paste it into cobalt.tools under Settings > Instances",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DURATION_LIMIT",
      "service": "Cobalt",
      "description": "Longest video Cobalt will process, in seconds (3 hours)",
      "secret": false,
      "strategy": "default",
      "default": "10800"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "cobalt-server"
      }
    },
    "cli": "railway deploy --template cobalt-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1ba0fbd8-967e-41e1-a882-f69c773f9884",
            "serializedConfig": {
              "services": {
                "a828a421-21af-425d-adc5-e8b9e7637805": {
                  "icon": "https://cdn.jsdelivr.net/npm/@tabler/icons@3.34.1/icons/outline/download.svg",
                  "name": "Cobalt",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/two-workspaces/cobalt:24e364d"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Cobalt listens on - leave as is",
                      "defaultValue": "9000"
                    },
                    "API_URL": {
                      "isOptional": false,
                      "description": "Public URL of this instance, used in download links - set it to your custom domain when you add one",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/"
                    },
                    "API_PORT": {
                      "isOptional": false,
                      "description": "Same port, the variable Cobalt reads - leave as is",
                      "defaultValue": "9000"
                    },
                    "COBALT_API_KEY": {
                      "isOptional": false,
                      "description": "Access key every request needs - auto-generated, paste it into cobalt.tools under Settings > Instances",
                      "defaultValue": "{{COBALT_API_KEY}}"
                    },
                    "DURATION_LIMIT": {
                      "isOptional": false,
                      "description": "Longest video Cobalt will process, in seconds (3 hours)",
                      "defaultValue": "10800"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Cobalt",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-10-30T22:14:57.013Z",
  "generator_version": "0.1.0"
}
