{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "banmu123-loomflow--publish-workflow-as-api-endpoint",
 "repo": "banmu123/LoomFlow",
 "repo_url": "https://github.com/banmu123/LoomFlow",
 "repo_slug": "banmu123-loomflow",
 "title": "Publish a finished workflow as an authenticated HTTP API",
 "page_title": "How to publish a finished workflow as an authenticated HTTP API with Loom Flow",
 "summary": "Expose a tested workflow as a POST endpoint that your app or script can call with one API key.",
 "who": "A developer who wants to add an AI feature to an existing product and needs a stable endpoint instead of running the canvas by hand.",
 "problem": "A workflow that only runs inside a canvas cannot be called from other systems.",
 "outcome": "A published workflow endpoint that returns results when called with a Bearer key from curl or another client.",
 "steps": [
  "Build and test the workflow on the canvas until one run succeeds",
  "Publish the workflow from the app, which auto-generates your global API key on first publish",
  "Copy the API key immediately, because it is shown only once",
  "Call the endpoint with `curl -X POST https://your-host/api/publish/{workflowId}/execute -H \"Authorization: Bearer ffk_xxxxx\" -H \"Content-Type: application/json\" -d '{\"inputs\": {\"query\": \"...\"}}'` (inferred, check the README)",
  "If the key expires, regenerate it on the API Keys page"
 ],
 "agent_prompt": "Using the LoomFlow repo at https://github.com/banmu123/LoomFlow, publish the workflow <workflowId> and call its execute endpoint with the input <sample input>. Expected output: a JSON response from POST /api/publish/<workflowId>/execute. Verify that the call returns HTTP 200 with the workflow result and that the Authorization header uses your current API key.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README gives the endpoint pattern but not a full list of request fields, so check the inputs your workflow expects before you send the request.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "A machine with Docker and Docker Compose installed, plus git and a terminal (the README says 1 GB RAM is enough)",
  "An API key for an LLM provider such as DeepSeek, or any OpenAI-compatible endpoint, added later through the admin UI",
  "A web browser to open http://localhost:5000"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "One global API key calls every published workflow, so store it in a secret manager and never commit it to code."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/banmu123-loomflow/publish-workflow-as-api-endpoint/",
 "md": "https://dedupedai.com/use-cases/banmu123-loomflow/publish-workflow-as-api-endpoint/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/banmu123-loomflow--publish-workflow-as-api-endpoint.json",
 "api_version": "v1"
}
