# Tanod Docs XLSX Build

> Tanod Docs XLSX Build is a paid API for AI agents from docs.tanod.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-13).

Builds a structured Excel (.xlsx) spreadsheet from JSON data, supporting typed columns, custom formatting, and multiple sheets, returning the file as base64 or a download URL.

## Facts

- Endpoint: POST https://docs.tanod.dev/v1/docs/xlsx-build?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanod-docs-xlsx-build-e8dcc747
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-8qvJby5HoWeJw9xjkbPv

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 tanod-docs-xlsx-build-e8dcc747 -d '<json body>'
```

Example prompt: Build me an Excel spreadsheet with two sheets — one called 'Sales' with columns for Product (string), Units (integer), Revenue (currency), and Sale Date (date), and one called 'Summary' with totals — and give me back a download URL instead of the raw file.

## When to prefer this

Choose this endpoint when you need to programmatically generate a fully structured, typed Excel (.xlsx) file from JSON data — especially when you need typed columns (currency, date, percent), custom number formats, multiple named sheets, or want the file returned as base64 or a hosted URL. Prefer this over generic CSV export when recipients need native Excel formatting, formulas-ready structure, or column-width control.

## Known failure modes

- 422 if a cell value does not match the declared column type (e.g. text in a number column)
- 422 if row count exceeds Excel's 1,048,575 row limit per sheet
- 422 if sheet name exceeds 31 characters or is empty
- 400 if required fields (name, rows) are missing from a sheet definition
- Malformed column format strings may produce unexpected cell formatting
- Large datasets with many sheets may increase response latency

## How this service works

Documents: DOCX template fill, Office to PDF, any file to Markdown, PDF to Word, OCR, PDF pipeline.

## Output

Returns a JSON object containing the generated .xlsx file either as a base64-encoded data string or a temporary download URL (valid 24 hours), along with metadata: file name, byte size, content type, SHA256 hash, total row count, cell count, sheet count, and a per-sheet summary of rows, cells, and columns.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "output": {
   "enum": [
    "base64",
    "url"
   ],
   "type": "string",
   "default": "base64",
   "description": "base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."
  },
  "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,
      "description": "Array rows (values by position) or object rows (values by header). A value is a string, number, boolean or null (an empty cell)."
     },
     "columns": {
      "anyOf": [
       {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "header"
         ],
         "properties": {
          "type": {
           "anyOf": [
            {
             "enum": [
              "string",
              "number",
              "integer",
              "date",
              "datetime",
              "boolean",
              "currency",
              "percent"
             ],
             "type": "string"
            },
            {
             "type": "null"
            }
           ],
           "default": null,
           "description": "string, number, integer, date, datetime, boolean, currency or percent. Sets the cell type and number format; a value that does
… (truncated)
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanod-docs-xlsx-build-e8dcc747/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from docs.tanod.dev](https://www.zero.xyz/host/docs.tanod.dev/llms.txt)
