{"uid":"cap_5KxqLEJOmWSvBXcszOhRH","slug":"delx-commerce-indent-text-fc67be2b","name":"Delx Commerce — Indent Text","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/indent-text?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Input field: text."},"spaces":{"type":"integer","description":"Input field: spaces."}}},"responseSchema":{"type":"json","example":{"text":"  line1\n  line2","schema":"delx/util-indent-text/v1","spaces":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6-ITJpq4uym4IYcpJUPBT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Adds a specified number of leading spaces to each line of a given text string.","exampleAgentPrompt":"Indent the following text by 4 spaces: 'line1\\nline2\\nline3'","exampleUseCases":[{"title":"Code block indentation for docs","prompt":"Take this code snippet and indent every line by 4 spaces so it's properly formatted for the documentation: 'function hello() { return \"hi\"; }'"},{"title":"Markdown nested list formatting","prompt":"I need to nest this text block 2 spaces in so it reads as a sub-item in my markdown file: 'Details about the feature\\nMore details here'"},{"title":"YAML config indentation","prompt":"Indent these two lines by 2 spaces each so they fit correctly inside a YAML config block: 'name: myapp\\nversion: 1.0'"}],"resultDescription":"Returns a JSON object containing the indented text (each original line prefixed with the specified number of spaces), the number of spaces applied, and a schema identifier ('delx/util-indent-text/v1').","failureModes":["Missing 'text' field — request fails or returns an error","Non-integer value for 'spaces' — validation error","Empty text string — may return empty or trivially indented result","Network or payment failure — 402 or connection error if USDC payment not processed correctly"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a simple, reliable, pay-per-use text indentation operation without any signup or subscription — ideal for lightweight formatting tasks in pipelines where agents autonomously pay per result via x402 on Base or Solana. Prefer this over custom string manipulation when verifiable, paid delivery and minimal setup are priorities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:36.950Z","isFirstParty":false,"canonicalSlug":"delx-commerce-indent-text-fc67be2b"}