{
  "manifest_version": "1.0.0",
  "template": {
    "id": "35cc56c6-bcdb-4ee8-a6e4-12f2533f2a38",
    "slug": "unstructured-api-or-just-updated-documen",
    "name": "Unstructured API | (Just Updated) Document Parsing API for RAG, Key-Locked From Boot",
    "description": "Unstructured API. Key-locked from boot, no fields to fill, public URL",
    "url": "https://railway.com/deploy/unstructured-api-or-just-updated-documen",
    "upstream": {
      "image": "quay.io/unstructured-io/unstructured-api:0.1.11@sha256:b1f0eb6be87dbb15edff568a99f6dd2e57072240faff04729e8d91d283f5b86b"
    }
  },
  "services": [
    {
      "name": "unstructured-api",
      "source": {
        "image": "quay.io/unstructured-io/unstructured-api:0.1.11@sha256:b1f0eb6be87dbb15edff568a99f6dd2e57072240faff04729e8d91d283f5b86b"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "UNSTRUCTURED_API_KEY",
      "service": "unstructured-api",
      "description": "Provide a value for UNSTRUCTURED_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "unstructured-api-or-just-updated-documen"
      }
    },
    "cli": "railway deploy --template unstructured-api-or-just-updated-documen",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "35cc56c6-bcdb-4ee8-a6e4-12f2533f2a38",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "7f4dddff-51a6-4738-9e69-1030290220ad": {
                  "icon": null,
                  "name": "unstructured-api",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'q=$(cut -d\" \" -f1 /sys/fs/cgroup/cpu.max 2>/dev/null); p=$(cut -d\" \" -f2 /sys/fs/cgroup/cpu.max 2>/dev/null); if [ -n \"$q\" ] && [ \"$q\" != max ]; then n=$(( (q + p - 1) / p )); else n=$(nproc); fi; export OMP_NUM_THREADS=$n MKL_NUM_THREADS=$n OPENBLAS_NUM_THREADS=$n; echo \"[railway] unstructured threads=$n uid=$(id -u) port=$PORT key=$([ -n \"$UNSTRUCTURED_API_KEY\" ] && echo set || echo MISSING)\"; [ -n \"$UNSTRUCTURED_API_KEY\" ] || { echo \"[railway] refusing to start without UNSTRUCTURED_API_KEY\"; exit 1; }; exec scripts/app-start.sh'",
                    "healthcheckPath": "/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "quay.io/unstructured-io/unstructured-api:0.1.11@sha256:b1f0eb6be87dbb15edff568a99f6dd2e57072240faff04729e8d91d283f5b86b"
                  },
                  "variables": {
                    "UNSTRUCTURED_API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{UNSTRUCTURED_API_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "unstructured-api",
      "method": "GET",
      "path": "/healthcheck",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-10-30T04:14:55.026Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-18T18:02:40.994Z",
  "success_rate_30d": 0.2,
  "validation": {
    "last_run_id": "run_4098f95eacb14d49b5c2",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "DEPLOYING"
      }
    ],
    "typical_ready_seconds": 193,
    "typical_build_seconds": 0,
    "typical_start_seconds": 161,
    "slowest_service": "unstructured-api"
  }
}
