{"uid":"cap_p8je_QEPCaX0Tof-mocj6","slug":"tanod-xlsx-build-f4fa96f7","name":"Tanod xlsx-build","description":"Build a styled Excel workbook from JSON sheets, columns and rows. Use when an agent must produce an Excel workbook (.xlsx) from JSON data: typed columns, styled header, several sheets.","url":"https://tanod.dev/v1/docs/xlsx-build?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"output":{"enum":["base64","url"],"type":"string","default":"base64"},"sheets":{"type":"array","items":{"type":"object","required":["name","rows"],"properties":{"name":{"type":"string","maxLength":31,"minLength":1},"rows":{"type":"array","items":{"anyOf":[{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]}}]},"maxItems":1048575},"columns":{"type":["array","null"],"items":{"type":"object","required":["header"],"properties":{"type":{"anyOf":[{"enum":["string","number","integer","date","datetime","boolean","currency","percent"],"type":"string"},{"type":"null"}],"default":null},"width":{"type":["number","null"],"default":null,"maximum":255,"exclusiveMinimum":0},"format":{"type":["string","null"],"default":null,"maxLength":100,"minLength":1},"header":{"type":"string","maxLength":32767,"minLength":1}},"additionalProperties":false},"default":null,"maxItems":16384},"autofilter":{"type":"boolean","default":true},"freeze_header":{"type":"boolean","default":true}},"additionalProperties":false},"maxItems":20,"minItems":1},"filename":{"type":["string","null"],"default":null,"maxLength":100,"minLength":1}}},"responseSchema":{"type":"json","example":{"file":{"name":"sales-q3.xlsx","bytes":5100,"data_base64":"UEsDBBQAAAAIAAAA... (trimmed: 6,800 base64 characters in the reply)","content_type":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},"rows":2,"cells":15,"sheets":1,"operation":"xlsx-build","output_bytes":5100,"sheet_summary":[{"name":"Sales","rows":2,"cells":15,"columns":5}],"formula_like_strings":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-nsylYxfBKTWaaXUF6lP1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Builds and returns a fully formatted Excel (.xlsx) spreadsheet from structured JSON data including typed columns, multiple sheets, auto-filter, and freeze-pane options.","exampleAgentPrompt":"Build me an Excel spreadsheet called 'sales-q3.xlsx' with a sheet named 'Sales' that has columns for Product (string), Units Sold (integer), Revenue (currency), and Margin (percent) — freeze the header row and enable autofilter — here's my data: [{\"Product\":\"Widget A\",\"Units Sold\":120,\"Revenue\":4800,\"Margin\":0.32},{\"Product\":\"Widget B\",\"Units Sold\":85,\"Revenue\":3400,\"Margin\":0.27}].","exampleUseCases":[{"title":"Monthly financial report export","prompt":"Take this JSON array of monthly expense records and build me an Excel file with a sheet called 'Expenses' — columns should be Date (date), Category (string), Amount (currency), and Approved (boolean), with the header frozen and autofilter on."},{"title":"Multi-sheet inventory workbook","prompt":"Create an Excel workbook with two sheets: one called 'Electronics' and one called 'Apparel', each containing product inventory rows with columns for SKU (string), Quantity (integer), Unit Price (currency), and In Stock (boolean). Freeze the headers and set column widths to 20 characters each."},{"title":"Sales pipeline dashboard spreadsheet","prompt":"I have a list of deals in JSON format with fields for Company, Stage, Deal Value, Close Date, and Probability — can you build an xlsx file with a sheet named 'Pipeline', type Deal Value as currency, Close Date as date, Probability as percent, and turn on autofilter?"}],"resultDescription":"Returns a JSON object containing the generated xlsx file encoded as base64, the file name, content type, byte size, total row and cell counts, number of sheets, a per-sheet summary (name, rows, cells, columns), and a count of formula-like strings detected. The agent can decode the base64 data to retrieve the binary xlsx file.","failureModes":["422 if a cell value does not match the declared column type (e.g. string in an integer column)","422 if sheet name exceeds 31 characters or is empty","422 if rows array exceeds 1,048,575 items","422 if columns array exceeds 16,384 items","402 Payment Required if x402 micropayment header is missing or insufficient","400 if the request body is malformed JSON","500 if an internal generation error occurs"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically produce a formatted, typed Excel file from structured data without requiring Excel or any office software on the calling machine. It is ideal for reporting pipelines, data exports, and agent workflows that need to hand off tabular results as a downloadable xlsx. At $0.005 per call with no signup, it suits low-volume agentic tasks better than self-hosted spreadsheet libraries when infrastructure simplicity matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T09:19:14.400Z","isFirstParty":false,"canonicalSlug":"tanod-xlsx-build-f4fa96f7"}