{"uid":"cap_2Orqm26HWCAcJdgBEDViN","slug":"citiview-office-file-generator-7dd36fe2","name":"Citiview Office File Generator","description":"Make office files: an Excel spreadsheet (or CSV) from JSON rows or CSV text, or a Word document from Markdown (headings, bullets, bold, tables). Returns the file as base64, ready to save or attach. Also callable as GET with the same fields as query parameters.","url":"https://agents.citiviewgroup.com/v1/office?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"data":{"type":"string","description":"JSON array of objects or CSV text (xlsx/csv)"},"sheet":{"type":"string","description":"Sheet name"},"format":{"type":"string","description":"xlsx (default) | csv | docx"},"filename":{"type":"string"},"markdown":{"type":"string","description":"Document text (docx)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_vA_VYk020p6ekFAlRB-Gv","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":"Converts JSON/CSV data into Excel or CSV spreadsheets, or Markdown into Word documents, returning the file as base64.","exampleAgentPrompt":"Take this JSON array of sales records and create an Excel spreadsheet called 'sales_report.xlsx' with the sheet named 'Q1 Sales' — give me back the base64 file so I can save it.","exampleUseCases":[{"title":"Export API data as Excel spreadsheet","prompt":"I have a JSON array of customer orders — can you turn it into an Excel file called 'orders.xlsx' with the sheet named 'Orders' and give me the base64 so I can attach it to an email?"},{"title":"Generate Word report from Markdown","prompt":"Here's a Markdown document with headings, bullet points, and a table summarizing our quarterly results — please convert it to a Word docx file called 'Q3_Report.docx' and return it as base64."},{"title":"Convert JSON data to CSV download","prompt":"I have a JSON array of product listings and I need a CSV file called 'products.csv' — can you convert it and return the base64-encoded file?"}],"resultDescription":"Returns the requested Office file (xlsx, csv, or docx) encoded as a base64 string, ready to be decoded and saved locally or attached to an email or message.","failureModes":["Missing required 'format' or 'data'/'markdown' parameter causes a 400-style error","Invalid JSON in the 'data' field (not a valid array of objects) causes a parse error","Requesting docx without providing 'markdown' or xlsx/csv without providing 'data' results in an empty or error response","Very large JSON or Markdown payloads may exceed query parameter length limits when using GET","Malformed Markdown may produce a Word document with incorrect formatting"],"whenToPreferThis":"Choose this endpoint when you need to programmatically generate a ready-to-download Office file (Excel, CSV, or Word) from structured data or Markdown, especially within an agent workflow where files must be returned as base64 for downstream use. Prefer it over general-purpose document editors when you need a simple, stateless, pay-per-call conversion with no authentication setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:48:35.202Z","isFirstParty":false,"canonicalSlug":"citiview-office-file-generator-7dd36fe2"}