{"uid":"cap_PKK-xOXNAYAv8Imtp0VnF","slug":"csv-header-reader-cdd1827c","name":"CSV Header Reader","description":"CSV header row. Use to map columns before import or transformation steps. Returns the first-row headers as a list. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.","url":"https://api.delx.ai/api/v1/x402/csv-headers","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv_text":{"type":"string","description":"UTF-8 CSV text. Parsed locally; not uploaded to third parties."}}},"responseSchema":{"type":"json","example":{"count":2,"schema":"delx/csv-headers/v1","headers":["name","score"]}},"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_NtqCPxHKAKJ3S7-HC1Iha","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":"Parses the first row of a UTF-8 CSV string and returns the column header names as a list","exampleAgentPrompt":"I have a CSV file — can you pull out the header row for me so I know what columns are in it before I start mapping fields? Here's the content: 'name,email,age,signup_date\\nAlice,alice@example.com,30,2024-01-01'","exampleUseCases":[{"title":"Pre-import column mapping","prompt":"Before I import this CSV into my database, can you tell me what columns it has? Here's the raw text: 'product_id,sku,price,stock_qty,category\\n101,ABC-1,9.99,50,Electronics'"},{"title":"ETL pipeline schema discovery","prompt":"I'm setting up a data transformation pipeline and need to know the field names in this CSV before I write the mapping rules — can you extract the headers? The CSV starts with: 'customer_id,first_name,last_name,email,country,created_at'"},{"title":"Validate CSV before processing","prompt":"Can you check what headers this CSV has so I can confirm it includes the required columns like 'order_id' and 'amount' before we run the import? Here's the file content: 'order_id,amount,currency,status\\n1001,49.99,USD,pending'"}],"resultDescription":"A JSON list of header strings extracted from the first row of the provided CSV text, e.g. [\"name\", \"email\", \"age\"]. Returns deterministic first-party output with no third-party data upload. Structured validation errors are not billed.","failureModes":["Empty or blank csv_text input causing a validation error (not billed)","CSV with no newline — treated as a single-row file, all text returned as one header","Malformed UTF-8 encoding causing a parse error","Missing csv_text field in request body returning a structured validation error","Payment failure or insufficient USDC balance blocking the call"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, deterministic way to introspect CSV column names before an import, transformation, or mapping step — especially in agentic pipelines where you want to avoid paying for a full parse. Ideal when you don't have a local CSV parser available, need a consistent JSON list output, and want a no-subscription micro-cost utility with no API key setup. Prefer this over full CSV parsing services when you only need the header row.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:26.437Z","isFirstParty":false}