# Citiview Office File Generator

> Citiview Office File Generator is a paid API for AI agents from agents.citiviewgroup.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-14).

Converts JSON/CSV data into Excel or CSV spreadsheets, or Markdown into Word documents, returning the file as base64.

## Facts

- Endpoint: GET https://agents.citiviewgroup.com/v1/office?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/citiview-office-file-generator-7dd36fe2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Orqm26HWCAcJdgBEDViN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability citiview-office-file-generator-7dd36fe2
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/citiview-office-file-generator-7dd36fe2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
