{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "manavmishra-zeroslop--deslop-text-through-rest-api",
 "repo": "manavmishra/ZeroSlop",
 "repo_url": "https://github.com/manavmishra/ZeroSlop",
 "repo_slug": "manavmishra-zeroslop",
 "title": "Call the REST API to edit text in a publishing pipeline",
 "page_title": "How to call the REST API to edit text in a publishing pipeline with Zero Slop",
 "summary": "Post text to the deslop endpoint and check status before using the edit.",
 "who": "A developer building a publishing tool or content pipeline that needs slop removal on short text.",
 "problem": "Pipelines need an HTTP call that returns edited text they can check before it goes live.",
 "outcome": "An edited version of the text returned by the API, accepted only when its status field confirms it is usable.",
 "steps": [
  "Read the API reference in docs/rest-api.md and the OpenAPI contract at https://mcp.zero-slop.ai/openapi.json.",
  "Keep each request under the shared free capacity limit of 20,000 Unicode code points after trimming.",
  "Send the text with `curl --fail-with-body --max-time 75 https://mcp.zero-slop.ai/v1/deslop -H 'Content-Type: application/json' --data '{\"text\":\"<your text>\",\"genre\":\"professional\"}'`. (inferred, check the README)",
  "Check the status field in the response before using the edited text.",
  "Log the original and the edit so a human can review changes."
 ],
 "agent_prompt": "Send the text in <path-to-text> to https://mcp.zero-slop.ai/v1/deslop as JSON with genre professional, then return the status and the edited text. Verify that the status field is approved before the output is used.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The shared free capacity accepts up to 20,000 Unicode code points per request, so longer documents need to be split before sending.",
 "category": "Content",
 "tags": [
  "Content"
 ],
 "lang": "python",
 "requirements": [
  "Claude Code or Codex (or another assistant that supports agent skills) for the skill workflow",
  "Python 3 for the offline local scorer",
  "Node.js 22+ for the npx CLI and the score command",
  "Internet access if you use the hosted CLI, REST API, or MCP endpoint"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/manavmishra-zeroslop/deslop-text-through-rest-api/",
 "md": "https://dedupedai.com/use-cases/manavmishra-zeroslop/deslop-text-through-rest-api/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/manavmishra-zeroslop--deslop-text-through-rest-api.json",
 "api_version": "v1"
}
