{"uid":"cap_O545gcjGw0ZCHtZua5Ww5","slug":"profitcollector-data-transform-api-4824ff14","name":"ProfitCollector Data Transform API","description":"Decision-grade security/due-diligence outcome reports ($20-$100) plus deterministic paid utilities ($0.001+) for software agents and automated workflows.","url":"https://api.bakhour.ca/data/transform","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"},"operation":{"enum":["auto","json_pretty","json_minify","base64_encode","base64_decode","dedupe_lines"],"type":"string"}}},"responseSchema":{"type":"json","example":{"result":"{\n  \"hello\": \"world\"\n}","operation":"json_pretty"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GOS6QWEP_VaSNH3iroUuC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies deterministic text transformations (JSON formatting, Base64 encoding/decoding, line deduplication) to a supplied string and returns the transformed result.","exampleAgentPrompt":"Can you pretty-print this JSON for me so it's readable? Just run it through json_pretty: {\"hello\":\"world\",\"foo\":\"bar\"}","exampleUseCases":[{"title":"Format JSON for logging pipeline","prompt":"I need to pretty-print this raw JSON string before storing it in our logs — can you run it through json_pretty? Here's the text: {\"user\":\"alice\",\"action\":\"login\",\"ts\":1234567890}"},{"title":"Encode config value to Base64","prompt":"Encode this connection string to Base64 for me so I can safely embed it in an environment variable: postgresql://user:pass@localhost:5432/mydb"},{"title":"Deduplicate tag list from CSV export","prompt":"I've got a list of tags with a bunch of repeats, one per line — can you dedupe it for me? Here's the list: python\njavascript\npython\nrust\njavascript\ngo"}],"resultDescription":"A JSON object containing 'result' (the transformed string) and 'operation' (the name of the transformation that was applied, e.g. 'json_pretty' or 'base64_encode').","failureModes":["Invalid JSON input when operation requires valid JSON (json_pretty/json_minify) — likely returns an error or malformed result","Unsupported operation value outside the defined enum — request may be rejected","Empty or missing 'text' field — may return empty result or error","Base64 decoding of invalid base64 string — may produce garbled output or error","Payment failure (HTTP 402) if USDC payment is not provided or is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a quick, deterministic, single-step text transformation — specifically JSON pretty-printing or minification, Base64 encoding or decoding, or line deduplication — within an automated agent workflow where consistency and low latency matter more than advanced text processing capabilities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:50:08.585Z","isFirstParty":false}