{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3e52e668-8cc5-4552-9de4-5ebeba9c160a",
    "slug": "papra",
    "name": "Papra",
    "description": "The minimalistic document archiving platform.",
    "url": "https://railway.com/deploy/papra",
    "upstream": {
      "image": "ghcr.io/papra-hq/papra:26.6.2-rootless@sha256:a281cb44176dbe5323e0f7ea2d6fd34d58914a3a8525c36437a086d1d7c4fef8"
    }
  },
  "services": [
    {
      "name": "Papra",
      "source": {
        "image": "ghcr.io/papra-hq/papra:26.6.2-rootless@sha256:a281cb44176dbe5323e0f7ea2d6fd34d58914a3a8525c36437a086d1d7c4fef8"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/app-data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Papra",
      "description": "Application port.",
      "secret": false,
      "strategy": "default",
      "default": "1221"
    },
    {
      "key": "AUTH_SECRET",
      "service": "Papra",
      "description": "JWT/auth signing key.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "APP_BASE_URL",
      "service": "Papra",
      "description": "Application base URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Papra",
      "description": "Railway application UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "INGESTION_FOLDER_IS_ENABLED",
      "service": "Papra",
      "description": "A special folder that is watched by Papra for new files.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "papra"
      }
    },
    "cli": "railway deploy --template papra",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3e52e668-8cc5-4552-9de4-5ebeba9c160a",
            "serializedConfig": {
              "services": {
                "4791439b-db1a-444c-85e1-11048074c309": {
                  "icon": "https://avatars.githubusercontent.com/u/193336953?s=200&v=4.jpg",
                  "name": "Papra",
                  "deploy": {
                    "healthcheckPath": "/api/ping"
                  },
                  "source": {
                    "image": "ghcr.io/papra-hq/papra:26.6.2-rootless@sha256:a281cb44176dbe5323e0f7ea2d6fd34d58914a3a8525c36437a086d1d7c4fef8"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Application port.",
                      "defaultValue": "1221"
                    },
                    "AUTH_SECRET": {
                      "isOptional": false,
                      "description": "JWT/auth signing key.",
                      "defaultValue": "{{AUTH_SECRET}}"
                    },
                    "APP_BASE_URL": {
                      "isOptional": false,
                      "description": "Application base URL.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Railway application UID.",
                      "defaultValue": "0"
                    },
                    "OWLRELAY_API_KEY": {
                      "isOptional": true,
                      "description": "The API key used to interact with OwlRelay for the intake emails.",
                      "defaultValue": ""
                    },
                    "INTAKE_EMAILS_DRIVER": {
                      "isOptional": true,
                      "description": "The driver to use when generating email addresses for intake emails, value can be one of: `owlrelay`, `catch-all`.",
                      "defaultValue": ""
                    },
                    "OWLRELAY_WEBHOOK_URL": {
                      "isOptional": true,
                      "description": "The webhook URL to use when generating email addresses for intake emails with OwlRelay, if not provided, the webhook will be inferred from the server URL.",
                      "defaultValue": ""
                    },
                    "INTAKE_EMAILS_IS_ENABLED": {
                      "isOptional": true,
                      "description": "Allow intake emails.",
                      "defaultValue": ""
                    },
                    "INGESTION_FOLDER_IS_ENABLED": {
                      "isOptional": false,
                      "description": "A special folder that is watched by Papra for new files.",
                      "defaultValue": "true"
                    },
                    "INTAKE_EMAILS_WEBHOOK_SECRET": {
                      "isOptional": true,
                      "description": "The secret to use when verifying webhooks.",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:1221": {
                        "port": 1221
                      }
                    }
                  },
                  "volumeMounts": {
                    "4791439b-db1a-444c-85e1-11048074c309": {
                      "mountPath": "/app/app-data",
                      "backupSchedules": [
                        "WEEKLY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Papra",
      "method": "GET",
      "path": "/api/ping",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T04:14:39.446Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-11T20:36:08.977Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_77db7b0352914dd39943",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 45,
    "typical_build_seconds": 0,
    "typical_start_seconds": 15,
    "slowest_service": "Papra"
  }
}
