{
  "openapi": "3.0.1",
  "info": {
    "title": "Office Docs Generator: Markdown to Word, PDF, PPTX, XLSX",
    "description": "Turn Markdown or HTML into Word and accessible PDF files, slide outlines with charts into PowerPoint decks, and JSON tables into Excel workbooks with tables, formulas and charts. Built for AI agents and automations: one call, one file URL.",
    "version": "0.1",
    "x-build-id": "fPV8rWdgmZBTTfnxY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shatrix~office-docs-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shatrix-office-docs-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/shatrix~office-docs-generator/runs": {
      "post": {
        "operationId": "runs-sync-shatrix-office-docs-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/shatrix~office-docs-generator/run-sync": {
      "post": {
        "operationId": "run-sync-shatrix-office-docs-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "format": {
            "title": "Output format",
            "enum": [
              "pdf",
              "docx",
              "pptx",
              "xlsx"
            ],
            "type": "string",
            "description": "File to create. pdf and docx use markdown or html; pptx (or pdf with slides) uses slides; xlsx uses sheets or csv.",
            "default": "pdf"
          },
          "fileName": {
            "title": "File name",
            "maxLength": 120,
            "type": "string",
            "description": "Name of the output file, without extension.",
            "default": "document"
          },
          "title": {
            "title": "Title",
            "maxLength": 300,
            "type": "string",
            "description": "Document title, stored in the file's properties. For presentations it also makes a title slide. For Markdown, the first top-level heading is used when this is empty."
          },
          "author": {
            "title": "Author",
            "maxLength": 200,
            "type": "string",
            "description": "Author stored in the file's properties."
          },
          "language": {
            "title": "Language",
            "maxLength": 35,
            "type": "string",
            "description": "Document language as a BCP 47 tag, e.g. en-US or de-DE. Used for spelling and for accessibility (PDF primary language). Right-to-left languages (e.g. ar, he, fa, ur) also lay out Word and PDF documents right to left: paragraphs, lists and tables.",
            "default": "en-US"
          },
          "markdown": {
            "title": "Markdown",
            "maxLength": 2000000,
            "type": "string",
            "description": "Content for pdf or docx: headings, bold/italic, links, nested and numbered lists, quotes, tables and code blocks."
          },
          "html": {
            "title": "HTML",
            "maxLength": 2000000,
            "type": "string",
            "description": "Content for pdf or docx as HTML, instead of markdown."
          },
          "paperSize": {
            "title": "Paper size",
            "enum": [
              "A4",
              "Letter"
            ],
            "type": "string",
            "description": "Page size of pdf and docx documents.",
            "default": "A4"
          },
          "slides": {
            "title": "Slides",
            "type": "array",
            "description": "Content slides for pptx (or pdf). Each slide: {\"title\": text, \"bullets\": [text], \"notes\": text, \"chart\": {\"type\": column|bar|line|pie|doughnut|area|scatter, \"title\": text, \"categories\": [text], \"series\": [{\"name\": text, \"values\": [number]}]}}. All fields are optional."
          },
          "subtitle": {
            "title": "Subtitle",
            "maxLength": 300,
            "type": "string",
            "description": "Subtitle on the title slide."
          },
          "theme": {
            "title": "Theme",
            "enum": [
              "Default",
              "Harbor",
              "Ember",
              "Meadow",
              "Nocturne",
              "Paper",
              "Coral Reef",
              "Slate"
            ],
            "type": "string",
            "description": "Presentation theme.",
            "default": "Default"
          },
          "sheets": {
            "title": "Sheets",
            "type": "array",
            "description": "Worksheets for xlsx. Each sheet: {\"name\": text, \"rows\": [[cell, ...], ...], \"header\": true, \"numberFormats\": [{\"range\": \"B2:C9\", \"code\": \"#,##0.00\"}], \"chart\": {\"type\": column|bar|line|pie|doughnut|area|scatter, \"title\": text, \"range\": \"A1:C9\"}}. The first row is a header: it becomes a styled table with a frozen top row. Text starting with = is a formula."
          },
          "csv": {
            "title": "CSV",
            "maxLength": 10000000,
            "type": "string",
            "description": "A single sheet as CSV text, instead of sheets."
          },
          "parseValues": {
            "title": "Parse text values",
            "type": "boolean",
            "description": "Read text like \"2.500\" or \"05.04.2026\" as numbers and dates (en-US rules). Off keeps text as typed; numbers and formulas work either way.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}