{"uid":"cap_UJZ2h5zLyjYexkBxMlIMY","slug":"deterministic-text-transformation-api-0e85724c","name":"Deterministic Text Transformation API","description":"Pay-per-call deterministic text transformation for autonomous agents.","url":"https://dtts-api-production.up.railway.app/v1/text/transform","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["text","mode"],"properties":{"mode":{"enum":["normalize_whitespace","lower","upper","title","slug","snake","kebab","camel","pascal","dedupe_lines"],"type":"string","description":"Deterministic transformation to apply."},"text":{"type":"string","maxLength":8192,"minLength":1,"description":"Caller-supplied text to transform (max 8KB UTF-8)."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["mode","result","changed","input_characters","output_characters","input_sha256","output_sha256","service_version","verified"],"properties":{"mode":{"enum":["normalize_whitespace","lower","upper","title","slug","snake","kebab","camel","pascal","dedupe_lines"],"type":"string"},"result":{"type":"string"},"changed":{"type":"boolean"},"verified":{"type":"boolean","const":true},"input_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"output_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"service_version":{"type":"string","const":"1.0.0"},"input_characters":{"type":"integer","minimum":0},"output_characters":{"type":"integer","minimum":0}},"additionalProperties":false}}}}},"responseSchema":{"type":"json","example":{"mode":"slug","result":"hello-autonomous-agent","changed":true,"verified":true,"input_sha256":"6d14e8f3b32920bf6701c101b089667b43f107e6ae68cef64312f5cdcc281fd7","output_sha256":"b0a05bda604f7c3a81d4c0e2cf68fe376e0222e868cdf26aee80221272e15bf6","service_version":"1.0.0","input_characters":28,"output_characters":22}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dQ2YkQb71ykTjDTuUtZ9s","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies one of ten deterministic string transformations (case, slug, snake, camel, dedupe, etc.) to caller-supplied text and returns the result with SHA-256 hashes for verification.","exampleAgentPrompt":"Convert the text 'Hello Autonomous Agent World' to slug format so I can use it as a URL path segment, and give me the SHA-256 hashes to verify the transformation.","exampleUseCases":[{"title":"Slug generation for blog posts","prompt":"Take the blog post title 'My Journey Into Machine Learning: A Beginner's Guide' and convert it to a URL slug I can use in the permalink."},{"title":"Normalize messy user input whitespace","prompt":"I have this user-submitted text with inconsistent spacing and line breaks: 'Hello   world  this   is   a   test'. Can you normalize the whitespace so it's clean?"},{"title":"Convert variable names to camelCase","prompt":"Convert the string 'user_first_name_input_field' to camelCase so I can use it as a JavaScript variable name, and confirm whether the output actually changed."}],"resultDescription":"A JSON object containing the transformed text string, the applied mode, a boolean indicating whether the output differs from the input, input and output character counts, SHA-256 hashes of both the input and output (for tamper-evident verification), a verified flag always set to true, and the service version string.","failureModes":["Missing required 'text' query parameter returns an error","Missing required 'mode' query parameter returns an error","Text exceeding 8192 UTF-8 characters is rejected","Invalid mode value not in the allowed enum returns an error","Empty string for text (minLength:1 violated) is rejected","Payment failure (x402) if USDC payment is not provided or insufficient"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, deterministic, and verifiable string transformation with cryptographic proof (SHA-256 hashes) that the output is authentic and unchanged in transit. Ideal for agents that must prove a transformation was applied correctly, generate URL-safe slugs, normalize identifiers, or standardize casing in automated pipelines where reproducibility and auditability matter. Prefer it over LLM-based reformatting when the operation must be exact, repeatable, and verifiable rather than approximate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:37:17.765Z","isFirstParty":false}