{"uid":"cap_CHuK6XI5zK38Sh7BQTJh8","slug":"delx-commerce-pad-string-api-eeb168ef","name":"Delx Commerce — Pad String API","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/pad-string?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":100000,"description":"Primary text input (max 100k chars). Processed first-party; not retained as a dataset."},"width":{"type":"integer","minimum":1,"description":"Optional pad/wrap width when the tool supports it."}}},"responseSchema":{"type":"json","example":{"text":"hello agent world","width":10,"schema":"delx/pad-string/v1"}},"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_mzlCbBOg47dnYnJNs8qoH","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":"Pads a text string to a specified character width, returning the padded result via a pay-per-call API on Base/Solana.","exampleAgentPrompt":"Pad the text 'hello agent world' to a width of 10 characters so it fits neatly in a fixed-width column.","exampleUseCases":[{"title":"Fixed-width log line formatting","prompt":"I need to pad this log entry 'ERR: disk full' to exactly 40 characters wide so all my log lines align in the output file."},{"title":"Tabular CLI output alignment","prompt":"Take the label 'Status' and pad it to 20 characters wide so it lines up with the other columns in my terminal table."},{"title":"Normalize short identifiers to fixed length","prompt":"Pad the string 'ID-42' to a width of 15 so it matches the length of all the other IDs in my dataset."}],"resultDescription":"A JSON object containing the original text, the requested width, and the padded/formatted string result, along with a schema identifier ('delx/pad-string/v1') confirming the response format.","failureModes":["Text exceeds 100,000 character limit — request rejected","Width parameter below minimum value of 1 — validation error","Payment not included or insufficient USDC — 402 Payment Required response","Malformed JSON body — 400 Bad Request","Network or blockchain payment verification delay — timeout or retry needed"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call string padding utility with no signup or subscription, especially in agent workflows that already use x402 USDC micropayments on Base or Solana. Ideal for lightweight text formatting tasks where spinning up a local library is impractical or when working within a pay-per-result agent pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:51.462Z","isFirstParty":false,"canonicalSlug":"delx-commerce-pad-string-api-eeb168ef"}