{"uid":"cap_87Er3Hq1tXrDO1HZArOTn","slug":"delx-join-lines-568b87e9","name":"Delx Join Lines","description":"Join an array of lines with a separator. Call when you reassemble agent-held line lists for prompts or files. Returns joined text and line count for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/join-lines","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lines":{"type":"array","description":"Input field: lines."},"separator":{"type":"string","description":"Input field: separator."}}},"responseSchema":{"type":"json","example":{"text":"alpha\nbeta\ngamma","count":3,"schema":"delx/util-join-lines/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_wQheoK5M0P3C40dHzdZPS","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":"Joins an array of text lines into a single string using a specified separator, returning the joined text and line count.","exampleAgentPrompt":"Take these lines — ['Hello', 'world', 'from', 'agent'] — and join them into a single string using a space as the separator.","exampleUseCases":[{"title":"Reassembling prompt from line list","prompt":"I have these lines stored as an array: ['You are a helpful assistant.', 'Answer concisely.', 'Do not hallucinate.'] — join them with a newline character so I can use them as a system prompt."},{"title":"Building CSV row from fields","prompt":"I've got these field values as a list: ['Alice', '30', 'Engineer', 'NYC'] — can you join them with a comma separator to make a single CSV row?"},{"title":"Reconstructing file content from lines","prompt":"I split a config file into lines earlier and now I need to put it back together — join these lines with a newline: ['HOST=localhost', 'PORT=8080', 'DEBUG=false']."}],"resultDescription":"Returns the joined text as a single string produced by concatenating all input lines with the given separator, along with the count of lines that were joined.","failureModes":["Empty lines array returns empty string or zero count","Missing separator defaults to empty string or may error","Non-string elements in lines array may cause unexpected output","Payment failure via x402 results in 402 response and no output","Malformed request body returns 400 error"],"whenToPreferThis":"Choose this endpoint when you have an agent-held array of text lines that need to be reassembled into a single string with a precise separator, especially in agentic pipelines where text was previously split for processing. It is purpose-built for this single operation, stateless, requires no API keys, and is priced at a fraction of a cent per call via x402 micropayment on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:56:58.044Z","isFirstParty":false}